Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- set_time_limit(0);
- $max = 100000;
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>[MD5 DECRYPTER] v1.1</title>
- <style type="text/css">
- html {
- background: #f1f1f1;
- }
- body {
- background: #fff;
- margin: 22px auto;
- width: 764px;
- padding: 22px;
- text-align: center;
- font-family: Georgia, "Times New Roman", Times, serif;
- color: #464646;
- }
- h2 {
- font-size: 3em;
- font-weight: normal;
- }
- </style>
- </head>
- <body>
- <pre>
- _____ _____ _ _____ _____ _____ _____ _____ _____
- ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
- |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
- |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
- |s C R i P T z - T E A M . i N F O|
- [MD5 DECRYPTER]
- </pre>
- <div id="menu">
- <form action="" method="POST">
- Select cipher type:
- <select name="type" id="type">
- <option value="md5">MD5</option>
- <option value="sha1">SHA1</option>
- <option value="smf">SMF</option>
- </select><br />
- Put HASH: <br />
- <input type="text" name="hash" value="" maxlength="40" size="41"/><br />
- Put SALT: <br />
- <input type="text" name="salt" id="salt" value="" maxlength="40" size="41"/><br />
- Dictionary: <input type="checkbox" id="usedic" name="usedic" value="yes"><br />
- <input type="hidden" value="no" id="dictionary" name="dictionary" />
- <textarea name="dic" id="dic" rows="5" cols="50"></textarea><br />
- Stop processing if there's a positive match: <input type="checkbox" name="stop" value="yes"><br /><br />
- <input type="submit" name="submit" value="DECODE"/>
- </form>
- </div>
- <div id="result">
- <?php
- $start = microtime(true);
- function checkHash($hash, $long)
- {
- return preg_match('/^[a-f0-9]{'.$long.'}$/', $hash);
- }
- if(isset($_POST['submit'])):
- $hash = htmlentities($_POST['hash']);
- $salt = htmlentities($_POST['salt']);
- $type = $_POST['type'];
- $usedic = $_POST['dictionary'];
- $dic = $_POST['dic'];
- $stop = $_POST['stop'];
- $counter = 0;
- if($type == 'md5'):
- if(!checkHash($hash, 32)):
- echo '<div class="border">The entered hash doesn\'t look like MD5</div>';
- exit();
- else:
- $data = array(
- 'pages' => array(
- 0 => 'http://md5decryption.com/',
- 1 => 'http://md5-decrypter.com/',
- 2 => 'http://md5.rednoize.com/?q='.$hash,
- 3 => 'http://md5.hashcracking.com/search.php?md5='.$hash,
- 4 => 'http://www.md5rainbow.com/'.$hash,
- 5 => 'http://md5crack.com/crackmd5.php',
- 6 => 'http://md5pass.info/',
- 7 => 'http://md5.unidadlocal.com/'.$hash,
- 8 => 'http://www.hashhack.com/index.php',
- 9 => 'http://www.md5this.com/crackit.php',
- 10 => 'http://md5hack.com/md5_cracker.php',
- 11 => 'http://www.md5.net/cracker.php',
- 12 => 'http://crackstation.net/index.php'
- ),
- 'parameters' => array(
- 0 => 'hash='.$hash.'&submit=Decrypt It!',
- 1 => 'data[Row][cripted]='.$hash,
- 2 => null,
- 3 => null,
- 4 => null,
- 5 => 'term='.$hash.'&submit=Crack that hash baby!',
- 6 => 'hash='.$hash.'&get_pass=Get Pass',
- 7 => null,
- 8 => 'hash='.$hash.'&antispam=7',
- 9 => 'h='.$hash.'&s=Crack it!',
- 10 => 'dico=dicos/1.txt&hash='.$hash.'&ok= Crack ',
- 11 => 'hash='.$hash,
- 12 => 'hashes='.$hash.'&crack=Crack Hashes'
- ),
- 'sustitution' => array(
- 0 => "/Decrypted Text: <\/b>(.*)<\/font>/",
- 1 => "/<b class=\"res\">(.*)<\/b>/",
- 2 => "/<div id=\"result\" >(.*)<\/div>/",
- 3 => "/Cleartext of ".$hash." is (.*)/",
- 4 => "/(.*)<br\/><p style=\"font-size: 9pt; line-height: 48px;\">/",
- 5 => "/Found: md5\(\"(.*)\"\) = ".$hash."/",
- 6 => "/Password - <b>(.*)<\/b>/",
- 7 => "/Se encontro <strong>\"(.*)\"<\/strong> MD5:/",
- 8 => "/<center>".$hash." : : <b><font color=green>(.*)<\/font><\/b>/",
- 9 => "/The value of <b>".$hash."<\/b> resolves to -> <b>(.*)<\/b>/",
- 10 => "/<h3>".$hash." <\/br><font color=white>Cracking Successful Password =<\/font><font color=red size=20> (.*)/",
- 11 => "/<input type=\"text\" id=\"hash\" size=\"32\" value=\"(.*)\"\/> /",
- 12 => "/<td>".$hash."<br \/><\/td><td>md5<\/td><td>(.*)<\/td>/"
- ),
- 'security' => array(
- 0 => null,
- 1 => "<b class=\"res\">".$hash."</b>",
- 2 => null,
- 3 => null,
- 4 => null,
- 5 => null,
- 6 => null,
- 7 => null,
- 8 => null,
- 9 => null,
- 10 => null,
- 11 => null,
- 12 => null
- )
- );
- endif;
- elseif($type == 'sha1'):
- if(!checkHash($hash, 40)):
- echo '<div class="border">The entered hash doesn\'t look like SHA1</div>';
- exit(1);
- else:
- $data = array(
- 'pages' => array(
- 0 => 'http://sha1.unidadlocal.com/'.$hash
- ),
- 'parameters' => array(
- 0 => null,
- 1 => 'datafromuser='.$hash
- ),
- 'sustitution' => array(
- 0 => "/Se encontro <strong>\"(.*)\"<\/strong> SHA1:/"
- ),
- 'security' => array(
- 0 => null
- )
- );
- endif;
- elseif($type == 'smf'):
- if(!checkHash($hash, 40)):
- echo '<div class="border">The entered hash doesn\'t look like SMF</div>';
- exit(1);
- endif;
- endif;
- $title = '<br /><br />Cipher type: <font color="#00FF00">'.strtoupper($type).'</font><br />- - - - - - - - - - -<br /><br />';
- if($usedic != 'yes'):
- echo $title;
- for($i = 0; $i<count($data['pages']); $i++):
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $data['pages'][$i]);
- if(!empty($data['parameters'][$i]))
- {
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data['parameters'][$i]);
- }
- curl_setopt($ch, CURLOPT_AUTOREFERER, false);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
- curl_setopt($ch, CURLOPT_REFERER, $data['pages'][$i]);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $return = curl_exec ($ch);
- curl_close ($ch);
- if(!empty($data['sustitution'][$i]))
- {
- $test = preg_match($data['sustitution'][$i], str_replace($data['security'][$i], "", $return), $result);
- $result = $result[1];
- }
- $result = ($result == 'Entry not found.' or empty($result)) ? '' : $result;
- if(!empty($result)):
- $counter++;
- $hash_dec = $result;
- echo 'Hash::['.$hash.']<br />
- [+]Page::<font color="#00FF00">'.$data['pages'][$i].'</font><br />
- [+]Status::<font color="#00FF00">Found</font><br />
- [+]Result::<font color="#00FF00">'.$hash_dec.'</font><br /><br />';
- if($stop == 'yes'):
- break;
- endif;
- elseif($stop != 'yes'):
- echo 'Hash::['.$hash.']<br />
- [+]Page::<font color="red">'.$data['pages'][$i].'</font><br />
- [+]Status::<font color="red">Not Found</font><br />
- [+]Result::<font color="red">none</font><br /><br />';
- endif;
- endfor;
- $min = ($stop == 'yes') ? '[Min] '.$counter.' of '.count($data['pages']): $counter.'/'.count($data['pages']);
- if($counter >= 1):
- echo '- - - - - - - - - - -<br />Positive matches: <font color="#00FF00">'.$min.'</font>';
- echo '<br />Deciphered hash: <font color="#00FF00">'.$hash_dec.'</font>';
- else:
- echo '- - - - - - - - - - -<br />Positive matches: <font color="red">[None] '.$counter.'/'.count($data['pages']).'</font>';
- echo '<br />Deciphered hash: <font color="red">Not Found</font>';
- endif;
- else:
- $x = explode("\r\n", $dic);
- if((count($x) > $max) or (count($x) == 1)):
- echo '<div class="border">Only allows <font color="red">1-'.$max.'</font> word per dictionary.</div>';
- exit(1);
- else:
- echo $title;
- for($i = 0; $i<count($x); $i++):
- if($type == 'md5' or $type == 'sha1'):
- $new_hash = ($type == 'md5') ? md5($x[$i]) : sha1($x[$i]);
- elseif($type == 'smf'):
- $new_hash = sha1($salt.$x[$i]);
- $add = $salt;
- endif;
- if(!empty($x[$i])):
- if($new_hash == $hash):
- $counter++;
- $hash_dec = htmlspecialchars($x[$i], ENT_QUOTES);
- echo 'Hash::['.$hash.']<br />';
- echo (!empty($salt)) ? ' [+]Salt::<font color="green">'.$salt.'</font><br />' : '';
- echo ' [+]Word::<font color="green">'.$hash_dec.'</font><br />
- [+]Status::<font color="green">Found</font><br />
- [+]Result::<font color="green">'.$add.$hash_dec.'</font><br /><br /><br />';
- if($stop == 'yes'):
- break;
- endif;
- elseif($stop != 'yes'):
- echo 'Hash::['.$hash.']<br />';
- echo (!empty($salt)) ? ' [+]Salt::<font color="red">'.$salt.'</font><br />' : '';
- echo ' [+]Word::<font color="red">'.$x[$i].'</font><br />
- [+]Status::<font color="red">Not Found</font><br />
- [+]Result::<font color="red">none</font><br /><br />';
- endif;
- $total++;
- endif;
- endfor;
- if($counter == 0):
- echo 'Hash::['.$hash.']<br />';
- echo (!empty($salt)) ? ' [+]Salt::<font color="red">'.$salt.'</font><br />' : '';
- echo ' [+]Word::<font color="red">'.$x[$i].'</font><br />
- [+]Status::<font color="red">Not Found</font><br />
- [+]Result::<font color="red">none</font><br /><br />';
- endif;
- $min = ($stop == 'yes') ? '[Mínimo] '.$counter.' de '.count($x): $counter.'/'.count($x);
- if($counter >= 1):
- echo '- - - - - - - - - - -<br />Positive matches: <font color="#00FF00">'.$min.'</font>';
- echo '<br />Deciphered hash: <font color="#00FF00">'.$add.$hash_dec.'</font>';
- else:
- echo '- - - - - - - - - - -<br />Positive matches: <font color="red">'.$counter.'/'.count($x).'</font>';
- echo '<br />Deciphered hash: <font color="red">Not Found</font>';
- endif;
- endif;
- endif;
- $end = microtime(true);
- echo '<br />Execution time: <font color="#00FF00">'.str_replace('-', '', round($start - $end, 2)).' sec</font>';
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment