BrU32

PHP Email Bomber SRC

Mar 10th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. $path = $_POST["uploadfile"];
  3. $fp = fopen($path, 'r');
  4. do
  5. {
  6. $data = fread($fp, 8192);
  7. if (strlen($data) == 0) break;
  8. $content .= $data;
  9. } while (true);
  10. $content_encode = chunk_split(base64_encode($content));
  11. $message .= $content_encode . "\n";
  12. $message .= "--" . $boundary . "\n";
  13. $headers = "From: \"Me\"<me@example.com>\n";
  14. $headers .= "MIME-Version: 1.0\n";
  15. $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";
  16. mail('dj@aol.com', 'Email with attachment Test!!', $message, $headers);
  17. ?>
Add Comment
Please, Sign In to add comment