Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/php
- <?php
- $fd = fopen("php://stdin", "r");
- $email = "";
- while (!feof($fd)) {
- $line = fread($fd, 1024);
- $email .= $line;
- }
- fclose($fd);
- echo $email;
- $file = @ fopen("/tmp/test.txt","a");
- $sender = $argv[1] || '';
- $size = $argv[2] || '';
- $recp = $argv[3] || '';
- fwrite($file, "Message received! ".$sender." ".$recp." ".$size);
- fclose($file);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement