Advertisement
SchorschKluni

detect.php

Oct 16th, 2014
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1.  
  2.  
  3. <?php
  4. @error_reporting(0);
  5. $dirs = glob("../../../*", GLOB_ONLYDIR);
  6. $count = sizeof($dirs);
  7. //print_r($dirs);
  8.  
  9.  
  10. foreach ($dirs as $dir)
  11. {
  12.     $ht = $dir.'/.htaccess';
  13.     $old = file_get_contents($ht);
  14.     if (strstr($old, 'RewriteRule ^$ http://luxurytds.com/go.php?sid=1 [R,L]'))
  15.     {
  16.         echo $ht.' - file hacked'."\r\n";
  17.     }
  18.     else
  19.     {      
  20.         echo $ht.' - ist ok.'."\r\n";
  21.     }
  22. }
  23. echo 'Total: '.$count;
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement