What kind of hash is this?
#9
Do it like I did:
since there are only pins of length 4 and the range is 0000 - 9999, you can just quickly iterate through this list w/ a few lines of code...
Below are some lines of perl... run it as ./ios7.pl hash salt
for instance (masked): ./ios7.pl 27XXX97171eXXX9fc5fXXX9ef06cXXXX51XX7XXX fdXXcXeX

ios7.pl
Code:
#!/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 lenght 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);

This should be fast enought for the ios7 bruteforcing, it takes just some seconds on my system for a full bruteforce 0000 - 9999...
But ofc... we could think of adding a pbkdf2-hmac-sha1 w/ variable iterations to *hashcat (if you insist in this feature, you could request it on trac... but for sure not needed for this kind of bruteforce - 4 digits only).

PS. we do not "decrypt" hashes (because they are not encrypted) - we crack them
PPS. you need to know how to run perl script otherwise it won't help


Messages In This Thread
What kind of hash is this? - by Tinnuel - 12-05-2013, 08:04 PM
RE: What kind of hash is this? - by magnum - 12-06-2013, 12:23 AM
RE: What kind of hash is this? - by Tinnuel - 12-06-2013, 04:53 PM
RE: What kind of hash is this? - by Si2006 - 12-06-2013, 10:26 PM
RE: What kind of hash is this? - by phantom23 - 01-03-2014, 02:39 AM
RE: What kind of hash is this? - by magnum - 01-03-2014, 12:35 PM
RE: What kind of hash is this? - by philsmd - 01-03-2014, 02:02 PM
RE: What kind of hash is this? - by phantom23 - 01-03-2014, 07:56 PM
RE: What kind of hash is this? - by philsmd - 01-03-2014, 08:30 PM
RE: What kind of hash is this? - by phantom23 - 01-03-2014, 10:35 PM
RE: What kind of hash is this? - by vrposter - 01-15-2014, 12:42 PM
RE: What kind of hash is this? - by philsmd - 01-15-2014, 02:57 PM
RE: What kind of hash is this? - by vrposter - 01-15-2014, 03:45 PM
RE: What kind of hash is this? - by vrposter - 01-16-2014, 07:49 PM
RE: What kind of hash is this? - by ammonsphoto - 02-21-2014, 05:34 PM
RE: What kind of hash is this? - by ammonsphoto - 02-21-2014, 06:02 PM
RE: What kind of hash is this? - by ChaDerson - 04-05-2014, 07:26 AM