Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $handle = @fopen("importlog", "r");
- if ($handle) {
- $fp = fsockopen("tcp://localhost", 514, $errno, $errstr);
- while (($buffer = fgets($handle, 4096)) !== false) {
- if (strpos($buffer, 'php-cgi')!==false) {
- if ($fp)
- {
- fwrite($fp, '<14>'.$buffer);
- }
- }
- }
- fclose($fp);
- @fclose($handle);
- }
- ?>
Add Comment
Please, Sign In to add comment