Recovering from an iframe injection hack

If you've been a victim of an iframe injection attack, use the following steps to reverse the damage.

'''Note: Backup your data prior to beginning this procedure! Also be sure to secure whatever was broken and allowed this to happen (old scripts, hacked login details etc). '''

Use the following command to search for affected files. find. -type f | xargs grep -l '//g' {} \;

Adjust the contents of the iframe regexp to suit. In this example it is:

Handling filenames with blanks
The commands above will not work if you have filenames with blanks in their names. To edit these, use the following commands:'' find. -type f -print0 | xargs -0 grep -l '//g' "{}" \; --Eob 19:13, 31 March 2010 (UTC)