Guest User

Lulzier Hunter

a guest
Jun 24th, 2011
7,019
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2.  
  3. // lulzier hunter - by bottle_of_rum
  4. // usage: ./lulzierhunter.php <start IP> <end IP> <timeout> <needle>
  5. // example: ./lulzierhunter.php 124.217.224.0 124.217.255.255 1 Lulz
  6.  
  7. for ($c = 0; $c <= ip2long($argv[2]) - ip2long($argv[1]); $c++)
  8.     if (strpos(@file_get_contents('http://'.long2ip(ip2long($argv[1])+$c), false, stream_context_create(array('http' => array('timeout' => $argv[3])))), $argv[4]) !== false)
  9.         die('H4xed :D - '.long2ip(ip2long($argv[1])+$c));
  10.  
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment