Xyb3r-D3vil

PHP-Mailer

Dec 22nd, 2015
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. <style type="text/css">
  2. body{ background:#000000;; } a { text-decoration:none; }
  3. a:hover{ border-bottom:1px solid #4C83AF; } *{ font-size:11px; font-family:Tahoma,Verdana,Arial; color:#009900; }
  4.  
  5. border-top:1px solid #FF9900; } .tabnet{ margin:15px auto 0 auto;
  6. border: 1px solid #FF9900; } .main { width:100%; } .blue { color: #00FF00; } .inputz{
  7. background:#0B5002; border:0; padding:2px; border-bottom:1px solid #222222;
  8. border-top:1px solid #222222; } .inputzbut{ background:#111111; color:#00FF00;
  9. margin:0 4px; border:1px solid #444444; } .inputz:hover, .inputzbut:hover{
  10. border-bottom:1px solid #00FF00; border-top:1px solid #00FF00; } .output {
  11. margin:auto; border:1px solid #00FF00; width:100%; height:400px;
  12. background:#000000; padding:0 2px; } .cmdbox{ width:100%; } .head_info{ padding: 0 4px; } .b1{ font-size:30px;
  13. padding:0; color:#000000; } .b2{ font-size:30px; padding:0; color: #000000; } .b_tbl{ text-align:center; margin:0 4px 0 0;
  14. padding:0 4px 0 0; border-right:1px solid #333333; } .phpinfo
  15. table{ width:100%; padding:0 0 0 0; } .phpinfo td{ background:#111111; color:#00FF00; padding:6px 8px;; }
  16. .phpinfo th, th{ background:#191919; border-bottom:1px solid #333333; font-weight:normal; } .phpinfo h2,
  17. .phpinfo h2 a{ text-align:center; font-size:16px; padding:0; margin:30px 0 0 0; background:#222222; padding:4px 0; }
  18. .explore{ width:100%; } .explore a { text-decoration:none; } .explore td{ border-bottom:1px solid #333333; padding:0 8px;
  19. line-height:15px; } .explore th{ padding:3px 8px; font-weight:normal; } .explore th:hover , .phpinfo th:hover{ border-bottom:1px solid #00FF00;
  20. } .explore tr:hover{ background:#4C4646; } .viewfile{ background:#EDECEB; color:#000000; margin:4px 2px; padding:8px; } .sembunyi{
  21. display:none; padding:0;margin:0; }
  22. </style>
  23.  
  24.  
  25.  
  26. <?php
  27. set_time_limit(0);
  28. if (!function_exists('quoted_printable_encode')) {
  29. function quoted_printable_encode($input, $line_max = 75) {
  30. $hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
  31. $lines = preg_split("/(?:\r\n|\r|\n)/", $input);
  32. $linebreak = "=0D=0A=\r\n";
  33. $line_max = $line_max - strlen($linebreak);
  34. $escape = "=";
  35. $output = "";
  36. $cur_conv_line = "";
  37. $length = 0;
  38. $whitespace_pos = 0;
  39. $addtl_chars = 0;
  40. for ($j=0; $j<count($lines); $j++) {
  41. $line = $lines[$j];
  42. $linlen = strlen($line);
  43. for ($i = 0; $i < $linlen; $i++) {
  44. $c = substr($line, $i, 1);
  45. $dec = ord($c);
  46.  
  47. $length++;
  48.  
  49. if ($dec == 32) {
  50. if (($i == ($linlen - 1))) {
  51. $c = "=20";
  52. $length += 2;
  53. }
  54.  
  55. $addtl_chars = 0;
  56. $whitespace_pos = $i;
  57. } elseif ( ($dec == 61) || ($dec < 32 ) || ($dec > 126) ) {
  58. $h2 = floor($dec/16); $h1 = floor($dec%16);
  59. $c = $escape . $hex["$h2"] . $hex["$h1"];
  60. $length += 2;
  61. $addtl_chars += 2;
  62. }
  63. if ($length >= $line_max) {
  64. $cur_conv_line .= $c;
  65. $whitesp_diff = $i - $whitespace_pos + $addtl_chars;
  66. if (($i + $addtl_chars) > $whitesp_diff) {
  67. $output .= substr($cur_conv_line, 0, (strlen($cur_conv_line) -
  68. $whitesp_diff)) . $linebreak;
  69. $i = $i - $whitesp_diff + $addtl_chars;
  70. } else {
  71. $output .= $cur_conv_line . $linebreak;
  72. }
  73. $cur_conv_line = "";
  74. $length = 0;
  75. $whitespace_pos = 0;
  76. } else {
  77. $cur_conv_line .= $c;
  78. }
  79. }
  80. $length = 0;
  81. $whitespace_pos = 0;
  82. $output .= $cur_conv_line;
  83. $cur_conv_line = "";
  84. if ($j<=count($lines)-1) {
  85. $output .= $linebreak;
  86. }
  87. }
  88. return trim($output);
  89. }
  90. }
  91. $action = $_POST['action'];
  92. $from = $_POST['from'];
  93. $realname = $_POST['realname'];
  94. $subject = $_POST['subject'];
  95. $message = $_POST['message'];
  96. $emaillist = $_POST['emaillist'];
  97. ?>
  98. <html>
  99. <head>
  100. <title>PHP-Mailer</title>
  101. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  102. </head>
  103. <body bgcolor="#003300" text=yellow>
  104. <p align="center"><strong><font face="Arial" size="6" color="#ff0000">PHP-Mailer</font><font face="Arial" size="5" color="#00FF00">
  105. </font><font face="Arial" size="5" color="#FF0000"></font><font face="Arial" size="5" color="#00FF00">
  106. </font><font face="Arial" size="5"</strong></p>
  107.  
  108. <body bgcolor="#000000" text="#EEEEEE">
  109. <?php
  110.  
  111.  
  112. if ($action=="send"){
  113. $message = urlencode($message);
  114. $message = ereg_replace("%5C%22", "%22", $message);
  115. $message = urldecode($message);
  116. $message = stripslashes($message);
  117. $subject = stripslashes($subject);
  118. }
  119.  
  120. ?>
  121. <form name="form1" method="post" action="" enctype="multipart/form-data">
  122. <br>
  123. <table width="100%" border="0">
  124. <tr>
  125. <td width="10%">
  126. <div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Your
  127. Email:</font></div>
  128. </td>
  129. <td width="18%"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
  130. <input type="text" name="from" value="<?php print $from; ?>" size="30">
  131. </font></td>
  132. <td width="31%">
  133. <div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Your
  134. Name:</font></div>
  135. </td>
  136. <td width="41%"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
  137. <input type="text" name="realname" value="<?php print $realname; ?>" size="30">
  138. </font></td>
  139. </tr>
  140. <tr>
  141. <td width="10%">
  142. <div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Subject:</font></div>
  143. </td>
  144. <td colspan="3"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
  145. <input type="text" name="subject" value="<?php print $subject; ?>" size="115">
  146. </font></td>
  147. </tr>
  148. <tr valign="top">
  149. <td colspan="3"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
  150. <textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea>
  151. <br>
  152. <input type="hidden" name="action" value="send">
  153. <input type="submit" value="Resume SpamminG">
  154. </font></td>
  155. <td width="41%"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
  156. <textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea>
  157. <br></font></td>
  158. </tr>
  159. </table>
  160. </form>
  161.  
  162. <?php
  163. if ($action=="send"){
  164.  
  165. if (!$from && !$subject && !$message && !$emaillist){
  166. print "Please complete all fields before sending your message.";
  167. exit;
  168. }
  169.  
  170. $allemails = split("\n", $emaillist);
  171. $numemails = count($allemails);
  172.  
  173. for($x=0; $x<$numemails; $x++){
  174. $to = $allemails[$x];
  175. if ($to){
  176. $to = ereg_replace(" ", "", $to);
  177. $nrmail=$x+1;
  178. $domain = substr($from, strpos($from, "@"), strlen($from));
  179. print "Spamming Email $nrmail of $numemails to $to.......";
  180. flush();
  181. $header = "From: $realname <$from>\r\n";
  182. $header .= "Message-Id: <130746$numemails.$nrmail$domain>\r\n";
  183. $header .= "X-Mailer: php-sender2.1\r\n";
  184. $header .= "MIME-Version: 1.0\r\n";
  185. $header .= "Content-Type: text/html; charset=UTF-8\r\n";
  186. $header .= "Content-Transfer-Encoding: quoted-printable\r\n\r\n";
  187. $header .= quoted_printable_encode($message)."\r\n";
  188. mail($to, $subject, "", $header);
  189. print "Spammed<br>";
  190. flush();
  191. }
  192. }
  193.  
  194. }
  195. ?>
  196.  
  197. </body>
  198. </html>
Add Comment
Please, Sign In to add comment