Jump to content

What does this PHP code do?


Go to solution Solved by ignace,

Recommended Posts

The attached PHP files were found in our FTP directories. I'm a .NET developer and we're not sure what they actually do. I want to make sure they're not malicious or anything like that. 

 

I feel pretty stupid asking this, but can someone take a quick look and let me know what the code actually does? 

 

(On first glance it almost looks like a standard PHP mail class but I'm not naive enough to believe it's just that.)

 

Thank you.

kenguruYd9e.zip

Link to comment
https://forums.phpfreaks.com/topic/284333-what-does-this-php-code-do/
Share on other sites

  • Solution

You'd do best to remove these files asap. They are used to mail (spam) from your server and it allows them to send arbitrary cmd's to your server. In the order of # rm -rf /

Edited by ignace

Simply removing them is not sufficient. You need to change your FTP credentials and try to track down how they were placed on your server and fix it.

True. We had changed our credentials as well... but we have yet to find the source. Thanks for the suggestions.

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.