»
S
I
D
E
B
A
R
«
Distributed Computing
Jan 8th, 2008 by stevet

A more complete solution to distributed generation of rainbow tables can be found at Free Rainbow Tables.  Once a rainbow table is completed by the project, it is freely available for download over turrent.

I found that, and many more interesting projects listed at distributed computing.

BOINC Network Computing
Dec 4th, 2007 by stevet

BOINC Project

BOINC stats for stevet BOINC stats for tevans

When looking around for a quicker way to generate Rainbow Tables , I ran into a distributed network computing project.

It is a great way to be a part of some very useful projects.

BOINC Statistics

BOINC Stats only updates once a day.  BOINC Synergy updates every few hours.  All Project Stats updates the project stats every few hours, but lags on the total credits.

stevet BOINC stats

SteveT BOINC Stats

The answer to my initial problem was to simply download the completed Rainbow Tables from BitTorrent .

UPDATE: Unfortunately, they don't tell you that the Shmoo Group tables won't work without a little bit of work.
You have to edit the charset.txt file, and add the following line:

alpha-numeric-symbol32-space = [ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_+=~`[]{}|\:;"'<>,.?/ ]

This is the same as "all" + a space before the closing ].

Perl Logfile
Dec 3rd, 2007 by editor

Logging to a file

Using search.cpan.org there are many options to logging to a file.  Finding just one that does exactly what you need can be a challenge.

Here, I will talk just about one:  Log::LogLite

LogLite was almost exactly what I was looking for, but I found it to be lacking in one area:  The date output formatting was most useless, and not customizable. "YYYY-DD-MM"!?  Why not YYYY-MM-DD like most computer programmers like, since it alpha sorts correctly?

A simple change near line 69 like so:

my $line = $self->{TEMPLATE};
  $line =~ s!<date>!$self->date_string()!igoe;
  # changed to $self->date_string() so module can be customized by deriving from.

And now I can derive modules from Log::LogLite and customize the date formatting.

package MyLog;
use Log::LogLite;
 
@ISA = ("Log::LogLite");
 
sub date_string {
 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
 return sprintf( "%02d/%02d/%04d %02d:%02d:%02d",
  $mon + 1, $mday, $year + 1900, $hour, $min, $sec );
} # of date_string

But since I have to modify the original module in order to have the flexibility to customize it, I just renamed the module LogLite.pm to MyLog.pm, made the above two changes and copy it around to where I need it. 

So much for code reuse.

Automatic SSH login using RSA/DSA keys
Jun 20th, 2007 by stevet

Creating the RSA Key

ssh-keygen -t rsa

This will create the id_rsa and id_rsa.pub files. The id_rsa.pub file located in ~/.ssh is your public key. Copy it to the system you want to automatically login to. See `man ssh-keygen` for more options.

Why do I only show RSA keys? Because it’s safer then the DSA keys according to the putty developers (see section 8.2.2) . I’m sure that all the bugs in DSA have been fixed by now, including the key generation problems, but why take unnecessary risks?

Public Key Adding Script

#!/bin/sh
# September 23, 2003 (initial)
# Updated August 23, 2006 (updated)
#
# Steve Thielemann
#
# A script file to add ssh key
#
# 1.) Verifies ~/.ssh directory exists, if not creates and
#     fixes permissions.
# 2.) Verifies ~/.ssh/authorized_keys exists, if not creates and
#     fixes permissions.
# 3.) Checks to see if ssh key is already present, if not adds to
#     ~/.ssh/authorized_keys.
#
# dependant on:  grep, touch, chmod, cut
#
if [ -z $1 ]
then
echo "I need the filename of a public key to add."
echo "(The .pub file created from ssh-keygen -t rsa)"
echo "Example:  $0 remote_rsa.pub"
exit
fi
if [ -f $1 ]
then
keyid=`cut -f3- '-d ' < $1`
else
echo "I can't find $1 !"
exit
fi
echo "Using ID $keyid"
# variables to make life easier
sshdir=~/.ssh
keyfile=~/.ssh/authorized_keys
if [ ! -d "$sshdir" ]
then
echo "Making $sshdir"
mkdir "$sshdir"
chmod 700 "$sshdir"
fi
if [ ! -f "$keyfile" ]
then
echo "Creating $keyfile"
touch "$keyfile"
chmod 644 "$keyfile"
fi
grep "$keyid" "$keyfile" > /dev/null
if [ $? = 1 ]
then
echo "Adding key to $keyfile"
cat $1 >> "$keyfile"
else
echo "Key $keyid already present."
fi
# the end

Or: download the auto SSH script .

Notes About the Script

The script doesn’t do anything fancy, and once it has been run, adding additional keys is as simple as doing cat id_rsa.pub >> ./ssh/authorized_keys !

But, if the system hasn’t been rsa public keyed before, this script will take care of setting all the file permissions correctly.

Configuring SSH to use the RSA Key

In your ~/.ssh/config file, add the following lines:

Host nameyoucallsite
Hostname 10.0.0.1 (or hostname)
IdentityFile ~/.ssh/id_rsa
User usernameonsite

The hostname, if you set it with an IP address, it will always work (assuming your internet connection is working). If you use a hostname, it will only work if DNS is working. (Hint, if the server you are sshing into is the DNS server for that domain, make sure you have the IP address somewhere just in case!)

User is the login name for that box.

The IdentityFile is the file that you created, I usually create many keys, one for each project that I am involved in.

Once configured, doing `ssh nameyoucallsite` is all that is required to login to the site.

Internet Storm Center
May 22nd, 2006 by editor

Internet Storm StatusThe Internet Storm Center monitors the state of the Internet, and reports when there are problems due to worms or DOS (Denial Of Service) attacks. 

http://isc.sans.org/infocon.php

Would you like the rest of the Ketchup?
Apr 23rd, 2006 by editor

What’s that you say? You’ve never been asked that before? I bet you have, but you didn’t hear the question!

Go to any fast food restaurant, order french fries, and you’ll be asked “Would you like some Ketchup?“. That’s the question that you’ll hear. The actual question is, “Would you like the rest of the Ketchup?” Go ahead, answer yes. And here comes the heaping pile of Ketchup you wanted!

I wish I could take credit for having “the rest of the Ketchup”, revealed to the world, but I can’t really. Larry Evans is the person that came up with it originally, and to him I give the rest of the credit!

The High Cost of “Free”
Apr 23rd, 2006 by editor

At one point in time, free actually meant free. But nowadays I find myself more and more frequently not being able to afford the high cost of free. Read the rest of this entry »

Free VMWare Player
Apr 23rd, 2006 by editor

Get Free VMWare Player here

VMWare has a fantastic product (for what it does), allowing you to run other operating systems on top of your Microsoft Windows or Linux OS. It is great for trying out Linux distributions, and the “don’t save changes to the virtual hard drive” option makes Windows fantastic for testing out service packs and giving the viruses a safe system to infect while you figure out how to get rid of them.

Read the rest of this entry »

»  Monitor: Montastic   »  Validator: Valid XHTML   »  Substance: WordPress   »  Style: Ahren Ahimsa
© Red Green Software