Thread Contributor: ubersakiMD5 Hash Cracker
#1
Simple script that utilizes a hash cracking site to provide plain text passwords from MD5 hashes. one hash per line

Code:
<form action='' method='post'>
<textarea name="hashes" id="hashes" cols="45" rows="8"></textarea><br>
<br />
<input type="submit" value="crack em" />
</form>
<?php
  function checkHash($hash){
        $url = "http://md5.noisette.ch/md5.php?hash=".$hash;
$response = file_get_contents($url);
$gethash = new SimpleXMLElement($response);
if($gethash->error != ''){
$plain = "Not Found";
}else{
$plain = $gethash->string;
}
$line = $hash.":".$plain."<br />";
return $line;

}

if(count($_POST) > 0 ){
        $xhashes = explode("\n", $_POST["hashes"]);
        $countids = count($xhashes);
        for($i=0;$i<$countids;$i++)
        {
 $cleanhash=preg_replace('/\s+/', '', $xhashes[$i]);
 $fun = checkHash($cleanhash);
 echo $fun;
  }
}
?>
#2
Looks like the [/code] tag dropped early. Your code was split before the </form>.

Heads up to anyone looking to use this in production, the service this script relied on is no longer available at the given domain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)