ulvis.paste.net

Paste Search Dynamic
Recent pastes
request
  1. <?php
  2. ini_set('error_displays', 0);
  3. $ip = "unix:///dev/random";
  4.  
  5. $f = fsockopen($ip, 80, $errno, $errstr, 5);
  6. if($f) {
  7.         $request = "GET / HTTP/1.1\r\nHost: " . $ip . "\r\nConnection: close\r\n\r\n";
  8.         fwrite($f, $request);
  9.         echo '<div class="alert alert-success">' ;
  10.         while(!feof($f)) {
  11.                 echo fgets($f, 1024);
  12.         }
  13.  
  14.         echo '</div>';
  15. } else {
  16.         echo '<div class="alert alert-danger">' .$errstr . '</div>';
  17. }
  18. ?>
Parsed in 0.016 seconds