Advertisement
Guest User

Untitled

a guest
Oct 18th, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.01 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Online MD5 Cracker</title>
  5. <style type="text/css">
  6. <!--
  7. body,td,th {
  8. font-family: Geneva, Arial, Helvetica, sans-serif;
  9. color: #00FF00;
  10. font-weight: bold;
  11. }
  12. body {
  13. background-color: #000000;
  14. }
  15. a:link {
  16. color: #FF0000;
  17. text-decoration: none;
  18. }
  19. a:visited {
  20. text-decoration: none;
  21. color: #00FF00;
  22. }
  23. a:hover {
  24. text-decoration: none;
  25. color: #99FFFF;
  26. }
  27. a:active {
  28. text-decoration: none;
  29. color: #9900FF;
  30. }
  31. .style3 {
  32. color: #00FF00
  33. }
  34. a {
  35. font-weight: bold;
  36. }
  37. -->
  38. </style>
  39. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head>
  40. <body>
  41. <style type='text/css'>
  42. body {
  43. background-color: #000000;
  44. color: green;
  45. font-family:courier new;
  46. font-size:12px;
  47. }
  48. text,input,table,tr,td,th {
  49. border-color: green;
  50. border-style: solid;
  51. border-width: 1px;
  52. color: green;
  53. background:#0f0f0f;
  54. font-family:courier new;
  55. font-size:12px;
  56. }
  57. </style>
  58. <form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST">
  59. <center><br>
  60. Enter your MD5 hash?<br>
  61. <br>
  62. <input name="hash" type="text" class="style3" size="32"><br><br>
  63. <input type="submit" class="style3" value="Crack!"></center>
  64. </form>
  65. <?php
  66.  
  67. $city = strtolower(trim($_POST["hash"]));
  68.  
  69. if(ereg("([0-9a-f]{32})", $city)) {
  70. $urls = array(
  71. 0 => ("http://md5.rednoize.com/?p&s=md5&q=" . $city),
  72. 1 => ("http://gdataonline.com/qkhash.php?mode=txt&hash=" . $city),
  73. 2 => ("http://milw0rm.com/cracker/search.php"),
  74. 3 => ("http://md5decryption.com/"),
  75. 4 => ("http://alimamed.pp.ru/md5/?md5e=&md5d=" . $city),
  76. 5 => ("http://ice.breaker.free.fr/md5.php?hachage=" . $city),
  77. 6 => ("http://passcracking.com/"),
  78. 7 => ("http://md5.hashcracking.com/search.php?md5=" . $city),
  79. 8 => ("http://www.hashchecker.com/index.php?_sls=search_hash"),
  80. 9 => ("http://md5crack.it-helpnet.de/index.php?op=search"),
  81. 10 => ("http://blacklight.gotdns.org/cracker/crack.php"),
  82. 11 => ("http://md5.ip-domain.com.cn/"),
  83. 12 => ("http://www.bigtrapeze.com/md5/"),
  84. 13 => ("http://opencrack.hashkiller.com/"),
  85. 14 => ("http://www.md5oogle.com/decrypt.php?input=" . $city),
  86. 15 => ("http://www.tydal.nu/php/sakerhet/md5.php?q=" . $city)
  87. );
  88.  
  89. $params = array(
  90. 0 => (null),
  91. 1 => (null),
  92. 2 => ("hash=" . $city . "&submit=Submit"),
  93. 3 => ("hash=" . $city . "&submit=Decrypt It!"),
  94. 4 => (null),
  95. 5 => (null),
  96. 6 => ("datafromuser=" . $city . "&submit=DoIT"),
  97. 7 => (null),
  98. 8 => ("search_field=" . $city . "&Submit=search"),
  99. 9 => ("md5=" . $city . "&submit=Search now"),
  100. 10 => ("hash=" . $city . "&algos=MD5&crack=Crack"),
  101. 11 => ("text=" . $city . "&submit=submit"),
  102. 12 => ("query=" . $city . "&submit= Crack "),
  103. 13 => ("oc_check_md5=" . $city ."&oc_submit=Search MD5"),
  104. 14 => (null),
  105. 15 => (null)
  106. );
  107.  
  108. $patterns = array(
  109. 0 => (null),
  110. 1 => ("/<\/td><td width=\"35%\"><b>(.*)<\/b><\/td><\/tr>/"),
  111. 2 => ("/<\/TD><TD align=\"middle\" nowrap=\"nowrap\" width=90>(.*)<\/TD><TD align=\"middle\" nowrap=\"nowrap\" width=90>cracked<\/TD><\/TR>/"),
  112. 3 => ("/<h2>Results<\/h2><b>Md5 Hash:<\/b> " . $city . "<br\/><b class='red'>Normal Text: <\/b>(.*)<br\/>/"),
  113. 4 => ("/: <b>(.*)<\/b><br><form action=\"\">/"),
  114. 5 => ("/: <b><br \/><br \/> - (.*)<\/b>/"),
  115. 6 => ("/<\/td><td>md5 Database<\/td><td>" . $city . "<\/td><td bgcolor=#FF0000>(.*)<\/td><td>/"),
  116. 7 => ("/Cleartext of " . $city . " is (.*)/"),
  117. 8 => ("/<td><li>Your md5 hash is :<br><li>" . $city . " is <b>(.*)<\/b> used charl/"),
  118. 9 => ("/<\/td><td>" . $city . "<\/td><td>(.*)<\/td>/"),
  119. 10 => ("/" . $city . " -> <b>(.*)<\/b><br><br>/"),
  120. 11 => ("/<strong>result:<\/strong><font color=red>(.*)<\/font> /"),
  121. 12 => ("/The hash <strong>" . $city . "<\/strong> has been deciphered to: <strong>(.*)<\/strong>/"),
  122. 13 => ("/<\/div><div class=\"result\">" . $city . ":(.*)<br\/>/"),
  123. 14 => ("/<br\/><center><div style=\"background: lightblue;\"><b>Result: (.*)<\/b><br \/><\/div><\/center><br \/>/"),
  124. 15 => ("/(.*)<\/b><\/h5>/")
  125. );
  126.  
  127. if((count($urls) !== count($params)) || (count($urls) !== count($patterns)) || (count($params) !== count($patterns))) { die("Error"); }
  128.  
  129. for($i = 0; $i < count($urls); $i++) {
  130. echo "\n<br>\n";
  131.  
  132. $url = $urls[$i];
  133. $param = $params[$i];
  134. $pattern = $patterns[$i];
  135.  
  136. $message = ereg_replace("(http|https)://", null, $url);
  137. $message = ereg_replace("/(.*)", null, $message);
  138.  
  139. $ch = curl_init();
  140. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, "4");
  141. if(!empty($param)) {
  142. curl_setopt($ch, CURLOPT_POST, 1);
  143. curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
  144. }
  145. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  146. curl_setopt($ch, CURLOPT_URL, $url);
  147. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)");
  148. curl_setopt($ch, CURLOPT_TIMEOUT, "4");
  149. $result = @curl_exec($ch);
  150. curl_close($ch);
  151.  
  152. if(!empty($result)) {
  153. if(empty($pattern)) {
  154. $final = $result;
  155. } else {
  156. preg_match($pattern, $result, $final);
  157. $final = $final[1];
  158. }
  159. }
  160.  
  161. echo (md5($final) === $city || md5(htmlentities($final)) === $city)?("[+]" . $message . ": <b>" . htmlentities($final) . "</b>"):("[-]" . $message . ": not found");
  162. }
  163. }
  164. ?>
  165. <br>
  166. </div>
  167. </body>
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement