Files
Testing/mailservices/spammer.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

169 lines
5.9 KiB
PHP

<?php header('Content-Type: text/html; charset=utf-8');
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/bebop/');
?>
<!doctype html>
<html>
<head>
<?php
function uuid() {
// The field names refer to RFC 4122 section 4.1.2
return sprintf('%04x%04x-%04x-%03x4-%04x-%04x%04x%04x',
mt_rand(0, 65535), mt_rand(0, 65535),
mt_rand(0, 65535),
mt_rand(0, 4095),
bindec(substr_replace(sprintf('%016b', mt_rand(0, 65535)), '01', 6, 2)),
mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535)
);
}
$fresh=uuid();
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="30; url=https://bateworld.com/mailservices/spammer.php?dofresh=<?php echo $fresh;?>">
<title>Lion Hunt</title>
</head>
<body>
<img src="/mailservices/hunt_the_lion_100x104.jpg" width="55" height="55" style="float:right;margin-left:10px;" />
<h1>Welcome to Lion Hunt (Arrowchat)</h1>
<table style="width:100%;" width="100">
<thead>
<tr style="background-color:darkred;color:#fff;">
<th style="text-align:left;padding:5px 10px 5px 5px;">From</th>
<th style="text-align:left;padding:5px;">To</th>
<th style="text-align:left;padding:5px;">Username</th>
<th style="text-align:left;padding:5px;" colspan="2">Message</th>
</tr>
</thead>
<tfoot>
<tr>
<th colspan="5" style="background-color:darkred;color:white;font-weight:bold;padding:5px 10px 5px 10px;">Arrowchat Moderation</th>
</tr>
</tfoot>
<tbody>
<?php
$listuid="";
function connecttodb()
{
$emsg="Ok";
$mhostname = "localhost";
$mdatabase = "bateworldcom";
$musername = "db.bateworldcom";
$mpassword = "sDIE8U8!5n*4%Ue_x.Pq";
mysql_connect($mhostname, $musername, $mpassword) or $emsg="Host Connect Error";
if($emsg=="Ok"){mysql_select_db($mdatabase) or $emsg="Database Connection Error";}
return($emsg);
}
$ctb=connecttodb();
mysql_query("SET NAMES UTF8");
$sql="SELECT `arrowchat`.`id`,`arrowchat`.`from`,`arrowchat`.`to`,`arrowchat`.`message`,`arrowchat`.`sent`,`arrowchat`.`read`,`arrowchat`.`user_read`, `se_users`.`user_username`, `se_users`.`user_id` FROM `arrowchat`
LEFT OUTER JOIN `se_users` ON `arrowchat`.`from`=`se_users`.`user_id`
WHERE CHAR_LENGTH(`message`) > 30 AND ((floor((UNIX_TIMESTAMP()-`se_users`.`user_signupdate`) / (60*60*24))) <= 3) ORDER BY `id` DESC";
$query = mysql_query($sql);
$rownum=0;
$sentmail=0;
while ($row = mysql_fetch_assoc($query)) {
$message=$row["message"];
//$message=str_replace("src=", "", $message);
//$message=str_replace("<", "", $message);
//$message=str_replace(">", "", $message);
$message=strip_tags($message);
if($message=="" || $message==" "){continue;}
$makestrong="";
$flipoffaccount="no";
if (strpos($message,"Do you want to watch some of my porn's group") !== false)
{
//$emailmessage="Check Lionhunt - " .$row["userid"]." - Possible Spam Attack";
//mail("porembaphilip@gmail.com", "Possible Spam", $emailmessage);
//$sentmail=1;
//echo $emailmessage;
$flipoffaccount="yes";
$makestrong=";font-weight:700";
}
if (strpos($message, 's.k.y.p.e') !== false) {
$listuid=$listuid." ".$row["user_id"]." ";
$makestrong=";font-weight:700";
$flipoffaccount="yes";
}
$messagetwo=strtolower($message);
if(strpos($messagetwo, 'hey there pig!') !== false)
{
$listuid=$listuid." ".$row["user_id"]." ";
$makestrong=";font-weight:700";
$flipoffaccount="yes";
}
if (strpos($messagetwo, 'your email') !== false || strpos($messagetwo, 'sk/ype') !==false || strpos($messagetwo, 'hey there bate!') !== false || strpos($messagetwo, 'satanic') !== false) {
$listuid=$listuid." ".$row["user_id"]." ";
$makestrong=";font-weight:700";
$theemailmessage="Possible Spam - please check userid: ".$row["user_id"].".";
//mail("porembaphilip@gmail.com", "Possible Spam", $theemailmessage);
}
if (strpos($messagetwo,"pnp,chem fucking,perving,jerking,bb,flipping,breeding,kissing,rimming,smoking,fisting,satanic") !== false)
{
//$emailmessage="Check Lionhunt - " .$row["userid"]." - Possible Spam Attack";
//mail("porembaphilip@gmail.com", "Possible Spam", $emailmessage);
//$theuserid=$row["user_id"];
$flipoffaccount="yes";
$makestrong=";font-weight:700";
}
if($flipoffaccount=="yes")
{
//$emailmessage="Check Lionhunt - " .$row["user_id"]." - Identified As Spam Attack";
// mail("porembaphilip@gmail.com", "Automated Spam Detect and Delete", $emailmessage);
$theuserid=$row["user_id"];
$theaction="kill";
include(PATHTOINCLUDES."killthelion.php");
}
//echo $flipoffaccount;
$rownum=$rownum+1;
if($rownum % 2 != 0){$rc="#ffff99";} else{$rc="#fff";}
echo "<tr style=\"background:".$rc."".$makestrong.";\" onmouseover=\"this.style.background='#ccffcc';\" onmouseout=\"this.style.background='".$rc."';\" class=\"trr\" valign=\"top\" id=\"therow_".$rownum."\">";
echo '<td style="padding:5px 10px 5px 5px;text-align:left;"><a href="#" onclick="">'.$row["from"].'</a></td>';
echo '<td style="padding:5px 10px 5px 5px;text-align:left;"><a href="#" onclick="">'.$row["to"].'</a></td>';
echo '<td style="padding:5px;text-align:left;"><a href="https://bateworld.com/profile.php?user='.$row["user_username"].'" target="_blank">'.$row["user_username"].'</a></td>';
echo '<td style="padding:5px;text-align:left;">'.$message.'</td>';
echo '<td style="padding:5px;text-align:right;" nowrap="nowrap"> Delete | Ban | <a href="#" onclick="lionhunt(\'kill\','.$row["user_id"].','.$row["id"].')">Kill</a></td>';
echo '</tr>';
}
?>
</tbody>
</table>
<script type='text/javascript' src="/mailservices/js/jquery-1.7.2.min.js"></script>
<script>
function lionhunt(theact,theid,mid)
{
"use strict";
var url="/bebop/lionhunt.php";
jQuery.ajax({
url: url,
type: 'GET',
data:{userid:theid,takeaction:theact,messageid:mid},
async: true,
cache: false,
success: function(data) {
alert(data.theerror);
},
error: function(resp, textStatus, errorThrown){
alert('problem'); }
});
}
</script>
</body>
</html>