Guest User

Untitled

a guest
Jun 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.90 KB | None | 0 0
  1. <?php
  2.         $input="-137 -192 -166 -199 -212 -168 -175 -151 -171 -188 -143 -171 -153 -156 -182 -183 -180 -190 -196 -231 -145 -145 -111 -231 -195 -152 -193 -190 -142 -176 -176 -149 -147 -105 -182 -224 -165 -163 -194 -243 -170 -139 -198 -201 -183 -196 -142 -220 -156 -189 -142 -238 -125 -170 -172 -169 -202 -156 -141 -282 -135 -163 -133 -148 -182 -156 -190 -194 -164 -184 -163 -210 -165 -114 -155 -206 -147 -195 -214 -215 -157 -143 -203 -201 -154 -106 -134 -151 -148 -137 -137 -181 -105 -209 -157 -194 -175 -181 -193 -196";
  3.         $value=array();
  4.         $counter=0;
  5.         for($i=0;$i<100;$i++){
  6.             $value[]=substr($input,$counter,4);
  7.             $counter+=5;        
  8.         }
  9.     echo(implode(' ' , $value));
  10.         for($k=0;$k<480;$k++){
  11.             check_char($value,$k,"",0);
  12.         }
  13.       //------------------------------------------------------------------------------------
  14.       function evalCrossTotal($strMD5)
  15.       {
  16.           $intTotal = 0;
  17.           $arrMD5Chars = str_split($strMD5, 1);
  18.           foreach ($arrMD5Chars as $value)
  19.           {
  20.               $intTotal += '0x0'.$value;
  21.           }
  22.           return $intTotal;
  23.       }//-----------------------------------------------------------------------------------
  24.  
  25.       function check_char($value, $md5Total,$output,$i){
  26.         $characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  27.         $encryptedValues=0;    
  28.         if($i!=0)$md5Total = evalCrossTotal(substr(md5(substr($output,0,$i)), 0, 16) .  substr(md5($md5Total), 0, 16));
  29. //echo("This is total ".$md5Total." ");        
  30. if($i>=99)
  31.         {
  32.             echo($output);
  33.         }else{
  34.             if($i==3||$i==7||$i==11||$i==15||$i==23||$i==27||$i==31||$i==35||$i==43||$i==47||$i==51||$i==55||$i==63||$i==67||$i==71||$i==75||$i==83||$i==87||$i==91||$i==95)check_char($value,$md5Total,$output.'-',$i+1);
  35.             if($i==8||$i==28||$i==48||$i==68||$i==88)check_char($value,$md5Total,$output.'O',$i+1);
  36.             if($i==9||$i==29||$i==49||$i==69||$i==89)check_char($value,$md5Total,$output.'E',$i+1);
  37.             if($i==10||$i==30||$i==50||$i==70||$i==90)check_char($value,$md5Total,$output.'M',$i+1);
  38.             if($i==16||$i==36||$i==56||$i==76||$i==96)check_char($value,$md5Total,$output.'1',$i+1);
  39.             if($i==17||$i==37||$i==57||$i==77||$i==97)check_char($value,$md5Total,$output.'.',$i+1);
  40.             if($i==18||$i==38||$i==58||$i==78||$i==98)check_char($value,$md5Total,$output.'1',$i+1);
  41.             if($i==19||$i==39||$i==59||$i==79||$i==99)check_char($value,$md5Total,$output.'0x0A',$i+1);
  42.             for($j=0;$j<36;$j++){
  43.                 for($k=0;$k<16;$k++){
  44.                     $encryptedValues = substr($characters,$j,1) + $k - $md5Total;
  45.                     if($encryptedValues==$value[$i]){
  46.                         check_char($value,$md5Total,$output. substr($characters,$j,1) ,$i+1);                      
  47.                     }
  48.                 }
  49.             }          
  50.         }
  51.         return true;    
  52.     }
  53. ?>
Add Comment
Please, Sign In to add comment