help скрипт для MD5

Discussion in 'PHP' started by *.exe, 22 Mar 2007.

  1. *.exe

    *.exe Elder - Старейшина

    Joined:
    8 Jan 2007
    Messages:
    66
    Likes Received:
    11
    Reputations:
    -4
    Привет парни вот вопрос у когонибудь есть скрипт для подборки Md5 хешей?
    Если есть плиз дайте ссылку

    какойнить такой типо Перебор по словарю и полный перебор чтобы сразу несколько хешей мог юзать =)

    У меня есть но он какойто стремный =( юзает один хешь и только полным перебором =(

    ЗЫ мне на милворме скрипт очень нравится =) коооооольный вот такой хотелось бы...
    Заранее благодарен
     
  2. И.Г.

    И.Г. Elder - Старейшина

    Joined:
    29 Aug 2006
    Messages:
    336
    Likes Received:
    343
    Reputations:
    111
    так он скрипт просит,а не прогу :) ...
     
  3. n1†R0x

    n1†R0x Elder - Старейшина

    Joined:
    20 Jan 2007
    Messages:
    728
    Likes Received:
    376
    Reputations:
    235
  4. *.exe

    *.exe Elder - Старейшина

    Joined:
    8 Jan 2007
    Messages:
    66
    Likes Received:
    11
    Reputations:
    -4
    у мну есть такой =) про этот скрипт я и говорил =) мне он не очень нравится так так им по словарям не льзя юзать =( он только полным перебором может ХЕШЬ долбить =(

    Ентот скрипт у меня отседова _http://nst.void.ru/?q=releases
     
    #4 *.exe, 22 Mar 2007
    Last edited: 22 Mar 2007
  5. Stefun

    Stefun Elder - Старейшина

    Joined:
    19 Nov 2006
    Messages:
    48
    Likes Received:
    29
    Reputations:
    11
    Могу написать такой только скорость не очень будет ))
     
  6. nc.STRIEM

    nc.STRIEM Members of Antichat

    Joined:
    5 Apr 2006
    Messages:
    1,036
    Likes Received:
    347
    Reputations:
    292
    /showpost.php?p=216144&postcount=2
     
    1 person likes this.
  7. *.exe

    *.exe Elder - Старейшина

    Joined:
    8 Jan 2007
    Messages:
    66
    Likes Received:
    11
    Reputations:
    -4
    Пасиба поюзаем =)
     
  8. darky

    darky ♠ ♦ ♣ ♥

    Joined:
    18 May 2006
    Messages:
    1,773
    Likes Received:
    825
    Reputations:
    1,418
    +1
    PHP:
    <?
    set_time_limit(0);
    error_reporting(0);

    $fname="";
    $hash="";
    $word="";
    $hash_md5="";

    $gen_wlist="";
    $fname_wlist="";

    for(
    $i=0;$i<10;$i++){
    $temp="length".$i;
    $
    $temp="";}

    for(
    $i=1;$i<10;$i++){
    $temp="length_wlist".$i;
    $
    $temp="";}


    $word=@$_POST["word"];

    $hash=@$_POST["hash"];
    $chars=@$_POST["chars"];
    $length=@$_POST["length"];
    $fname=@$_GET["fname"];

    $gen_wlist=@$_POST["gen_wlist"];
    $length_wlist=@$_POST["length_wlist"];
    $chars_wlist=@$_POST["chars_wlist"];
    $fname_wlist=@$_GET["fname_wlist"];

    if(!
    $hash){$hash=@$_GET["hash"];}
    if(!
    $chars){$chars=@$_GET["chars"];}
    if(!
    $length){$length=@$_GET["length"];}

    if(!
    $gen_wlist){$gen_wlist=@$_GET["gen_wlist"];}
    if(!
    $chars_wlist){$chars_wlist=@$_GET["chars_wlist"];}
    if(!
    $length_wlist){$length_wlist=@$_GET["length_wlist"];}

    if(!
    $chars){$chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";}
    if(!
    $chars_wlist){$chars_wlist="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";}


    $length=floor(abs($length));
    if(
    $length 9){$length="0";}
    $temp="length".$length;
    $
    $temp="checked";


    $length_wlist=floor(abs($length_wlist));
    if((
    $length_wlist 9) or ($length_wlist == "0")){$length_wlist="1";}
    $temp="length_wlist".$length_wlist;
    $
    $temp="checked";

    $gen_wlist=floor(abs($gen_wlist));

    $action=@$_POST["action"];
    if(!
    $action){$action=@$_GET["action"];}

    if((
    $action == "coding") and ($word)){$hash_md5=md5($word);}
    elseif((
    $action == "decoding") and ((strlen($hash) == "32") or ($gen_wlist == "1"))){preparing();}
    elseif((
    $action == "decode") and (((strlen($hash) == "32") and (file_exists("./order/".$fname.".txt"))) or (($gen_wlist == "1") and (file_exists("./order/".$fname_wlist.".txt"))))){decode();exit;}
    else{}


    $word=untag($word);
    $chars=untag($chars);

    Echo 
    "
    <title>Кодинг md5, Декодинг md5, Генерация ворд листа.</title>
    <table align=center>
    <tr><td align=center><table>
    <tr><td align=center colspan=2><b>Кодинг md5</b></td></tr>
    <tr>
    <form action=md5.php method=post>
    <input type=hidden name=action value=coding>
    <td>Слово:</td><td><input name=word value=\""
    .$word."\" style=\"width:255;\"></td></tr>";
    if(
    $hash_md5){Echo "<tr><td>Хеш md5:</td><td><tt>".$hash_md5."</tt></td></tr>";}
    Echo 
    "
    <tr><td align=right colspan=2><input type=submit value=Закодировать></td></form></tr>
    </table></td></tr>


    <tr><td height=25></td></tr>
    <tr><td align=center><table>
    <tr><td align=center colspan=2><b>Декодинг md5</b></td></tr>"
    ;

    if(
    $fname){
    Echo 
    "
    <script>
    window.x.close();
    </script>
    <tr><td align=center colspan=2>Результат и процесс смотреть <a href='./order/"
    .$fname.".txt' target=_blank>-->ТУТ<--</a>.</td></tr>
    "
    ;
    }

    Echo 
    "
    <tr>
    <form action=md5.php method=post>
    <input type=hidden name=action value=decoding>
    <input type=hidden name=gen_wlist value=0>
    <td>Хеш md5:</td><td><input name=hash value=\""
    .$hash."\" maxlength=32 style=\"width:240;\"></td></tr>
    <tr><td>Символы:</td><td><input name=chars value=\""
    .$chars."\" style=\"width:240;\"></td></tr>

    <tr><td valign=top>Длиина слова:</td><td>
    1<input type=radio name=length value=1 
    $length1>&nbsp;&nbsp;
    2<input type=radio name=length value=2 
    $length2>&nbsp;&nbsp;
    3<input type=radio name=length value=3 
    $length3>&nbsp;&nbsp;
    4<input type=radio name=length value=4 
    $length4>&nbsp;&nbsp;
    5<input type=radio name=length value=5 
    $length5>&nbsp;&nbsp;
    6<input type=radio name=length value=6 
    $length6><br>
    7<input type=radio name=length value=7 
    $length7>&nbsp;&nbsp;
    8<input type=radio name=length value=8 
    $length8>&nbsp;&nbsp;
    9<input type=radio name=length value=9 
    $length9>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    неизвестно<input type=radio name=length value=0 
    $length0>
    </td></tr>
    <tr><td align=right colspan=2><input type=submit value=Декодировать></td></form></tr>
    </table></td></tr>



    <tr><td height=25></td></tr>
    <tr><td align=center><table>
    <tr><td align=center colspan=2><b>Генерация ворд листа, брута</b></td></tr>"
    ;

    if(
    $fname_wlist){
    Echo 
    "
    <script>
    window.x.close();
    </script>
    <tr><td align=center colspan=2>Результат ворд листа смотрите <a href='./order/"
    .$fname_wlist.".txt' target=_blank>здесь</a>.</td></tr>
    "
    ;
    }

    Echo 
    "
    <tr>
    <form action=md5.php method=post>
    <input type=hidden name=action value=decoding>
    <input type=hidden name=gen_wlist value=1>
    <tr><td>Символы:</td><td><input name=chars_wlist value=\""
    .$chars_wlist."\" style=\"width:240;\"></td></tr>

    <tr><td valign=top>Длиина слова:</td><td>
    1<input type=radio name=length_wlist value=1 
    $length_wlist1>&nbsp;&nbsp;
    2<input type=radio name=length_wlist value=2 
    $length_wlist2>&nbsp;&nbsp;
    3<input type=radio name=length_wlist value=3 
    $length_wlist3>&nbsp;&nbsp;
    4<input type=radio name=length_wlist value=4 
    $length_wlist4>&nbsp;&nbsp;
    5<input type=radio name=length_wlist value=5 
    $length_wlist5>&nbsp;&nbsp;
    6<input type=radio name=length_wlist value=6 
    $length_wlist6><br>
    7<input type=radio name=length_wlist value=7 
    $length_wlist7>&nbsp;&nbsp;
    8<input type=radio name=length_wlist value=8 
    $length_wlist8>&nbsp;&nbsp;
    9<input type=radio name=length_wlist value=9 
    $length_wlist9>
    </td></tr>
    <tr><td align=right colspan=2><input type=submit value=Генерация></td></form></tr>
    </table></td></tr>


    </table></td></tr>
    </td></tr>
    </table>
    "
    ;


    function 
    untag($string){
    $string str_replace("\\\"","&quot;",$string);
    $string str_replace("\\\\","\\",$string);
    $string str_replace("<","&lt;",$string);
    $string str_replace(">","&gt;",$string);
    return 
    $string;
    }


    function 
    preparing(){
    global 
    $hash$chars$length$fname$gen_wlist$chars_wlist$length_wlist$fname_wlist;
    $fname_check=0;
    $temp="";
    while(
    $fname_check == "0"){
    $fname="";
    for(
    $i=0;$i<8;$i++){
    $temp=floor(abs(rand(0,3)));
    if(
    $temp == "1"){$fname.=chr(floor(abs(rand(0,25)))+65);}
    elseif(
    $temp == "2"){$fname.=chr(floor(abs(rand(0,25)))+97);}
    else{
    $fname.=chr(floor(abs(rand(0,9)))+48);}
    }

    if(!
    file_exists("./order/".$fname.".txt")){$fname_check="1";}
    }

    $file=fopen("./order/".$fname.".txt","w");
    fwrite($file,"Файл создан: ".date("Y-m-d H:i:s")."\n");
    fclose($file);

    if(
    $gen_wlist == "1"){$chars_replace=$chars_wlist;}
    else{
    $chars_replace=$chars;}

    $chars_replace str_replace("&","%26",$chars_replace);
    $chars_replace str_replace(" ","%20",$chars_replace);

    if(
    $gen_wlist == "1"){
    Echo 
    "
    <script>
    var x;
    x=window.open('md5.php?action=decode&gen_wlist=1&chars_wlist=
    $chars_replace&length_wlist=$length_wlist&fname_wlist=$fname','','width=1, height=1, toolbars=0');
    </script>
    "
    ;
    $fname_wlist=$fname;
    $fname="";
    }
    else{
    Echo 
    "
    <script>
    var x;
    x=window.open('md5.php?action=decode&gen_list=0&hash=
    $hash&chars=$chars_replace&length=$length&fname=$fname','','width=1, height=1, toolbars=0');
    </script>
    "
    ;
    }

    }


    function 
    decode(){
    global 
    $hash$chars$length$fname$gen_wlist$chars_wlist$length_wlist$fname_wlist$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){
    $decode_chars=$chars_wlist;
    $fname=$fname_wlist;
    $length_min=$length_wlist;$length_max=$length_wlist;}
    else{
    $decode_chars=$chars;
    if(
    $length == "0"){$length_min="1";$length_max="9";}
    else{
    $length_min=$length;$length_max=$length;}}

    $decode_chars_length=strlen($decode_chars);

    for(
    $i=$length_min;$i<=$length_max;$i++){
    $count="0";
    $file=fopen("./order/".$fname.".txt","a");
    if(
    $gen_wlist == "1"){
    fwrite($file,"Начало генерации по длине ".$i.": ".date("Y-m-d H:i:s")."\n");}
    else{
    fwrite($file,"Начало декодинга по длине ".$i.": ".date("Y-m-d H:i:s")."\n");}
    fclose($file);

    $r="decode$i";
    $decode=$r($hash);

    if(
    $decode == ""){$process="отрицательный.";}
    else{
    $process="положительный.\nИскомое слово: ".$decode;}

    $file=fopen("./order/".$fname.".txt","a");
    if(
    $gen_wlist == "1"){
    fwrite($file,"Конец генерации по длине ".$i.": ".date("Y-m-d H:i:s").", всего ".$count." комбинаций\n");}
    else{
    fwrite($file,"Конец декодинга по длине ".$i.": ".date("Y-m-d H:i:s").", проверенно ".$count." комбинаций, результат ".$process."\n");}
    fclose($file);

    if(
    $decode != ""){break;}
    }
    }


    function 
    decode1($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $j=0;$j<$decode_chars_length;$j++){
    $count++;
    $string=$decode_chars[$j];

    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode2($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode3($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode4($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode5($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode6($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    for(
    $o=0;$o<$decode_chars_length;$o++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode7($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    for(
    $o=0;$o<$decode_chars_length;$o++){
    for(
    $p=0;$p<$decode_chars_length;$p++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o]."".$decode_chars[$p];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode8($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    for(
    $o=0;$o<$decode_chars_length;$o++){
    for(
    $p=0;$p<$decode_chars_length;$p++){
    for(
    $q=0;$q<$decode_chars_length;$q++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o]."".$decode_chars[$p]."".$decode_chars[$q];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode9($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    for(
    $o=0;$o<$decode_chars_length;$o++){
    for(
    $p=0;$p<$decode_chars_length;$p++){
    for(
    $q=0;$q<$decode_chars_length;$q++){
    for(
    $r=0;$r<$decode_chars_length;$r++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o]."".$decode_chars[$p]."".$decode_chars[$q]."".$decode_chars[$r];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }
    ?>
     
    1 person likes this.
  9. *.exe

    *.exe Elder - Старейшина

    Joined:
    8 Jan 2007
    Messages:
    66
    Likes Received:
    11
    Reputations:
    -4
    За скрипт пасибо штука полезная =) но я в php ничего не понимаю =(
    а его можно через обыкновенный Denver поюзать?
    чето пробал них не получается Denver пишет:
    Parse error: parse error, unexpected T_STRING in x:\home\test2.ru\www\md5.php on line 228
    Чаво делать? =(
     
    #9 *.exe, 23 Mar 2007
    Last edited: 23 Mar 2007
    1 person likes this.
  10. banned

    banned Banned

    Joined:
    20 Nov 2006
    Messages:
    3,324
    Likes Received:
    1,194
    Reputations:
    252
    Мы еще и переделать не можем =\
    Держи
    PHP:
    <?php
    set_time_limit
    (0);
    error_reporting(0);

    $fname="";
    $hash="";
    $word="";
    $hash_md5="";

    $gen_wlist="";
    $fname_wlist="";

    for(
    $i=0;$i<10;$i++){
    $temp="length".$i;
    $
    $temp="";}

    for(
    $i=1;$i<10;$i++){
    $temp="length_wlist".$i;
    $
    $temp="";}


    $word=@$_POST["word"];

    $hash=@$_POST["hash"];
    $chars=@$_POST["chars"];
    $length=@$_POST["length"];
    $fname=@$_GET["fname"];

    $gen_wlist=@$_POST["gen_wlist"];
    $length_wlist=@$_POST["length_wlist"];
    $chars_wlist=@$_POST["chars_wlist"];
    $fname_wlist=@$_GET["fname_wlist"];

    if(!
    $hash){$hash=@$_GET["hash"];}
    if(!
    $chars){$chars=@$_GET["chars"];}
    if(!
    $length){$length=@$_GET["length"];}

    if(!
    $gen_wlist){$gen_wlist=@$_GET["gen_wlist"];}
    if(!
    $chars_wlist){$chars_wlist=@$_GET["chars_wlist"];}
    if(!
    $length_wlist){$length_wlist=@$_GET["length_wlist"];}

    if(!
    $chars){$chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx  yz0123456789";}
    if(!
    $chars_wlist){$chars_wlist="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx  yz0123456789";}


    $length=floor(abs($length));
    if(
    $length 9){$length="0";}
    $temp="length".$length;
    $
    $temp="checked";


    $length_wlist=floor(abs($length_wlist));
    if((
    $length_wlist 9) or ($length_wlist == "0")){$length_wlist="1";}
    $temp="length_wlist".$length_wlist;
    $
    $temp="checked";

    $gen_wlist=floor(abs($gen_wlist));

    $action=@$_POST["action"];
    if(!
    $action){$action=@$_GET["action"];}

    if((
    $action == "coding") and ($word)){$hash_md5=md5($word);}
    elseif((
    $action == "decoding") and ((strlen($hash) == "32") or ($gen_wlist == "1"))){preparing();}
    elseif((
    $action == "decode") and (((strlen($hash) == "32") and (file_exists("./order/".$fname.".txt"))) or (($gen_wlist == "1") and (file_exists("./order/".$fname_wlist.".txt"))))){decode();exit;}
    else{}


    $word=untag($word);
    $chars=untag($chars);

    Echo 
    "
    <title>Кодинг md5, Декодинг md5, Генерация ворд листа.</title>
    <table align=center>
    <tr><td align=center><table>
    <tr><td align=center colspan=2><b>Кодинг md5</b></td></tr>
    <tr>
    <form action=md5.php method=post>
    <input type=hidden name=action value=coding>
    <td>Слово:</td><td><input name=word value=\""
    .$word."\" style=\"width:255;\"></td></tr>";
    if(
    $hash_md5){Echo "<tr><td>Хеш md5:</td><td><tt>".$hash_md5."</tt></td></tr>";}
    Echo 
    "
    <tr><td align=right colspan=2><input type=submit value=Закодировать></td></form></tr>
    </table></td></tr>


    <tr><td height=25></td></tr>
    <tr><td align=center><table>
    <tr><td align=center colspan=2><b>Декодинг md5</b></td></tr>"
    ;

    if(
    $fname){
    Echo 
    "
    <script>
    window.x.close();
    </script>
    <tr><td align=center colspan=2>Результат и процесс смотреть <a href='./order/"
    .$fname.".txt' target=_blank>-->ТУТ<--</a>.</td></tr>
    "
    ;
    }

    Echo 
    "
    <tr>
    <form action=md5.php method=post>
    <input type=hidden name=action value=decoding>
    <input type=hidden name=gen_wlist value=0>
    <td>Хеш md5:</td><td><input name=hash value=\""
    .$hash."\" maxlength=32 style=\"width:240;\"></td></tr>
    <tr><td>Символы:</td><td><input name=chars value=\""
    .$chars."\" style=\"width:240;\"></td></tr>

    <tr><td valign=top>Длиина слова:</td><td>
    1<input type=radio name=length value=1 
    $length1>&nbsp;&nbsp;
    2<input type=radio name=length value=2 
    $length2>&nbsp;&nbsp;
    3<input type=radio name=length value=3 
    $length3>&nbsp;&nbsp;
    4<input type=radio name=length value=4 
    $length4>&nbsp;&nbsp;
    5<input type=radio name=length value=5 
    $length5>&nbsp;&nbsp;
    6<input type=radio name=length value=6 
    $length6><br>
    7<input type=radio name=length value=7 
    $length7>&nbsp;&nbsp;
    8<input type=radio name=length value=8 
    $length8>&nbsp;&nbsp;
    9<input type=radio name=length value=9 
    $length9>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    неизвестно<input type=radio name=length value=0 
    $length0>
    </td></tr>
    <tr><td align=right colspan=2><input type=submit value=Декодировать></td></form></tr>
    </table></td></tr>



    <tr><td height=25></td></tr>
    <tr><td align=center><table>
    <tr><td align=center colspan=2><b>Генерация ворд листа, брута</b></td></tr>"
    ;

    if(
    $fname_wlist){
    Echo 
    "
    <script>
    window.x.close();
    </script>
    <tr><td align=center colspan=2>Результат ворд листа смотрите <a href='./order/"
    .$fname_wlist.".txt' target=_blank>здесь</a>.</td></tr>
    "
    ;
    }

    Echo 
    "
    <tr>
    <form action=md5.php method=post>
    <input type=hidden name=action value=decoding>
    <input type=hidden name=gen_wlist value=1>
    <tr><td>Символы:</td><td><input name=chars_wlist value=\""
    .$chars_wlist."\" style=\"width:240;\"></td></tr>

    <tr><td valign=top>Длиина слова:</td><td>
    1<input type=radio name=length_wlist value=1 
    $length_wlist1>&nbsp;&nbsp;
    2<input type=radio name=length_wlist value=2 
    $length_wlist2>&nbsp;&nbsp;
    3<input type=radio name=length_wlist value=3 
    $length_wlist3>&nbsp;&nbsp;
    4<input type=radio name=length_wlist value=4 
    $length_wlist4>&nbsp;&nbsp;
    5<input type=radio name=length_wlist value=5 
    $length_wlist5>&nbsp;&nbsp;
    6<input type=radio name=length_wlist value=6 
    $length_wlist6><br>
    7<input type=radio name=length_wlist value=7 
    $length_wlist7>&nbsp;&nbsp;
    8<input type=radio name=length_wlist value=8 
    $length_wlist8>&nbsp;&nbsp;
    9<input type=radio name=length_wlist value=9 
    $length_wlist9>
    </td></tr>
    <tr><td align=right colspan=2><input type=submit value=Генерация></td></form></tr>
    </table></td></tr>


    </table></td></tr>
    </td></tr>
    </table>
    "
    ;


    function 
    untag($string){
    $string str_replace("\\\"","&quot;",$string);
    $string str_replace("\\\\","\\",$string);
    $string str_replace("<","&lt;",$string);
    $string str_replace(">","&gt;",$string);
    return 
    $string;
    }


    function 
    preparing(){
    global 
    $hash$chars$length$fname$gen_wlist$chars_wlist$length_wlist$fname_wlist;
    $fname_check=0;
    $temp="";
    while(
    $fname_check == "0"){
    $fname="";
    for(
    $i=0;$i<8;$i++){
    $temp=floor(abs(rand(0,3)));
    if(
    $temp == "1"){$fname.=chr(floor(abs(rand(0,25)))+65);}
    elseif(
    $temp == "2"){$fname.=chr(floor(abs(rand(0,25)))+97);}
    else{
    $fname.=chr(floor(abs(rand(0,9)))+48);}
    }

    if(!
    file_exists("./order/".$fname.".txt")){$fname_check="1";}
    }

    $file=fopen("./order/".$fname.".txt","w");
    fwrite($file,"Файл создан: ".date("Y-m-d H:i:s")."\n");
    fclose($file);

    if(
    $gen_wlist == "1"){$chars_replace=$chars_wlist;}
    else{
    $chars_replace=$chars;}

    $chars_replace str_replace("&","%26",$chars_replace);
    $chars_replace str_replace(" ","%20",$chars_replace);

    if(
    $gen_wlist == "1"){
    Echo 
    "
    <script>
    var x;
    x=window.open('md5.php?action=decode&gen_wlist=1&chars_wlist=
    $chars_replace&length_wlist=$length_wlist&fname_wlist=$fname','','width=1, height=1, toolbars=0');
    </script>
    "
    ;
    $fname_wlist=$fname;
    $fname="";
    }
    else{
    Echo 
    "
    <script>
    var x;
    x=window.open('md5.php?action=decode&gen_list=0&hash=
    $hash&chars=$chars_replace&length=$length&fname=$fname','','width=1, height=1, toolbars=0');
    </script>
    "
    ;
    }

    }


    function 
    decode(){
    global 
    $hash$chars$length$fname$gen_wlist$chars_wlist$length_wlist$fname_wlist$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){
    $decode_chars=$chars_wlist;
    $fname=$fname_wlist;
    $length_min $length_wlist;
    $length_max=$length_wlis ;
    } else {
    $decode_chars=$chars;
    if(
    $length == "0"){$length_min="1";$length_max="9";}
    else{
    $length_min=$length;$length_max=$length;}}

    $decode_chars_length=strlen($decode_chars);

    for(
    $i=$length_min;$i<=$length_max;$i++){
    $count="0";
    $file=fopen("./order/".$fname.".txt","a");
    if(
    $gen_wlist == "1"){
    fwrite($file,"Начало генерации по длине ".$i.": ".date("Y-m-d H:i:s")."\n");}
    else{
    fwrite($file,"Начало декодинга по длине ".$i.": ".date("Y-m-d H:i:s")."\n");}
    fclose($file);

    $r="decode$i";
    $decode=$r($hash);

    if(
    $decode == ""){$process="отрицательный.";}
    else{
    $process="положительный.\nИскомое слово: ".$decode;}

    $file=fopen("./order/".$fname.".txt","a");
    if(
    $gen_wlist == "1"){
    fwrite($file,"Конец генерации по длине ".$i.": ".date("Y-m-d H:i:s").", всего ".$count." комбинаций\n");}
    else{
    fwrite($file,"Конец декодинга по длине ".$i.": ".date("Y-m-d H:i:s").", проверенно ".$count." комбинаций, результат ".$process."\n");}
    fclose($file);

    if(
    $decode != ""){break;}
    }
    }


    function 
    decode1($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $j=0;$j<$decode_chars_length;$j++){
    $count++;
    $string=$decode_chars[$j];

    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode2($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode3($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode4($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode5($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode6($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    for(
    $o=0;$o<$decode_chars_length;$o++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode7($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    for(
    $o=0;$o<$decode_chars_length;$o++){
    for(
    $p=0;$p<$decode_chars_length;$p++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o]."".$decode_chars[$p];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode8($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i<$decode_chars_length;$i++){
    for(
    $j=0;$j<$decode_chars_length;$j++){
    for(
    $k=0;$k<$decode_chars_length;$k++){
    for(
    $n=0;$n<$decode_chars_length;$n++){
    for(
    $m=0;$m<$decode_chars_length;$m++){
    for(
    $o=0;$o<$decode_chars_length;$o++){
    for(
    $p=0;$p<$decode_chars_length;$p++){
    for(
    $q=0;$q<$decode_chars_length;$q++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o]."".$decode_chars[$p]."".$decode_chars[$q];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }


    function 
    decode9($hash){
    global 
    $gen_wlist$fname$decode_chars$decode_chars_length$count;

    if(
    $gen_wlist == "1"){$file=fopen("./order/".$fname.".txt","a");}

    $decoded="";
    $string="";
    for(
    $i=0;$i $decode_chars_length;$i++){
    for(
    $j=0;$j $decode_chars_length;$j++){
    for(
    $k=0;$k $decode_chars_length;$k++){
    for(
    $n=0;$n $decode_chars_length;$n++){
    for(
    $m=0;$m $decode_chars_length;$m++){
    for(
    $o=0;$o $decode_chars_length;$o++){
    for(
    $p=0;$p $decode_chars_length;$p++){
    for(
    $q=0;$q $decode_chars_length;$q++){
    for(
    $r=0;$r $decode_chars_length;$r++){
    $count++;
    $string=$decode_chars[$i]."".$decode_chars[$j]."".$decode_chars[$k]."".$decode_chars[$n]."".$decode_chars[$m]."".$decode_chars[$o]."".$decode_chars[$p]."".$decode_chars[$q]."".$decode_chars[$r];
    if(
    $gen_wlist == "1"){
    fwrite($file,$string."\n");}
    else{
    if(
    md5($string) == $hash){$decoded=$string;break;}}}}}}}}}}}

    if(
    $gen_wlist == "1"){fclose($file);}

    return 
    $decoded;
    }
    ?>
     
  11. *.exe

    *.exe Elder - Старейшина

    Joined:
    8 Jan 2007
    Messages:
    66
    Likes Received:
    11
    Reputations:
    -4
    respect
     
    #11 *.exe, 23 Mar 2007
    Last edited by a moderator: 25 Mar 2007