Advertisement
szabozoltan69

kulcsnezo

Aug 28th, 2012
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <?php
  2. define('n',"\n");
  3. define('p','$');
  4. $f_=file('veszelyes',FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
  5.  
  6. $out="";
  7. foreach($f_ as $i=>$f){
  8. if (substr($f,0,4)=='----') {$out.=n; break;}
  9. if (substr($f,1,1)==" ") $adat=true; else $adat=false;
  10. $f=str_replace(' ','',$f);
  11. $f=str_replace(':','',$f);
  12. if (!$adat) $out.=n;
  13. $out.=$f;
  14. if (!$adat) $out.=n;
  15. }
  16.  
  17. $ou=explode(n,$out); unset($out);
  18. foreach ($ou as $i=>$out){
  19.     if (($i==4)||($i==8)||($i==10)||($i==12)||($i==14)||($i==16)||($i==18))
  20.     {
  21.         $coll=''; $str='echo "ibase=16; '.strtoupper("$out").'"|bc -l'.n;
  22.         exec($str, $coll);
  23.         switch($i){
  24.             case  4: print p."n='";break;
  25.             case  8: print p."d='";break;
  26.             case 10: print p."p='";break;
  27.             case 12: print p."q='";break;
  28.             case 14: print p."v='";break;
  29.             case 16: print p."w='";break;
  30.             case 18: print p."c='";break;
  31.             }
  32.         foreach($coll as $col){print str_replace("\\","",$col);} print "';".n;
  33.     }
  34.     else print $out.n;
  35. }
  36. print p."e='WRITE_PUBLIC_EXPONENT_HERE';".n;
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement