Showing posts with label websphere recover password from stash file. Show all posts
Showing posts with label websphere recover password from stash file. Show all posts

Tuesday, September 6, 2016

Password recovery from stash file

Copy the below contents to a file and save as unstash.pl

use strict;

die "Usage: $0 \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";



Run
perl unstash.pl key.sth
where key.sth is your stashed password