This is a little off the subject of Actionscript 3, but I think it’s an important little trick to know for anyone building content for the web. So here I am going to show a quick php snippet that will find hidden malicious code in your website, or more specifically, how to find hidden ‘strings’ of code in your site.
I’m not going to get into the obvious stuff about how to protect your site, site as good ftp passwords etc, that is for another article. This is just to help you find the offending garbage once it’s already there.
1. create a new file, and call it finder.php
2. edit it, and paste the following code:
$input = "grep -r " . "'" . "keyword" . "'" . " *";
echo "Below is a list of all files containing your keyword:";
$output = shell_exec($input);
3. change the word keyword to the malware domain name that google reported your site to be infected with.
4. save this file into the root folder of your website.
5. navigate to www.yoursite.com/finder.php
It will look through your entire site and return any instances of