Decrypt .sth file
You can decrypt .sth file's password by doing below, this example is based on UNIX platform.
1. vi unstash.pl with below code
#!/usr/bin/perl -w
#
# unstash.pl - "decrypt" stash files.
#
# sploit (BoByRiTe) 1999, Major Malfunction, code by Ben Laurie, cos I dudn't dud perly thing.
use strict;
die "Usage: $0 <stash file>\n" if $#ARGV != 0;
my $file=$ARGV[0];
open(F,$file) || die "Can't open $file: $!";
my $stash;
read F,$stash,1024;
my @unstash=map { $_^0xf5 } unpack("C*",$stash);
foreach my $c (@unstash) {
last if $c eq 0;
printf "%c",$c;
}
printf "\n";
2. Change file permission (chmod 700 or 750 unstash.pl)
3. Execute ./unstash.pl FILENAME.sth
It would display your .sth password