<?php
$hash = 'e626d51g54t54765a88396c35d05';
$wordlist = fopen("/usr/share/wordlists/rockyou.txt","r");
$count = 0;
$start_time = microtime(true);
while(! feof($wordlist)) {
$str = fgets($wordlist);
$str = trim($str);
$genhash = md5(crypt($str,'fa'));
if($hash == $genhash){
echo "Password Found: ". $str."\n";
$end_time = microtime(true);
$execution_time = ($end_time - $start_time);
echo "Tried Passwords:=". $count."\n";
echo "Time taken in cracking = ".$execution_time." sec";
fclose($wordlist);
exit(0);
}
else
{
$count = $count+1;
}
}
fclose($wordlist);
?>
git clone https://github.com/philsmd/7z2hashcat.git cd 7z2hashcat ./7z2hashcat.pl yourfile.7z > hash.txt hashcat -m 11600 -a 0 hash.txt wordlist.txt hashcat -m 11600 -a 0 hash.txt /usr/share/wordlists/rockyou.txt --force -r /usr/share/hashcat/rules/d3ad0ne.rule
Comments
Post a Comment