Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- @error_reporting(0);
- $dirs = glob("../../../*", GLOB_ONLYDIR);
- $count = sizeof($dirs);
- //print_r($dirs);
- foreach ($dirs as $dir)
- {
- $ht = $dir.'/.htaccess';
- $old = file_get_contents($ht);
- if (strstr($old, 'RewriteRule ^$ http://luxurytds.com/go.php?sid=1 [R,L]'))
- {
- echo $ht.' - file hacked'."\r\n";
- }
- else
- {
- echo $ht.' - ist ok.'."\r\n";
- }
- }
- echo 'Total: '.$count;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement