home *** CD-ROM | disk | FTP | other *** search
/ .net 1998 August / netCD48.iso / mac / net / Starte / PC / 05Virus / Win31 / DATA.Z / edat.3 < prev    next >
Text File  |  1997-06-06  |  14KB  |  391 lines

  1. REM ********HOUSE KEEPING ***********
  2. @ECHO OFF
  3. SET ERROR10=0
  4. SET ERROR17=0
  5.  
  6. :SelfCheckOK
  7. CLS
  8. ECHO *
  9. ECHO *
  10. ECHO *                  MCAFEE VIRUS REMOVAL TOOL
  11. ECHO *
  12. ECHO *    THIS DISKETTE IS USED TO SIMPLIFY THE TASK OF REMOVING A
  13. ECHO *    VIRUS FROM YOUR COMPUTER.  IT IS IMPORTANT TO ENSURE THAT
  14. ECHO *    YOU COLD BOOTED YOUR MACHINE BEFORE USING THIS DISKETTE.
  15. ECHO *    A COLD BOOT MEANS THAT THE POWER TO THE COMPUTER IS TURNED
  16. ECHO *    OFF AND THEN TURNED ON WITH THIS DISKETTE IN THE A: DRIVE.
  17. ECHO *
  18. ECHO *
  19.  
  20. A:\GETREPLY.EXE Did you cycle the power off and on (Y/N)? ;yn
  21. IF ERRORLEVEL 2 GOTO NoCyclePWR    
  22.  
  23. :DoScan
  24. REM ******************************************************************
  25. REM **** PERFORM THE SCAN
  26. REM ******************************************************************
  27.  
  28. CLS
  29. ECHO *
  30. ECHO *
  31. ECHO *            MCAFEE VIRUS REMOVAL TOOL
  32. ECHO *
  33. ECHO *    WE ARE NOW READY TO BEGIN SCANNING YOUR DRIVE. THANK YOU 
  34. ECHO *    FOR CHOSING MCAFEE'S VIRUSSCAN FOR YOUR VIRUS PROTECTION NEEDS. 
  35. ECHO *
  36. ECHO *    MCAFEE WILL PERFORM A SCAN OF ALL LOCAL DRIVES FOR VIRUSES 
  37. ECHO *    AND ATTEMPT TO CLEAN ANY INFECTIONS THAT ARE FOUND. CERTAIN
  38. ECHO *    VIRUSES MAY REQUIRE YOU TO REBOOT AND PERFORM THIS SCAN
  39. ECHO *    AGAIN. IF THE SCAN STALLS FOR MORE THAN 30 SECONDS THEN TURN
  40. ECHO *    THE POWER OFF AND THEN BACK ON AGAIN WITH THIS DISKETTE IN 
  41. ECHO *    THE A: DRIVE.
  42. ECHO *
  43. ECHO *
  44. PAUSE
  45.  
  46. CLS
  47. SCAN /ADL /ALL /CLEAN /NOBREAK
  48. PAUSE
  49.  
  50. :DoErrors
  51. REM ******************************************************************
  52. REM ***  DO ERROR CHECKING
  53. REM ******************************************************************
  54. IF ERRORLEVEL 100 GOTO ErrorDOS
  55. IF ERRORLEVEL 17 GOTO NoTarget
  56. IF ERRORLEVEL 16 GOTO BadAccess
  57. IF ERRORLEVEL 15 GOTO BadScanEXE
  58. IF ERRORLEVEL 14 GOTO Update
  59. IF ERRORLEVEL 13 GOTO VirusFound
  60. IF ERRORLEVEL 12 GOTO BadClean
  61. IF ERRORLEVEL 11 GOTO ProgError
  62. IF ERRORLEVEL 10 GOTO VirusInMemory
  63. IF ERRORLEVEL 8  GOTO MissingDat
  64. IF ERRORLEVEL 6  GOTO ProgError
  65. IF ERRORLEVEL 5  GOTO ProgError
  66. IF ERRORLEVEL 3  GOTO BadAccess
  67. IF ERRORLEVEL 2  GOTO BadDats
  68. IF ERRORLEVEL 1  GOTO BadAccess
  69. IF ERRORLEVEL 0  GOTO Nada
  70.  
  71. REM ******************************************************************
  72. REM ******  ERROR CHECKING ROUTINES                             ******
  73. REM ******************************************************************
  74.  
  75. :Nada
  76. REM ******************************************************************
  77. REM *** errorlevel 0
  78. REM ******************************************************************
  79. CLS
  80. IF %ERROR10%==1 GOTO ExitNoMem
  81. ECHO *
  82. ECHO *
  83. ECHO *    No viruses were found in memory, or on any local drives!
  84. ECHO *    When the prompt returns you should remove this diskette
  85. ECHO *    and reboot your system.
  86. ECHO *
  87. ECHO *
  88. GOTO Exit
  89.  
  90. :BadAccess
  91. REM ******************************************************************
  92. REM *** errorlevels 1, 3 & 16
  93. REM ******************************************************************
  94. CLS
  95. ECHO *
  96. ECHO *
  97. ECHO *    An error has occurred while trying to access one of your local
  98. ECHO *    drives. Please reboot the machine with this diskette in the A: 
  99. ECHO *    drive and reattempt the procedure. If this error continues 
  100. ECHO *    then it may be necessary to run some kind of disk diagnostic 
  101. ECHO *    software on the drive before re-attempting the removal procedure.
  102. ECHO *
  103. ECHO *
  104. GOTO Exit
  105.  
  106. :BadDats
  107. REM ******************************************************************
  108. REM *** errorlevel 2
  109. REM ******************************************************************
  110. CLS
  111. ECHO *
  112. ECHO *
  113. ECHO *    An error occurred while trying to read the data files. This 
  114. ECHO *    could mean that the diskette is either damaged or has been 
  115. ECHO *    modified, or that the floppy drive is slightly misaligned. If you 
  116. ECHO *    have another computer available, you could use it to check this disk.
  117. ECHO *    Since the diskette is write protected, it is unlikely that the file(s)
  118. ECHO *    were modified unless the write-protection was forcefully overridden.
  119. ECHO *
  120. ECHO *
  121. ECHO *
  122. GOTO Exit
  123.  
  124. :ProgError
  125. REM ******************************************************************
  126. REM *** errorlevels 5, 6 and 11
  127. REM ******************************************************************
  128. CLS
  129. ECHO *
  130. ECHO *
  131. ECHO *    There has been a problem with the VirusScan program. This 
  132. ECHO *    could be caused by a corrupted file, low memory or a conflict 
  133. ECHO *    with a piece of hardware. It is also possible that a virus 
  134. ECHO *    is active and interfering with the program. Please cold boot 
  135. ECHO *    this system again with this disk and try the scan again. If 
  136. ECHO *    this problem continues please consult your manual on how
  137. ECHO *    to create a new Emergency Disk.
  138. ECHO *
  139. ECHO *
  140. GOTO Exit
  141.  
  142. :MissingDat
  143. REM ******************************************************************
  144. REM *** errorlevel 8
  145. REM ******************************************************************
  146. CLS
  147. ECHO *
  148. ECHO *
  149. ECHO *    One or more of the following files are missing: SCAN.DAT, 
  150. ECHO *    NAMES.DAT, and CLEAN.DAT.  There is a good chance that this 
  151. ECHO *    diskette may have been modified.  Please cold boot this system 
  152. ECHO *    again with this disk and try the scan again. If this problem 
  153. ECHO *    continues please consult your manual on how to make a new
  154. ECHO *    Emergency Disk.
  155. ECHO *
  156. ECHO *
  157.  
  158. GOTO Exit
  159.  
  160.  
  161. :VirusInMemory
  162. REM ******************************************************************
  163. REM *** errorlevel 10
  164. REM ******************************************************************
  165. CLS
  166. ECHO *
  167. ECHO *
  168. ECHO *        W       A       R       N       I       N       G
  169. ECHO *        
  170. ECHO *    The signature of a virus was found in memory while performing
  171. ECHO *    the memory scan. It is unlikely that this disk is infected
  172. ECHO *    as long as the write protect tab on the diskette was never
  173. ECHO *    bypassed. There are other possibilities. You should check
  174. ECHO *    the boot sequence in CMOS. The hardware documentation that
  175. ECHO *    came with your computer should discuss how to access this area.
  176. ECHO *    Ensure that the sequence is A: first THEN C:.
  177. ECHO *
  178. ECHO *    It is also possible that you have a hard drive controller that
  179. ECHO *    is placing an IMAGE of the infected Boot Record into memory.
  180. ECHO *    If this is the case then the virus may not be active and could
  181. ECHO *    possibly be removed.
  182. ECHO *
  183. ECHO *
  184. A:\GETREPLY.EXE Would you like to attempt anyway (Y/N)? ;yn
  185. IF ERRORLEVEL 2 GOTO Exit
  186. GOTO ScanNOMEM
  187.  
  188. :BadClean
  189. REM ******************************************************************
  190. REM *** errorlevel 12
  191. REM ******************************************************************
  192. CLS
  193. ECHO *
  194. ECHO *
  195. ECHO *    A problem has occurred in trying to clean a virus. Either the
  196. ECHO *    CLEAN.DAT file is missing or corrupted or VirusScan was unable 
  197. ECHO *    to clean the virus. Please check this diskette with the Validate
  198. ECHO *    program included to make sure the files are all there and are 
  199. ECHO *    not corrupted. If the files are ok, please cold boot the machine 
  200. ECHO *    with this diskette and try the scan again. If the file still 
  201. ECHO *    cannot be cleaned, you will need to delete it.
  202. ECHO *
  203. GOTO Exit
  204.  
  205. :VirusFound
  206. REM ******************************************************************
  207. REM *** errorlevel 13
  208. REM ******************************************************************
  209. CLS
  210. ECHO *
  211. ECHO *        W       A       R       N       I       N       G
  212. ECHO *
  213. ECHO *    One or more viruses were found on this computer. In many cases
  214. ECHO *    the viruses were cleaned at the same time by the program. It 
  215. ECHO *    is recommended that you cold boot this machine with this 
  216. ECHO *    disk again and have it run another scan to insure that the 
  217. ECHO *    computer is clean and no viruses were missed or were not cleaned.
  218. ECHO *
  219. ECHO *    In some cases, an infected file can not be cleaned without
  220. ECHO *    damaging the file. It will then be necessary to identify and
  221. ECHO *    delete the infected file. Please refer to the manual for
  222. ECHO *    additional information on /Report {filename} to identify the
  223. ECHO *    infected file and /Del to delete the file.  Then restore the file
  224. ECHO *    from a backup.
  225. ECHO *
  226. GOTO Exit
  227.  
  228. :Update
  229. REM ******************************************************************
  230. REM *** errorlevel 14
  231. REM ******************************************************************
  232. CLS
  233. ECHO *
  234. ECHO *
  235. ECHO *    Your virus data files are getting old and you should update 
  236. ECHO *    them. This is not a major problem. However, there may be 
  237. ECHO *    viruses on this machine that are not detectable by this version 
  238. ECHO *    of the software. By updating your software you are getting 
  239. ECHO *    the most protection possible. Please consult your manual for 
  240. ECHO *    update information.
  241. ECHO *
  242. ECHO *
  243. GOTO Exit
  244.  
  245. :BadscanEXE
  246. REM ******************************************************************
  247. REM *** errorlevel 15
  248. REM ******************************************************************
  249. CLS
  250. ECHO *
  251. ECHO *
  252. ECHO *    The self-check has failed. This may be caused by a damaged 
  253. ECHO *    or modified SCAN.EXE file or problem with the floppy drive. 
  254. ECHO *    First, at the A: prompt run VALIDATE SCAN.EXE and verify the 
  255. ECHO *    validation code against the code in the PACKING.LST file. 
  256. ECHO *    The PACKING.LST file will be displayed on exit.
  257. ECHO *
  258. ECHO *
  259. PAUSE
  260. GOTO AbortSLFCHK
  261.  
  262. :NoTarget
  263. REM ******************************************************************
  264. REM *** errorlevel 17:  Possible encrypting virus
  265. REM ******************************************************************
  266. IF %ERROR17%==1 GOTO EncManualRemove
  267. CLS
  268. ECHO *
  269. ECHO *
  270. ECHO *    Scan has reported that there is no target specified for 
  271. ECHO *    scanning. This could be due to an encrypting virus or a 
  272. ECHO *    possible hardware issue. Another scan will be attempted 
  273. ECHO *    to remedy the situation.
  274. ECHO *
  275. ECHO *    Please stand by...
  276. ECHO *
  277. ECHO *
  278. GOTO ScanCDrive
  279.  
  280. :ErrorDOS
  281. REM ******************************************************************
  282. REM *** DOS Error
  283. REM ******************************************************************
  284. CLS
  285. ECHO *
  286. ECHO *
  287. ECHO *    A DOS error has occurred. Please consult your DOS manual 
  288. ECHO *    for details or contact your DOS vendor for assistance.
  289. ECHO *
  290. ECHO *
  291. GOTO Exit
  292.  
  293.  
  294. REM ******************************************************************
  295. REM ****  AUXILLARY PROCEDURES
  296. REM ******************************************************************
  297.  
  298.  
  299. :AbortSLFCHK
  300. REM ******************************************************************
  301. REM self check failed
  302. REM ******************************************************************
  303. CLS
  304. TYPE PACKING.LST
  305. GOTO Exit
  306.  
  307. :NoCyclePwr
  308. REM ******************************************************************
  309. REM user said that he did not cycle the power off
  310. REM ******************************************************************
  311. CLS
  312. ECHO *
  313. ECHO *
  314. ECHO *    It is strongly recommended that you leave this diskette in the
  315. ECHO *    the A: drive and turn the power to the computer off and then 
  316. ECHO *    on. Some viruses are capable of surviving a warm boot or a
  317. ECHO *    CTRL+ALT+DEL by remaining in memory.
  318. ECHO *
  319. ECHO *
  320. GOTO Exit
  321.  
  322. :ScanNOMEM
  323. REM ******************************************************************
  324. REM *****  ATTEMPT TO BYPASS MEMORY SCAN
  325. REM ******************************************************************
  326. CLS
  327. ECHO *
  328. ECHO *
  329. ECHO *    If no virus is found on the hard drive(s) then most likely 
  330. ECHO *    the virus is active and it is a stealth type virus. If a 
  331. ECHO *    virus is found it is recommended that you boot to this diskette
  332. ECHO *    a second time to ensure the virus has been removed.
  333. ECHO *
  334. ECHO *
  335. SET ERROR10=1
  336. SCAN /ADL /ALL /CLEAN /NOMEM /NOBREAK
  337. GOTO DoErrors
  338.  
  339. :ScanCDrive
  340. REM ******************************************************************
  341. REM ***  Run scan on only the C: drive
  342. REM ******************************************************************
  343. SET ERROR17=1
  344. SCAN C: /NOBREAK /ALL
  345. GOTO DoErrors
  346.  
  347. :EncManualRemove
  348. REM ******************************************************************
  349. REM *** The Scan C: /CLEAN didn't work
  350. REM ******************************************************************
  351. CLS
  352. ECHO *
  353. ECHO *
  354. ECHO *    The same error has occurred again. If this is due to a virus 
  355. ECHO *    you may need to perform a manual removal in this case. It 
  356. ECHO *    is also possible that you are experiencing some hardware issues.
  357. ECHO *    Try running a disk diagnostic program to see if it can clear up 
  358. ECHO *    the problem.
  359. ECHO *
  360. ECHO *
  361. GOTO Exit
  362.  
  363. :ExitNoMem
  364. REM ******************************************************************
  365. REM *****  EXIT AFTER USING NOMEM AND VIRUS WAS FOUND PREVIOUSLY
  366. REM ******************************************************************
  367. CLS
  368. ECHO *
  369. ECHO *
  370. ECHO *    Scan did not find a virus on the second pass. However, because 
  371. ECHO *    a virus was found in memory it is possible that there may still 
  372. ECHO *    be a virus active on the hard drive. Again, as long as the write 
  373. ECHO *    protect tab on this diskette was never bypassed, it is unlikely 
  374. ECHO *    that this disk is infected. There are other possibilities why 
  375. ECHO *    traces of a virus are still in memory.  
  376. ECHO *
  377. ECHO *    You should check the boot sequence in CMOS. The hardware 
  378. ECHO *    documentation that came with your computer should discuss 
  379. ECHO *    how to access this area. Ensure that the sequence is A: 
  380. ECHO *    first THEN C:. Try cold booting your system again using this diskette
  381. ECHO *    and run another scan. If a virus continues to show up in memory, 
  382. ECHO *    then there may be a compatibility issue with some hardware 
  383. ECHO *    in the computer.
  384. ECHO *
  385. ECHO *
  386. GOTO Exit
  387.  
  388. @ECHO OFF
  389. :Exit
  390. echo exit
  391.