nho123

fake mailer

Aug 26th, 2015
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.68 KB | None | 0 0
  1. <?php
  2.  
  3. @session_start();
  4.  
  5. @set_time_limit(0);
  6.  
  7. //PASSWORD CONFIGURATION
  8.  
  9. @$pass = $_POST['pass'];
  10.  
  11. $chk_login = true;
  12.  
  13. $password = "prototype";
  14.  
  15. //END CONFIGURATION
  16.  
  17. if($pass == $password)
  18.  
  19. {
  20.  
  21. $_SESSION['nst'] = "$pass";
  22.  
  23. }
  24.  
  25. if($chk_login == true)
  26.  
  27. {
  28.  
  29. if(!isset($_SESSION['nst']) or $_SESSION['nst'] != $password)
  30.  
  31. {
  32.  
  33. die("
  34.  
  35. <title>.Mass Mailer</title>
  36.  
  37. <center>
  38.  
  39. <table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>
  40.  
  41. <tr><td valign=middle align=center>
  42.  
  43. <table width=100 bgcolor=black border=6 bordercolor=#444444>
  44.  
  45. <tr><td>
  46.  
  47. <font size=1 face=verdana><center>
  48.  
  49. <b></font></a><br></b>
  50.  
  51. </center>
  52.  
  53. <form method=post>
  54.  
  55. <font size=1 face=verdana
  56.  
  57. color=red><strong><center>Mailer</center></strong><br>
  58.  
  59. <input type=password name=pass size=30>
  60.  
  61. </form>
  62.  
  63. <b>Host:</b> ".$_SERVER["HTTP_HOST"]."<br>
  64.  
  65. <b>IP:</b> ".gethostbyname($_SERVER["HTTP_HOST"])."<br>
  66.  
  67. <b>Your ip:</b> ".$_SERVER["REMOTE_ADDR"]."
  68.  
  69. </td></tr></table>
  70.  
  71. </td></tr></table>
  72.  
  73. ");
  74.  
  75. }
  76.  
  77. }
  78.  
  79. if(isset($_POST['action'] ) ){
  80.  
  81. $action=$_POST['action'];
  82.  
  83. $message=$_POST['message'];
  84.  
  85. $emaillist=$_POST['emaillist'];
  86.  
  87. $from=$_POST['from'];
  88.  
  89. $replyto=$_POST['replyto'];
  90.  
  91. $subject=$_POST['subject'];
  92.  
  93. $realname=$_POST['realname'];
  94.  
  95. $file_name=$_POST['file'];
  96.  
  97. $contenttype=$_POST['contenttype'];
  98.  
  99. $message = urlencode($message);
  100.  
  101. $message = ereg_replace("%5C%22", "%22", $message);
  102.  
  103. $message = urldecode($message);
  104.  
  105. $message = stripslashes($message);
  106.  
  107. $subject = stripslashes($subject);
  108.  
  109. }
  110.  
  111. ?>
  112.  
  113. <html>
  114.  
  115. <head>
  116.  
  117. <title>.:: mass mailer ::.</title>
  118.  
  119. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  120.  
  121. <style type="text/css">
  122.  
  123. <!--
  124.  
  125. .style1 {
  126.  
  127. font-family: Geneva, Arial, Helvetica, sans-serif;
  128.  
  129. font-size: 12px;
  130.  
  131. }
  132.  
  133. -->
  134.  
  135. </style>
  136.  
  137. <style type="text/css">
  138.  
  139. <!--
  140.  
  141. .style1 {
  142.  
  143. font-size: 20px;
  144.  
  145. font-family: Geneva, Arial, Helvetica, sans-serif;
  146.  
  147. }
  148.  
  149. body {
  150.  
  151. background-color: #000000;
  152.  
  153. }
  154.  
  155. .style2 {font-family: Georgia, "Times New Roman", Times, serif}
  156.  
  157. .style3 {
  158.  
  159. color: #FF0000;
  160.  
  161. font-weight: bold;
  162.  
  163. }
  164.  
  165. .style4 {color: #999999}
  166.  
  167. -->
  168.  
  169. </style>
  170.  
  171. </head>
  172.  
  173. <body text="#ffffff">
  174.  
  175. <span class="style1">
  176.  
  177. <center><br>
  178.  
  179. <SPAN lang=ar-sa><FONT style="FONT-SIZE: 70pt"
  180.  
  181. face=Webdings
  182.  
  183. color=#ff0000><a href=http://www.hackthedevil.blogspot.in/>!</a></FONT></SPAN></FONT></br>
  184.  
  185. </center>
  186.  
  187. <br></span></p>
  188.  
  189. <form name="form1" method="post" action="" enctype="multipart/form-data">
  190.  
  191. <input type="hidden" name="action" value="send">
  192.  
  193. <br>
  194.  
  195. <table width="100%" border="0">
  196.  
  197. <tr>
  198.  
  199. <td width="10%">
  200.  
  201. <div align="right"><font size="-3" face="Verdana, Arial,
  202.  
  203. Helvetica, sans-serif">Email:</font></div>
  204.  
  205. </td>
  206.  
  207. <td width="18%"><font size="-3" face="Verdana, Arial, Helvetica,
  208.  
  209. sans-serif">
  210.  
  211. <input type="text" name="from" value="<? print $from; ?>"
  212.  
  213. size="30">
  214.  
  215. </font></td>
  216.  
  217. <td width="31%">
  218.  
  219. <div align="right"><font size="-3" face="Verdana, Arial,
  220.  
  221. Helvetica, sans-serif">Name:</font></div>
  222.  
  223. </td>
  224.  
  225. <td width="41%"><font size="-3" face="Verdana, Arial, Helvetica,
  226.  
  227. sans-serif">
  228.  
  229. <input type="text" name="realname" value="<? print $realname;
  230.  
  231. ?>" size="30">
  232.  
  233. </font></td>
  234.  
  235. </tr>
  236.  
  237. <tr>
  238.  
  239. <td width="10%">
  240.  
  241. <div align="right"><font size="-3" face="Verdana, Arial,
  242.  
  243. Helvetica, sans-serif">Reply:</font></div>
  244.  
  245. </td>
  246.  
  247. <td width="18%"><font size="-3" face="Verdana, Arial, Helvetica,
  248.  
  249. sans-serif">
  250.  
  251. <input type="text" name="replyto" value="<? print $replyto;
  252.  
  253. ?>" size="30">
  254.  
  255. </font></td>
  256.  
  257. <td width="31%">
  258.  
  259. <div align="right"><font size="-3" face="Verdana, Arial,
  260.  
  261. Helvetica, sans-serif">Attach
  262.  
  263. File:</font></div>
  264.  
  265. </td>
  266.  
  267. <td width="41%"><font size="-3" face="Verdana, Arial, Helvetica,
  268.  
  269. sans-serif">
  270.  
  271. <input type="file" name="file" size="30">
  272.  
  273. </font></td>
  274.  
  275. </tr>
  276.  
  277. <tr>
  278.  
  279. <td width="10%">
  280.  
  281. <div align="right"><font size="-3" face="Verdana, Arial,
  282.  
  283. Helvetica, sans-serif">Subject:</font></div>
  284.  
  285. </td>
  286.  
  287. <td colspan="3"><font size="-3" face="Verdana, Arial, Helvetica,
  288.  
  289. sans-serif">
  290.  
  291. <input type="text" name="subject" value="<? print $subject;
  292.  
  293. ?>" size="66">
  294.  
  295. </font></td>
  296.  
  297. </tr>
  298.  
  299. <tr>
  300.  
  301. <td width="10%" valign="top">
  302.  
  303. <div align="right"><font size="-3" face="Verdana, Arial,
  304.  
  305. Helvetica, sans-serif">Mail:</font></div>
  306.  
  307. </td>
  308.  
  309. <td width="18%" valign="top"><font size="-3" face="Verdana,
  310.  
  311. Arial, Helvetica,
  312.  
  313. sans-serif">
  314.  
  315. <textarea name="message" cols="50" rows="10"><? print
  316.  
  317. $message; ?></textarea>
  318.  
  319. <br>
  320.  
  321. <input type="radio" name="contenttype" value="plain">
  322.  
  323. Text
  324.  
  325. <input name="contenttype" type="radio" value="html" checked>
  326.  
  327. HTML
  328.  
  329. <input type="submit" value="BomB WellA">
  330.  
  331. </font></td>
  332.  
  333. <td width="31%" valign="top">
  334.  
  335. <div align="right">
  336.  
  337. <font face="Verdana, Arial,
  338.  
  339. Helvetica, sans-serif" size="-3">Mail to:</font></div>
  340.  
  341. </td>
  342.  
  343. <td width="41%" valign="top"><font size="-3" face="Verdana,
  344.  
  345. Arial, Helvetica, sans-serif">
  346.  
  347. <textarea name="emaillist" cols="30" rows="10"><? print
  348.  
  349. $emaillist; ?></textarea></font></td>
  350.  
  351. </tr>
  352.  
  353. </table>
  354.  
  355. </form>
  356.  
  357. <?
  358.  
  359. if ($action){
  360.  
  361. if (!$from && !$subject && !$message && !$emaillist){
  362.  
  363. print "Please complete all fields before sending your message.";
  364.  
  365. exit;
  366.  
  367. }
  368.  
  369. $allemails = split("\n", $emaillist);
  370.  
  371. $numemails = count($allemails);
  372.  
  373. for($x=0; $x<$numemails; $x++){
  374.  
  375. $to = $allemails[$x];
  376.  
  377. if ($to){
  378.  
  379. $to = ereg_replace(" ", "", $to);
  380.  
  381. $message = ereg_replace("&email&", $to, $message);
  382.  
  383. $subject = ereg_replace("&email&", $to, $subject);
  384.  
  385. print " $to.......";
  386.  
  387. flush();
  388.  
  389. $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
  390.  
  391. $header .= "MIME-Version: 1.0\r\n";
  392.  
  393. If ($file_name) $header .= "Content-Type: multipart/mixed;
  394.  
  395. boundary=$uid\r\n";
  396.  
  397. If ($file_name) $header .= "--$uid\r\n";
  398.  
  399. $header .= "Content-Type: text/$contenttype\r\n";
  400.  
  401. $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
  402.  
  403. $header .= "$message\r\n";
  404.  
  405. If ($file_name) $header .= "--$uid\r\n";
  406.  
  407. If ($file_name) $header .= "Content-Type: $file_type;
  408.  
  409. name=\"$file_name\"\r\n";
  410.  
  411. If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
  412.  
  413. If ($file_name) $header .= "Content-Disposition:
  414.  
  415. attachment; filename=\"$file_name\"\r\n\r\n";
  416.  
  417. If ($file_name) $header .= "$content\r\n";
  418.  
  419. If ($file_name) $header .= "--$uid--";
  420.  
  421. mail($to, $subject, "", $header);
  422.  
  423. print "Fucked Successfully :P<br>";
  424.  
  425. flush();
  426.  
  427. }
  428.  
  429. }
  430.  
  431. }
  432.  
  433. ?>
  434.  
  435. <style type="text/css">
  436.  
  437. <!--
  438.  
  439. .style1 {
  440.  
  441. font-size: 20px;
  442.  
  443. font-family: Geneva, Arial, Helvetica, sans-serif;
  444.  
  445. }
  446.  
  447. -->
  448.  
  449. </style><center>
  450.  
  451. <p class="style1 style2 style3 style4"><p class="style1">PHP Mailer<br>
  452.  
  453. &copy BY PROTOTYPE<br>
  454.  
  455. </p> </p>
  456.  
  457. </center>
  458.  
  459. <?php
  460.  
  461. if(isset($_POST['action']) && $numemails !==0 ){echo
  462.  
  463. "<script>alert('Sending Completed\\r\\nTotal Email
  464.  
  465. $numemails\\r\\n-Shout Lastborn and Hustle On!');
  466.  
  467. </script>";}
  468.  
  469. ?>
  470.  
  471. </body>
  472.  
  473. </html>
Add Comment
Please, Sign In to add comment