Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // lulzhunter.php - by th3j35t3r
- // Linux only really.
- // This is a PHP Command line script.
- // So you are gonna need PHP5 and PHP5-CLI
- // If ya don't got that you can get em using this (on Ubuntu):
- // 'sudo apt-get install php5 php5-cli'
- // Then from your shell just execute 'php lulzhunter.php'
- // it's quick n dirty (therefore slow) - but will get the job done
- $sIP1 = '124.217.224.0';
- $sIP2 = '124.217.255.255';
- echo "Scanning for Lulz....\n";
- // the scouty bit;
- $aIPList = array();
- if ((ip2long($sIP1) !== -1) && (ip2long($sIP2) !== -1)) // As of PHP5, -1 => False
- {
- for ($lIP = ip2long($sIP1) ; $lIP <= ip2long($sIP2) ; $lIP++)
- {
- $aIPList[] = long2ip($lIP);
- // the findy bit
- $TargetIP = long2ip($lIP);
- $url = $TargetIP;
- $socket = ( bool )false;
- $error = ( bool )false;
- $socket = @fsockopen( $url, 80, $errno, $errstr, 10 ) or $error = ( bool )true;
- if ( ( $socket ) && ( !$error ) )
- {
- $urlcheckresponse = @file_get_contents("http://".$TargetIP);
- $haystack = $urlcheckresponse;
- $needle = "Lulz";
- $pos = strpos($haystack,$needle);
- if($pos === false) {
- // string needle NOT found in haystack
- $match = "negatory";
- echo ".";
- }
- else {
- $match = "affirmative";
- echo "\n\n";
- echo "Lulz Server found right here: ".$TargetIP;
- echo "\n\n";
- echo "Make sure you let @th3j35t3r know on Twitter. TY. Peace and Stay Frosty";
- echo "\n\n";
- exit();
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement