Ardhosting | faster, reliable webhosting


Clean the file index.html and index.php from the iframe injection

August 14th, 2009 dedi Posted in Server, cPanel + WHM, linux | No Comments »

Many causes of the occurrence of an iframe injection. The most common is the use of FTP passwords that are easy to guess! Another one is the existence of slit / bug in the software that you install in your account. For example, if you have an older version of WordPress or Joomla, someone will take advantage of cleft / bugs that have to inject an iframe on the files there. So be sure to make the FTP password is not easy to guess and frequently update the software that you install.
If your account is terlanjur terinjeksi iframe then use the following command to cleared from your files. We only give an example on the file index.html or index.php. You can memodifikasinya as needed. Make sure you have membackupnya first before running the command page.

cd /home/username/public_html && find ./ \( -iname ‘index.html’ -o -iname ‘index.php’ \)|while read file; do sed -i ’s/<iframe.*<\/iframe>//g;’ ${file}; done &

Hope this article was helpfull :)

Tags: , , , , ,

Bookmark and Share

HTML:Iframe infection?

August 14th, 2009 dedi Posted in Server, cPanel + WHM, linux | No Comments »

If your blog has been infected by the HTML:Iframe-inf  infection according to avast here are two scripts that can help you.

First What is the HTML:Iframe infection? – Its just a line of text that is inserted at the end of every index.php and/or index.htm in your website. Nothing to freak out about but you want to fix it. And Its probably due to wordpress not being secure.

Anyways, here is what you do : This is something you run on the commmand line.

You will need to find infected files first. Read the rest of this entry »

Tags: , , ,

Bookmark and Share

/tmp full cause phpThumb

July 10th, 2009 dedi Posted in Server, cPanel + WHM, linux | 4 Comments »

Hello back with me again,

right now i just want to share what i’ve done for this few days,
Confused caused /tmp full but when i try check from ssh

For instance:
root@server [~]# du -ahx –max-depth=0 /tmp
46M     /tmp
root@server [~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda7             2.0G   81M  1.8G   5% /tmp

but then i check from another Inodes

root@server [~]# df -i
/dev/sda7 524288 522750 1538 99% /tmp Read the rest of this entry »

Tags: , , , , , , , , , , , ,

Bookmark and Share