Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($handle = opendir('.'))
- {
- echo "[+] --------------------------- [+]\n";
- while(false !== ($file = readdir($handle)))
- {
- if($file != "." && $file != "..") { findBOT($file); }
- }
- closedir($handle);
- }
- function findBOT($rfi)
- {
- $bot_str = "class pbot";
- if($handle = fopen($rfi, "r"))
- {
- $buffer = fgets($handle, 4096);
- do
- {
- if(false !== stripos($buffer, $bot_str))
- {
- echo "Bot => $rfi\n";
- return;
- }
- }
- while($buffer = fgets($handle, 4096));
- fclose($handle);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment