Stygmata wrote
Thank you rolf .
I managed to get an old mac and i installed perl needed in the last part of the article using this : sudo cpan install Crypt::PBKDF2
now i just open a terminal and type the remaining :
#!/usr/bin/env perl
use Crypt::PBKDF2;
?
You're welcome.
No, that's part of the file. You should create an empty text file, call it ios7.pl, and paste the code inside. I don't know what the default text editor is on OSX. You need a plain text editor, like notepad on Windows. If you can't find the default text editor then you can maybe install Sublime Text on OSX. It's great and I use it all the time for coding.
#!/usr/bin/env perl
use Crypt::PBKDF2;
if (@ARGV < 2) {
print "[!] Error: please specify hash (first argument) and salt (second argument)\n";
exit (1);
}
my $match = pack ("H*", $ARGV[0]); # TODO: check if it is of length 40
my $salt = pack ("H*", $ARGV[1]); # of length 8?
my $iter = 1000;
my $pbkdf2 = Crypt::PBKDF2->new (hash_class => 'HMACSHA1', iterations => $iter);
my $num;
for ($num = 0; $num < 10000; $num++) {
my $pass = sprintf ("%04d", $num);
my $hash = $pbkdf2->PBKDF2 ($salt, $pass);
if ($match eq $hash) {
printf ("%s:%s:%s:%s\n", unpack ("H*", $hash), unpack ("H*", $salt), $iter, $pass);
exit (0);
}
}
exit (1);
Then open a terminal window, change directory ("cd") to wherever you saved that text file. For example if it's in /home/Stygmata/Desktop/ then type these two commands in terminal (press enter at the end of each line):
cd /home/Stygmata/Desktop/
time ios7.pl hex_hash hex_salt
Make sure you replace "hex_hash" and "hex_salt" by the hex values I gave you previously. I hope they are correct.
I've gone into some details just to make sure there is no misunderstanding, since you say that you know little about programming.
Let me know how it goes!