TrojanSpot

Mass Mailer | www.pemula.info

Sep 24th, 2012
4,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.24 KB | None | 0 0
  1. <?php
  2.  
  3. @session_start();
  4. @set_time_limit(0);
  5.  
  6. //PASSWORD CONFIGURATION
  7.  
  8. @$pass = $_POST['pass'];
  9. $chk_login = true;
  10. $password = "www.pemula.info";
  11.  
  12. //END CONFIGURATION
  13.  
  14. if($pass == $password)
  15. {
  16.  $_SESSION['nst'] = "$pass";
  17. }
  18.  
  19. if($chk_login == true)
  20. {
  21.  if(!isset($_SESSION['nst']) or $_SESSION['nst'] != $password)
  22.  {
  23.  die("
  24. <title>.:l trojanspot@yahoo.co.id.com - mass mailer |:.</title>
  25. <center>
  26. <table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>
  27. <tr><td valign=middle align=center>
  28. <table width=100 bgcolor=black border=6 bordercolor=#444444>
  29.   <tr><td>
  30. <font size=1 face=verdana><center>
  31. <b></font></a><br></b>
  32. </center>
  33. <form method=post>
  34. <font size=1 face=verdana
  35. color=red><strong><center>Mailer</center></strong><br>
  36. <input type=password name=pass size=30>
  37. </form>
  38. <b>Host:</b> ".$_SERVER["HTTP_HOST"]."<br>
  39. <b>IP:</b> ".gethostbyname($_SERVER["HTTP_HOST"])."<br>
  40. <b>Your ip:</b> ".$_SERVER["REMOTE_ADDR"]."
  41. </td></tr></table>
  42. </td></tr></table>
  43. ");
  44.  }
  45. }
  46. if(isset($_POST['action'] ) ){
  47. $action=$_POST['action'];
  48. $message=$_POST['message'];
  49. $emaillist=$_POST['emaillist'];
  50. $from=$_POST['from'];
  51. $replyto=$_POST['replyto'];
  52. $subject=$_POST['subject'];
  53. $realname=$_POST['realname'];
  54. $file_name=$_POST['file'];
  55. $contenttype=$_POST['contenttype'];
  56.  
  57.        $message = urlencode($message);
  58.        $message = ereg_replace("%5C%22", "%22", $message);
  59.        $message = urldecode($message);
  60.        $message = stripslashes($message);
  61.        $subject = stripslashes($subject);
  62. }
  63. ?>
  64. <html>
  65. <head>
  66. <title>.:: mass mailer ::.</title>
  67. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  68.  
  69. <style type="text/css">
  70. <!--
  71. .style1 {
  72.        font-family: Geneva, Arial, Helvetica, sans-serif;
  73.        font-size: 12px;
  74. }
  75. -->
  76. </style>
  77. <style type="text/css">
  78. <!--
  79. .style1 {
  80.        font-size: 20px;
  81.        font-family: Geneva, Arial, Helvetica, sans-serif;
  82. }
  83. body {
  84.    background-color: #000000;
  85. }
  86. .style2 {font-family: Georgia, "Times New Roman", Times, serif}
  87. .style3 {
  88.    color: #FF0000;
  89.    font-weight: bold;
  90. }
  91. .style4 {color: #999999}
  92. -->
  93. </style>
  94. </head>
  95. <body text="#ffffff">
  96. <span class="style1">
  97. <center><br>
  98.  <SPAN lang=ar-sa><FONT style="FONT-SIZE: 70pt"
  99.  
  100. face=Webdings
  101. color=#ff0000>!</FONT></SPAN></FONT></br>
  102. </center>
  103. <br></span></p>
  104. <form name="form1" method="post" action="" enctype="multipart/form-data">
  105.        <input type="hidden" name="action" value="send">
  106.        <br>
  107.  <table width="100%" border="0">
  108.    <tr>
  109.      <td width="10%">
  110.        <div align="right"><font size="-3" face="Verdana, Arial,
  111. Helvetica, sans-serif">Email:</font></div>
  112.      </td>
  113.      <td width="18%"><font size="-3" face="Verdana, Arial, Helvetica,
  114. sans-serif">
  115.        <input type="text" name="from" value="<? print $from; ?>"
  116. size="30">
  117.        </font></td>
  118.      <td width="31%">
  119.        <div align="right"><font size="-3" face="Verdana, Arial,
  120. Helvetica, sans-serif">Nama:</font></div>
  121.      </td>
  122.      <td width="41%"><font size="-3" face="Verdana, Arial, Helvetica,
  123. sans-serif">
  124.        <input type="text" name="realname" value="<? print $realname;
  125. ?>" size="30">
  126.        </font></td>
  127.    </tr>
  128.    <tr>
  129.      <td width="10%">
  130.        <div align="right"><font size="-3" face="Verdana, Arial,
  131. Helvetica, sans-serif">Reply:</font></div>
  132.      </td>
  133.      <td width="18%"><font size="-3" face="Verdana, Arial, Helvetica,
  134. sans-serif">
  135.        <input type="text" name="replyto" value="<? print $replyto;
  136. ?>" size="30">
  137.        </font></td>
  138.      <td width="31%">
  139.        <div align="right"><font size="-3" face="Verdana, Arial,
  140. Helvetica, sans-serif">Attach
  141.          File:</font></div>
  142.      </td>
  143.      <td width="41%"><font size="-3" face="Verdana, Arial, Helvetica,
  144. sans-serif">
  145.        <input type="file" name="file" size="30">
  146.        </font></td>
  147.    </tr>
  148.    <tr>
  149.      <td width="10%">
  150.        <div align="right"><font size="-3" face="Verdana, Arial,
  151. Helvetica, sans-serif">Subject:</font></div>
  152.      </td>
  153.      <td colspan="3"><font size="-3" face="Verdana, Arial, Helvetica,
  154. sans-serif">
  155.        <input type="text" name="subject" value="<? print $subject;
  156. ?>" size="66">
  157.        </font></td>
  158.    </tr>
  159.    <tr>
  160.      <td width="10%" valign="top">
  161.        <div align="right"><font size="-3" face="Verdana, Arial,
  162. Helvetica, sans-serif">Mail:</font></div>
  163.      </td>
  164.      <td width="18%" valign="top"><font size="-3" face="Verdana,
  165. Arial, Helvetica,
  166. sans-serif">
  167.        <textarea name="message" cols="50" rows="10"><? print
  168. $message; ?></textarea>
  169.        <br>
  170.        <input type="radio" name="contenttype" value="plain">
  171.        Text
  172.        <input name="contenttype" type="radio" value="html" checked>
  173.        HTML
  174.        <input type="submit" value="Send to Inbox">
  175.        </font></td>
  176.      <td width="31%" valign="top">
  177.        <div align="right">
  178.          <font face="Verdana, Arial,
  179. Helvetica, sans-serif" size="-3">Mail  to:</font></div>
  180.      </td>
  181.      <td width="41%" valign="top"><font size="-3" face="Verdana,
  182. Arial, Helvetica, sans-serif">
  183.        <textarea name="emaillist" cols="30" rows="10"><? print
  184. $emaillist; ?></textarea></font></td>
  185.    </tr>
  186.  </table>
  187. </form>
  188. <?
  189. if ($action){
  190.        if (!$from && !$subject && !$message && !$emaillist){
  191.        print "Please complete all fields before sending your message.";
  192.        exit;
  193.    }
  194.    $allemails = split("\n", $emaillist);
  195.            $numemails = count($allemails);
  196.  
  197.          for($x=0; $x<$numemails; $x++){
  198.                $to = $allemails[$x];
  199.                if ($to){
  200.                $to = ereg_replace(" ", "", $to);
  201.                $message = ereg_replace("&email&", $to, $message);
  202.                $subject = ereg_replace("&email&", $to, $subject);
  203.                print " $to.......";
  204.                flush();
  205.                $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
  206.                $header .= "MIME-Version: 1.0\r\n";
  207.            If ($file_name) $header .= "Content-Type: multipart/mixed;
  208. boundary=$uid\r\n";
  209.              If ($file_name) $header .= "--$uid\r\n";
  210.                $header .= "Content-Type: text/$contenttype\r\n";
  211.                $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
  212.                $header .= "$message\r\n";
  213.            If ($file_name) $header .= "--$uid\r\n";
  214.            If ($file_name) $header .= "Content-Type: $file_type;
  215. name=\"$file_name\"\r\n";
  216.            If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
  217.            If ($file_name) $header .= "Content-Disposition:
  218. attachment; filename=\"$file_name\"\r\n\r\n";
  219.            If ($file_name) $header .= "$content\r\n";
  220.            If ($file_name) $header .= "--$uid--";
  221.                mail($to, $subject, "", $header);
  222.                print "Shout sems!<br>";
  223.                flush();
  224.                }
  225.                }
  226. }
  227.  
  228.  
  229. ?>
  230. <style type="text/css">
  231. <!--
  232. .style1 {
  233.    font-size: 20px;
  234.    font-family: Geneva, Arial, Helvetica, sans-serif;
  235. }
  236. -->
  237. </style><center>
  238. <p class="style1 style2 style3 style4"><p class="style1">PHP Mailer<br>
  239.  &copy trojanspot@yahoo.co.id<br>
  240.      </p>  </p>
  241. </center>
  242. <?php
  243. if(isset($_POST['action']) && $numemails !==0 ){echo
  244. "<script>alert('Sending Completed\\r\\nTotal Email
  245. $numemails\\r\\n-Thnkx 2 Skillful');
  246. </script>";}
  247. ?>
  248. </body>
  249. </html>
Add Comment
Please, Sign In to add comment