Report this

What is the reason for this report?

Unusual php file in my all websites

Posted on October 31, 2016

I have a file called q.php that has appeared in all my websites hosted in the same server. Does anyone know what the file does?

I noticed this when I got an email from incident@cert-in.org.in.

The email says:

Dear Sir/Madam,

CERT-In is tracking defacement of Indian websites on regular basis.

We have found that the website "example.com" hosted on IP xxx.xxx.xxx.xxx has been defaced on 30.09.2016 by the hacker group "Aris Dot ID".

The URL of the defaced website is:

example.com//q.php

Content of q.php file: http://pastebin.com/raw/TwEYz6KT

I deleted the file from all my websites. But I am not sure what extra security should I implement for this.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It seems that you’ve been hacked. But lucky you, it was not a “bad” hacker, he just added a file as a proof that he was there. You should check your firewall, change your ssh password, disable ftp if you don’t need it, look at any server side scripts if there is updates, and updates any softwares that you are using.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.