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 == "..") { continue; }
- findBOT($file);
- }
- closedir($handle);
- }
- function findBOT($rfi) {
- $openedFILE = file_get_contents($rfi);
- $pos = stripos($openedFILE, "class pbot");
- if($pos !== false) { echo "We found a bot in $rfi\n"; }
- }
- ?>
Add Comment
Please, Sign In to add comment