Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Iframe Malware in my website.

General questions about VestaCP
Post Reply
  • Print view
Advanced search
16 posts
  • 1
  • 2
  • Next
30874
Posts: 33
Joined: Tue Mar 03, 2015 1:22 am

Iframe Malware in my website.
  • Quote

Post by 30874 » Tue Mar 03, 2015 1:25 am

Dear All,

Please help me on this problem. There are malwares in my website and I can't access Vesta now. How to delete it?

Best regards,
30874
Top

TheNewOne
Posts: 13
Joined: Sat Feb 28, 2015 2:16 am

Re: Iframe Malware in my website.
  • Quote

Post by TheNewOne » Tue Mar 03, 2015 10:17 am

A quick "solution" would be, to access your server via ssh, find the iframe pages and delete the entries.

Go to the directory like
cd /home/user/

then search for the iframe in alle files below that directory
grep -rl "iframe" *

You'll get a list of files which includes the string "iframe".

Good luck.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Iframe Malware in my website.
  • Quote

Post by mehargags » Wed Mar 04, 2015 8:27 pm

ssh and clamscan...

But I strongly suggest you to wipe off your VPS and start afresh, install vesta, do some security hardening and then restore your side from a healthy backup.

I presume you have backups ? if not -- I think you are in deep trouble.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Iframe Malware in my website.
  • Quote

Post by skurudo » Wed Mar 04, 2015 8:43 pm

clamscan - not always good choice for shell. Sad, but true

Need to search weird files with "eval(..."
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Iframe Malware in my website.
  • Quote

Post by mehargags » Thu Mar 05, 2015 11:18 am

Yes as I said -- best is to clean wipe your VPS, harden security, then restore a clean backup
Top

30874
Posts: 33
Joined: Tue Mar 03, 2015 1:22 am

Re: Iframe Malware in my website.
  • Quote

Post by 30874 » Thu Mar 05, 2015 11:34 am

I am a new for VPS. Could you please suggest the code for run in putty for checking system?

Thank you for your suggestion.
Best regards,
Narong.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Iframe Malware in my website.
  • Quote

Post by skurudo » Thu Mar 05, 2015 11:38 am

30874 wrote:I am a new for VPS. Could you please suggest the code for run in putty forme?.
Something like this:

Code: Select all

find /home -type f -name "*.php" | xargs grep "eval("
be carefull with files, if you wish to delete thise
Top

30874
Posts: 33
Joined: Tue Mar 03, 2015 1:22 am

Re: Iframe Malware in my website.
  • Quote

Post by 30874 » Thu Mar 05, 2015 11:44 am

how to show you the data after run the code. There are many lines of them.
Top

30874
Posts: 33
Joined: Tue Mar 03, 2015 1:22 am

Re: Iframe Malware in my website.
  • Quote

Post by 30874 » Thu Mar 05, 2015 11:53 am

skurudo wrote:
30874 wrote:I am a new for VPS. Could you please suggest the code for run in putty forme?.
Something like this:

Code: Select all

find /home -type f -name "*.php" | xargs grep "eval("
be carefull with files, if you wish to delete thise
what will happen if I get many lines of this code and I go to delete it in filezilla. It will solve the problem?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Iframe Malware in my website.
  • Quote

Post by skurudo » Thu Mar 05, 2015 2:21 pm

You need to delete or move those files from your site, but how it work after this - it's need to test
Top


Post Reply
  • Print view

16 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password