Код:
<html> <head> <title>Hashkiller.com -Tool - MD5 Extractor</title> </head> <body> <h2>Hashkiller.com</h2> <h3>Tool: MD5-Extractor</h3> <form action="/bin/md5_extract.php" method="post"> <textarea name="md5text" rows="10" cols="40">Input your MD5 here...</textarea> <br/> <input type="submit" name="md5submit" value="Extract" /> </form> <br/> <?php if(isset($_POST['md5submit'])) { $md5text = $_POST['md5text']; $md5text = trim($md5text); if($md5text != '') { $preg = preg_match_all('@([0-9a-f]{32})@i',$md5text,$md5match); if($preg == true) { $md5match['1'] = array_unique($md5match['1']); $md5matchcount = count($md5match['1']); if($md5matchcount > 0) { asort($md5match['1']); echo '<b>Extracted MD5 '.$md5matchcount."</b><br/>\n"; foreach($md5match['1'] AS $md5) { echo $md5."<br/>\n"; } }else{ echo '<b>Error</b>:<br/>No MD5 could be found'; } }else{ echo '<b>Error</b>:<br/>No MD5 could be found'; } }else{ echo '<b>Error</b>:<br/>Your input was empty'; } } ?> </body> </html>