Guest User

Untitled

a guest
Jan 24th, 2018
54
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.     $handle = @fopen("importlog", "r");
  3.     if ($handle) {
  4.         $fp = fsockopen("tcp://localhost", 514, $errno, $errstr);
  5.         while (($buffer = fgets($handle, 4096)) !== false) {
  6.                 if (strpos($buffer, 'php-cgi')!==false) {
  7.                         if ($fp)
  8.                         {
  9.                                 fwrite($fp, '<14>'.$buffer);
  10.                         }
  11.                 }
  12.     }
  13.     fclose($fp);
  14.     @fclose($handle);
  15.     }
  16.  
  17. ?>
Add Comment
Please, Sign In to add comment