exploit clean // Written by streetracer23@gmail.com // Warning: run this script as a root user from shell, NOT from your web browser // Here we go... // Get all files under current directory tree $command = shell_exec("du -a $argv[1]"); $lines = explode("\n", $command); foreach($lines as $line){ // Read all HTML, HTM, PHP and TPL files if(strstr($line, ".html") || strstr($line, ".php") || strstr($line, ".htm") || strstr($line, ".tpl")){ $data = explode("\t", $line); print "Cleaning file: $data[1]\n"; // Get current contents of file $contents = file_get_contents($data[1]); // Clean exploit code $clean_contents = str_replace("var source =\"=jgsbnf!tsd>#iuuq;00usbggpl/do0pvu/qiq#!xjeui>2!ifjhiu>2!tuzmf>#wjtjcjmjuz;!ijeefo#?=0jgsbnf?\"; var result = \"\"; ", "", $contents); $clean_contents = str_replace(" \n ", "", $clean_contents); $file = fopen($data[1], w); // Write cleaned contents fwrite($file, $clean_contents); fclose($file); } } ?>