#!/usr/bin/perl
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 " ";
Unstashing steps:
Step 1: copy the above script into a perl script file (ex: unstash.pl or py)
Step 2: run the file as ./unstash.pl filename.sth (ex: ./unstash.pl filea.sth)
you will get the password after unstashing
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 " ";
Unstashing steps:
Step 1: copy the above script into a perl script file (ex: unstash.pl or py)
Step 2: run the file as ./unstash.pl filename.sth (ex: ./unstash.pl filea.sth)
you will get the password after unstashing
No comments:
Post a Comment