MrPaan

asdasd

Nov 16th, 2013
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2.  
  3. for ( $i = 1; $i < 254; $i++ ) {
  4.   $fp = @fsockopen('192.168.1.'.$i, 80, $errno, $errstr, 0.1);
  5.   if( !$fp ) {
  6.     echo '192.168.1.'.$i." = offline\n";
  7.   } else {
  8.     echo '192.168.1.'.$i." = online\n";
  9.   }
  10. }
  11.  
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment