Guest User

Untitled

a guest
Jun 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. if ($handle = opendir('.')) {
  4. echo "[+] --------------------------- [+]\n";
  5.  
  6. while(false !== ($file = readdir($handle))) {
  7. if($file == "." || $file == "..") { continue; }
  8. findBOT($file);
  9. }
  10.  
  11. closedir($handle);
  12.  
  13. }
  14.  
  15. function findBOT($rfi) {
  16.  
  17. $openedFILE = file_get_contents($rfi);
  18.  
  19. $pos = stripos($openedFILE, "class pbot");
  20.  
  21. if($pos !== false) { echo "We found a bot in $rfi\n"; }
  22. }
  23.  
  24. ?>
Add Comment
Please, Sign In to add comment