Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: bakedjake
The first trick would be for you to find out what kind of encryption system is standard on your box(es). There are many different types, and it's easy to determine once you look at the shadow files.
These are the standard types of encrypted passwords on *NIX systems and what they look like in a shadow file:
This is from my FreeBSD system, check your crypt(3) man page for more details on the salt types.
Once you've determined your salt type, which is most likely MD5, you could try to use something like crypt-pw (available at [freshmeat.net...] (Note: you need to build from source with ./configure && make) for crypt, and something that will generate MD5 passwords for you (I tried out [ripe.net...] briefly ), and there you can generate a test password to try out.
If you don't want to use an online service, you can write your own program that will spit out the MD5 password. Should be straight-forward, and I wrote a quickie Perl program that should do what you need, based on Crypt::PasswdMD5 ( [cpan.uwinnipeg.ca...] )
my $password = @ARGV;
$cryptedpassword = unix_md5_crypt($password, $salt);
The above takes the password as the argument.