Вход Регистрация
* Manager

PHP LockIt unlocker

  1. <?php
  2. /*
  3. * PHP LockIt! unlocker
  4. * by Daniel Rozsnyo [ daniel@rozsnyo.com ]
  5. *
  6. * "a proof that security throught obscurity doesn't work"
  7. *
  8. */
  9. $input = file_get_contents( $filename = $argv[1] );
  10. if (ereg( "[$]([^=]+)=[_][_]FILE[_][_][;]"
  11. . "[$]([^=]+)=[_][_]LINE[_][_][;]"
  12. . "[$]([^=]+)[=]([0-9]+)[;]"
  13. . "eval.*(base64_decode.['][^']*['].)", $input, $x)) {
  14. // first pass
  15. $ifilename = $x[1];
  16. $ilinenum = $x[2];
  17. $ioffset = $x[3];
  18. $offset = $x[4];
  19. $decoder = $x[5];
  20. // get the decoder
  21. $decoder = eval("return $decoder;");
  22. // decipher the decoder
  23. ereg("[$]([^=]+)[=].*[$]([^=]+)=.base64",$decoder,$x);
  24. $ihandle = $x[1];
  25. $iout = $x[2];
  26. $decoder = str_replace($iout ,'output' ,$decoder);
  27. $decoder = str_replace($ihandle ,'handle' ,$decoder);
  28. $decoder = str_replace($ilinenum ,'line' ,$decoder);
  29. $decoder = str_replace($ifilename,'filename',$decoder);
  30. // the decoder is our slave!
  31. $decoder = str_replace('eval($output);','return $output;',$decoder);
  32. $decoder = '$line=2;'.$decoder;
  33. // sandbox
  34. $next = eval($decoder);
  35. // remove expiration time
  36. $next = ereg_replace("^if[^;]+;",'',$next);
  37. // some more deciphering
  38. ereg('^[$]([^=]+)=',$next,$x);
  39. $next = str_replace($ihandle, 'handle', $next);
  40. $next = str_replace($ifilename,'filename',$next);
  41. $next = str_replace($x[1] , 'output', $next);
  42. $next = str_replace($ioffset, 'offset', $next);
  43. // the decoder is our slave, again!
  44. $next = str_replace('eval($output)','return $output',$next);
  45. // final pass
  46. $code = eval($next);
  47. // finish
  48. echo '<','?php',$code,'?','>',"\n";
  49. } else die("Failed. No base64_decode anymore.\n");
  50. ?>
» Описание: Скрипт предназначен для расшифровки и деобфускации php-скриптов, которые были обработаны программой PHP LockIt
» Время добавления: 10 Марта 2016 в 20:43
» Посмотров: 1930
» textarea
» Рейтинг: [+0 | -0]
Комментарии [0]
Онлайн: 1
Реклама