Here is a simple example of a Java class that will read/write a file byte by byte
/*
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package filereader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
/**
*
* @author dphegarty
*/
public class Main {
/**
[...]
I work in a Windows environment, but run Ubuntu on my desktop. I am always on the look out for Linux utilities that replace the Windows bound ones. So far I’ve found a replacement for just about everything I need execpt PSExec, but today that is no more.
sudo apt-get install wmi-client
This handy package installs winexe [...]
Tags:
Admin,
Linux,
Windows,
Winexe,
wmi-client Posted in
Scripts,
Security,
Shell,
Technology,
UNIX,
Windows on January 21, 2009
|
There are currently
No Comments
Here is a handy tip I came across for creating a list of installed packages on Ubuntu.
dpkg –get-selections > installed-software
The original thread can be found here: Orginal
The December ILTA PodCast covering the monthly Microsoft patch is out!
http://www.iltanet.org/communications/transcript_detail.aspx?nvID=000000011405&h4ID=000001426705
Dave and I are looking for feedback so please let us know. Even if it’s a simple, “You suck.” At least than we know someone is listen and that we need to improve.
The November monthly podcast hosted by my self, Dan Hegarty, and Dave Beck in which we cover the two patches released by Microsoft is out. It can be retrieved from:
http://www.iltanet.org/communications/transcript_detail.aspx?nvID=000000011405&h4ID=000001387805
Since there were only two patches this month we were able to use more of a discussion format for this podcast. I feel we are getting [...]
Yesterday, the 5th of November, we started receiving spam that advertised Obama Election videos. These emails are rather plain and only contain simple text and a link.
Email Contents:
Barack Obama Elected 44th President of United States
Barack Obama, unknown to most Americans just four years ago, will become the 44th president and
the first African-American president of the [...]
Here is a shell script I wrote to translate NetBOIS names to IP addresses. SAMBA needs to be install for the nmblookup command. I work mostly on Linux / OS X but we are a Windows shop so I wrote this shell script to help convert hostnames to IP address for windows machines. Not every [...]
I have been working with version v0.80.1 Beta of Inprotect, a web and reporting front end for Nessus. It’s been quite a while since the project has been updated but overall it still works fairly well out of the box. One small issue I found was completed scans that were getting stuck in the a [...]
If anyone out in Internet land is really, really bored. Check out a Podcast a co-worker and I are putting together to cover the monthly Microsoft patches. This is only the second one we’ve done so go easy on us
Risk Management Peer Group Podcasts
Welcome to the tech side of my world. I originally wanted to only have one site, a place where I could post the tech nuggets I either come up with or find out in the wild and explore my gaming addition. Unfortunately the two worlds don’t really mix well for me. I have extended the [...]