Code:
<?php
/* your password list */
$list = 'list.txt';
/* the hash you'd like to be cracked */
$hash = 'c642e07b67c48a2ced3';
/* the salt */
$salt = 'h78hg7';
/* after how many tries you'd like a status report */
$step = 500;
$pws = file($list);
$count = count($pws);
foreach($pws as $x => $pw)
{
$pw = str_replace("\r", null, $pw);
$pw = str_replace("\n", null, $pw);
if (md5(md5($pw).$salt) == $hash) // md5(md5(password) + salt)
{
printf("- [%".strlen($count)."d|%d] [!]\n PW FOUND: [%s]\n", $x, $count, $pw);
break;
}
if ($x % $step == 0)
printf("- [%".strlen($count)."d|%d] %2d%%\n", $x, $count, 100 * $x / $count);
}
printf(" DONE\n");
?>
mfG. BlackBerry