Показать сообщение отдельно

  #110  
Старый 16.12.2007, 23:59
-=lebed=-
Флудер
Регистрация: 21.06.2006
Сообщений: 3,193
Провел на форуме:
12702287

Репутация: 4738


По умолчанию

Вот скрипт NOmer1 парсит хэши по 5 - ти сервисам, их тоже можно добавить в наш сервис.
PHP код:
<?php
set_time_limit 
(0);
error_reporting(0);
function 
read()
{
    if(!isset(
$GLOBALS['StdinPointer']))
    {
        
$GLOBALS['StdinPointer'] = fopen("php://stdin","a");
    }
    
$line fgets($GLOBALS['StdinPointer'],255);
    return 
trim($line);
}
function 
unmd5($hash)
{
    function 
file_post_contents($url,$query
    { 
        
$url parse_url($url); 
        
$fp fsockopen($url['host'], 80$errno$errstr30); 
        if(!
$fp
        { 
            return 
false
        } 
        else 
        { 
            
$postContents "POST ".$url['scheme']."://".$url['host'].$url['path']."?".$url['query']." HTTP/1.0\r\n"
            
"Host: ".$url['host']."\r\n"
            
"Referer: ".$url['scheme']."://".$url['host'].$url['path']."?".$url['query']."\r\n"
            
"Content-Type: application/x-www-form-urlencoded\r\n"
            
"Content-Length: ".strlen($query)."\r\n\r\n"
            
$query
            
fputs($fp$postContents); 
            
$result ''
            while(!
feof($fp))
            { 
                
$result .= fgets($fp128); 
            } 
            
fclose($fp); 
            return 
$result
        }
    }
    
$one file_post_contents('http://milw0rm.com/md5/search.php''hash='.$hash);
    
preg_match('|<TD align="middle" nowrap="nowrap" width=90>([^(md5)]+)</TD>|'$one$a);
    if(
$a[1] == false)
    {
        
$two file_get_contents('http://us.md5.crysm.net/find?md5='.$hash);
        
preg_match('|<li>(.+)</li>|U'$two$a);
        if(
$a[1] == false)
        {
            
$three file_post_contents('http://md5crack.it-helpnet.de/index.php?op=search''md5='.$hash);
            
preg_match('|<td>'.$hash.'</td><td>(.+)</td>|'$three$a);
            if(
$a[1] == false)
            {
                
$four file_get_contents('http://md5.benramsey.com/md5.php?hash='.$hash);
                
preg_match('|<string><!\[CDATA\[(.+)\]\]></string>|U'$four$a);
                if(
$a[1] == false)
                {
                    
$five file_post_contents('http://www.md5decrypter.com/''hash='.$hash);
                    
preg_match('|Normal Text: </b>(.+)|'$five$a);
                }
            }
        }
    }
    return 
$a[1];
}
echo(
"Enter md5 hash:\n\n");
$hash read();
if(
preg_match('|^[a-f0-9]{32}$|',$hash))
{
    
$password unmd5($hash);
    if(
$password)
    {
        echo 
"Password: ".$password."\n\n";
    }
    else
    {
        echo 
"Password not found\n\n";
    }
}
else
{
    echo(
"it's not a md5 hash!\n\n");
}
echo(
"Press 'Enter' to exit");
read();
?>
 
Ответить с цитированием