scriptz-team

[PHP] MD5 DECRYPTER v1.1

Aug 4th, 2012
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.21 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. set_time_limit(0);
  4. $max = 100000;
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>[MD5 DECRYPTER] v1.1</title>
  11. <style type="text/css">
  12. html {
  13. background: #f1f1f1;
  14. }
  15. body {
  16. background: #fff;
  17. margin: 22px auto;
  18. width: 764px;
  19. padding: 22px;
  20. text-align: center;
  21. font-family: Georgia, "Times New Roman", Times, serif;
  22. color: #464646;
  23. }
  24. h2 {
  25. font-size: 3em;
  26. font-weight: normal;
  27. }
  28. </style>
  29. </head>
  30.  
  31. <body>
  32. <pre>
  33. _____ _____ _ _____ _____ _____ _____ _____ _____
  34. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  35. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  36. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  37. |s C R i P T z - T E A M . i N F O|
  38.  
  39. [MD5 DECRYPTER]
  40. </pre>
  41. <div id="menu">
  42. <form action="" method="POST">
  43. Select cipher type:
  44. <select name="type" id="type">
  45. <option value="md5">MD5</option>
  46. <option value="sha1">SHA1</option>
  47. <option value="smf">SMF</option>
  48. </select><br />
  49. Put HASH: <br />
  50. <input type="text" name="hash" value="" maxlength="40" size="41"/><br />
  51. Put SALT: <br />
  52. <input type="text" name="salt" id="salt" value="" maxlength="40" size="41"/><br />
  53. Dictionary: <input type="checkbox" id="usedic" name="usedic" value="yes"><br />
  54. <input type="hidden" value="no" id="dictionary" name="dictionary" />
  55. <textarea name="dic" id="dic" rows="5" cols="50"></textarea><br />
  56. Stop processing if there's a positive match: <input type="checkbox" name="stop" value="yes"><br /><br />
  57. <input type="submit" name="submit" value="DECODE"/>
  58. </form>
  59. </div>
  60. <div id="result">
  61. <?php
  62. $start = microtime(true);
  63. function checkHash($hash, $long)
  64. {
  65. return preg_match('/^[a-f0-9]{'.$long.'}$/', $hash);
  66. }
  67. if(isset($_POST['submit'])):
  68. $hash = htmlentities($_POST['hash']);
  69. $salt = htmlentities($_POST['salt']);
  70. $type = $_POST['type'];
  71. $usedic = $_POST['dictionary'];
  72. $dic = $_POST['dic'];
  73. $stop = $_POST['stop'];
  74. $counter = 0;
  75. if($type == 'md5'):
  76. if(!checkHash($hash, 32)):
  77. echo '<div class="border">The entered hash doesn\'t look like MD5</div>';
  78. exit();
  79. else:
  80. $data = array(
  81. 'pages' => array(
  82. 0 => 'http://md5decryption.com/',
  83. 1 => 'http://md5-decrypter.com/',
  84. 2 => 'http://md5.rednoize.com/?q='.$hash,
  85. 3 => 'http://md5.hashcracking.com/search.php?md5='.$hash,
  86. 4 => 'http://www.md5rainbow.com/'.$hash,
  87. 5 => 'http://md5crack.com/crackmd5.php',
  88. 6 => 'http://md5pass.info/',
  89. 7 => 'http://md5.unidadlocal.com/'.$hash,
  90. 8 => 'http://www.hashhack.com/index.php',
  91. 9 => 'http://www.md5this.com/crackit.php',
  92. 10 => 'http://md5hack.com/md5_cracker.php',
  93. 11 => 'http://www.md5.net/cracker.php',
  94. 12 => 'http://crackstation.net/index.php'
  95. ),
  96. 'parameters' => array(
  97. 0 => 'hash='.$hash.'&submit=Decrypt It!',
  98. 1 => 'data[Row][cripted]='.$hash,
  99. 2 => null,
  100. 3 => null,
  101. 4 => null,
  102. 5 => 'term='.$hash.'&submit=Crack that hash baby!',
  103. 6 => 'hash='.$hash.'&get_pass=Get Pass',
  104. 7 => null,
  105. 8 => 'hash='.$hash.'&antispam=7',
  106. 9 => 'h='.$hash.'&s=Crack it!',
  107. 10 => 'dico=dicos/1.txt&hash='.$hash.'&ok= Crack ',
  108. 11 => 'hash='.$hash,
  109. 12 => 'hashes='.$hash.'&crack=Crack Hashes'
  110. ),
  111. 'sustitution' => array(
  112. 0 => "/Decrypted Text: <\/b>(.*)<\/font>/",
  113. 1 => "/<b class=\"res\">(.*)<\/b>/",
  114. 2 => "/<div id=\"result\" >(.*)<\/div>/",
  115. 3 => "/Cleartext of ".$hash." is (.*)/",
  116. 4 => "/(.*)<br\/><p style=\"font-size: 9pt; line-height: 48px;\">/",
  117. 5 => "/Found: md5\(\"(.*)\"\) = ".$hash."/",
  118. 6 => "/Password - <b>(.*)<\/b>/",
  119. 7 => "/Se encontro <strong>\"(.*)\"<\/strong> MD5:/",
  120. 8 => "/<center>".$hash." : : <b><font color=green>(.*)<\/font><\/b>/",
  121. 9 => "/The value of <b>".$hash."<\/b> resolves to -> <b>(.*)<\/b>/",
  122. 10 => "/<h3>".$hash." <\/br><font color=white>Cracking Successful Password =<\/font><font color=red size=20> (.*)/",
  123. 11 => "/<input type=\"text\" id=\"hash\" size=\"32\" value=\"(.*)\"\/> /",
  124. 12 => "/<td>".$hash."<br \/><\/td><td>md5<\/td><td>(.*)<\/td>/"
  125. ),
  126. 'security' => array(
  127. 0 => null,
  128. 1 => "<b class=\"res\">".$hash."</b>",
  129. 2 => null,
  130. 3 => null,
  131. 4 => null,
  132. 5 => null,
  133. 6 => null,
  134. 7 => null,
  135. 8 => null,
  136. 9 => null,
  137. 10 => null,
  138. 11 => null,
  139. 12 => null
  140. )
  141. );
  142. endif;
  143. elseif($type == 'sha1'):
  144. if(!checkHash($hash, 40)):
  145. echo '<div class="border">The entered hash doesn\'t look like SHA1</div>';
  146. exit(1);
  147. else:
  148. $data = array(
  149. 'pages' => array(
  150. 0 => 'http://sha1.unidadlocal.com/'.$hash
  151. ),
  152. 'parameters' => array(
  153. 0 => null,
  154. 1 => 'datafromuser='.$hash
  155. ),
  156. 'sustitution' => array(
  157. 0 => "/Se encontro <strong>\"(.*)\"<\/strong> SHA1:/"
  158. ),
  159. 'security' => array(
  160. 0 => null
  161. )
  162. );
  163. endif;
  164. elseif($type == 'smf'):
  165. if(!checkHash($hash, 40)):
  166. echo '<div class="border">The entered hash doesn\'t look like SMF</div>';
  167. exit(1);
  168. endif;
  169. endif;
  170. $title = '<br /><br />Cipher type: <font color="#00FF00">'.strtoupper($type).'</font><br />- - - - - - - - - - -<br /><br />';
  171. if($usedic != 'yes'):
  172. echo $title;
  173. for($i = 0; $i<count($data['pages']); $i++):
  174. $ch = curl_init();
  175. curl_setopt($ch, CURLOPT_URL, $data['pages'][$i]);
  176. if(!empty($data['parameters'][$i]))
  177. {
  178. curl_setopt($ch, CURLOPT_POST, 1);
  179. curl_setopt($ch, CURLOPT_POSTFIELDS, $data['parameters'][$i]);
  180. }
  181. curl_setopt($ch, CURLOPT_AUTOREFERER, false);
  182. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
  183. curl_setopt($ch, CURLOPT_REFERER, $data['pages'][$i]);
  184. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  185. $return = curl_exec ($ch);
  186. curl_close ($ch);
  187. if(!empty($data['sustitution'][$i]))
  188. {
  189. $test = preg_match($data['sustitution'][$i], str_replace($data['security'][$i], "", $return), $result);
  190. $result = $result[1];
  191. }
  192. $result = ($result == 'Entry not found.' or empty($result)) ? '' : $result;
  193. if(!empty($result)):
  194. $counter++;
  195. $hash_dec = $result;
  196. echo 'Hash::['.$hash.']<br />
  197. &nbsp;&nbsp;&nbsp;&nbsp;[+]Page::<font color="#00FF00">'.$data['pages'][$i].'</font><br />
  198. &nbsp;&nbsp;&nbsp;&nbsp;[+]Status::<font color="#00FF00">Found</font><br />
  199. &nbsp;&nbsp;&nbsp;&nbsp;[+]Result::<font color="#00FF00">'.$hash_dec.'</font><br /><br />';
  200. if($stop == 'yes'):
  201. break;
  202. endif;
  203. elseif($stop != 'yes'):
  204. echo 'Hash::['.$hash.']<br />
  205. &nbsp;&nbsp;&nbsp;&nbsp;[+]Page::<font color="red">'.$data['pages'][$i].'</font><br />
  206. &nbsp;&nbsp;&nbsp;&nbsp;[+]Status::<font color="red">Not Found</font><br />
  207. &nbsp;&nbsp;&nbsp;&nbsp;[+]Result::<font color="red">none</font><br /><br />';
  208. endif;
  209. endfor;
  210. $min = ($stop == 'yes') ? '[Min] '.$counter.' of '.count($data['pages']): $counter.'/'.count($data['pages']);
  211. if($counter >= 1):
  212. echo '- - - - - - - - - - -<br />Positive matches: <font color="#00FF00">'.$min.'</font>';
  213. echo '<br />Deciphered hash: <font color="#00FF00">'.$hash_dec.'</font>';
  214. else:
  215. echo '- - - - - - - - - - -<br />Positive matches: <font color="red">[None] '.$counter.'/'.count($data['pages']).'</font>';
  216. echo '<br />Deciphered hash: <font color="red">Not Found</font>';
  217. endif;
  218. else:
  219. $x = explode("\r\n", $dic);
  220. if((count($x) > $max) or (count($x) == 1)):
  221. echo '<div class="border">Only allows <font color="red">1-'.$max.'</font> word per dictionary.</div>';
  222. exit(1);
  223. else:
  224. echo $title;
  225. for($i = 0; $i<count($x); $i++):
  226. if($type == 'md5' or $type == 'sha1'):
  227. $new_hash = ($type == 'md5') ? md5($x[$i]) : sha1($x[$i]);
  228. elseif($type == 'smf'):
  229. $new_hash = sha1($salt.$x[$i]);
  230. $add = $salt;
  231. endif;
  232. if(!empty($x[$i])):
  233. if($new_hash == $hash):
  234. $counter++;
  235. $hash_dec = htmlspecialchars($x[$i], ENT_QUOTES);
  236. echo 'Hash::['.$hash.']<br />';
  237. echo (!empty($salt)) ? '&nbsp;&nbsp;&nbsp;&nbsp;[+]Salt::<font color="green">'.$salt.'</font><br />' : '';
  238. echo '&nbsp;&nbsp;&nbsp;&nbsp;[+]Word::<font color="green">'.$hash_dec.'</font><br />
  239. &nbsp;&nbsp;&nbsp;&nbsp;[+]Status::<font color="green">Found</font><br />
  240. &nbsp;&nbsp;&nbsp;&nbsp;[+]Result::<font color="green">'.$add.$hash_dec.'</font><br /><br /><br />';
  241. if($stop == 'yes'):
  242. break;
  243. endif;
  244. elseif($stop != 'yes'):
  245. echo 'Hash::['.$hash.']<br />';
  246. echo (!empty($salt)) ? '&nbsp;&nbsp;&nbsp;&nbsp;[+]Salt::<font color="red">'.$salt.'</font><br />' : '';
  247. echo '&nbsp;&nbsp;&nbsp;&nbsp;[+]Word::<font color="red">'.$x[$i].'</font><br />
  248. &nbsp;&nbsp;&nbsp;&nbsp;[+]Status::<font color="red">Not Found</font><br />
  249. &nbsp;&nbsp;&nbsp;&nbsp;[+]Result::<font color="red">none</font><br /><br />';
  250. endif;
  251. $total++;
  252. endif;
  253. endfor;
  254. if($counter == 0):
  255. echo 'Hash::['.$hash.']<br />';
  256. echo (!empty($salt)) ? '&nbsp;&nbsp;&nbsp;&nbsp;[+]Salt::<font color="red">'.$salt.'</font><br />' : '';
  257. echo '&nbsp;&nbsp;&nbsp;&nbsp;[+]Word::<font color="red">'.$x[$i].'</font><br />
  258. &nbsp;&nbsp;&nbsp;&nbsp;[+]Status::<font color="red">Not Found</font><br />
  259. &nbsp;&nbsp;&nbsp;&nbsp;[+]Result::<font color="red">none</font><br /><br />';
  260. endif;
  261. $min = ($stop == 'yes') ? '[Mínimo] '.$counter.' de '.count($x): $counter.'/'.count($x);
  262. if($counter >= 1):
  263. echo '- - - - - - - - - - -<br />Positive matches: <font color="#00FF00">'.$min.'</font>';
  264. echo '<br />Deciphered hash: <font color="#00FF00">'.$add.$hash_dec.'</font>';
  265. else:
  266. echo '- - - - - - - - - - -<br />Positive matches: <font color="red">'.$counter.'/'.count($x).'</font>';
  267. echo '<br />Deciphered hash: <font color="red">Not Found</font>';
  268. endif;
  269. endif;
  270. endif;
  271. $end = microtime(true);
  272. echo '<br />Execution time: <font color="#00FF00">'.str_replace('-', '', round($start - $end, 2)).' sec</font>';
  273. endif;
  274. ?>
Advertisement
Add Comment
Please, Sign In to add comment