This chapter will explain the F-PROT command-line and menu options that can be used in the DOS environment. In an emergency, you can boot from the F-PROT rescue disk, or a Windows 95 startup disk and use these tools.
F-PROT.EXE and FIXDISK.EXE (described in chapter 4) can be used to disinfect a hard drive. They are located on the installation diskettes of F-PROT Professional for Windows 95, and are also on the F-PROT rescue disk you created during installation.
F-PROT.EXE can be run from DOS in both menu-driven and command-line modes. A list of the command line switches can be found in this chapter in the section on Command-Line Mode. In F-PROT.EXE Menu Options you will find the selections which are available from the F-PROT menus. If you simply type F-PROT from a DOS prompt, you will begin the menu driven version of F-PROT Professional for DOS.
The following example shows how to run F-PROT from the command line. Since the main reason you would be running the DOS version of F-PROT for a Windows 95 system is concern over a virus, we suggest you run it from your floppy drive. Once you have booted with a write-protected F-PROT rescue disk, be sure you are at the A: prompt, and type:
F-PROT /HARD /DISINF [ENTER]
If you are booting with a Windows 95 startup disk, you must insert a disk containing the following files: F-PROT.EXE, ENGLISH.TX0, SIGN.DEF before typing the above command. These files are on the F-PROT installation diskettes.
When F-PROT is run with /HARD , it scans the boot records and executable files on all local, logical drives. The /DISINF switch tells F-PROT to identify a virus, and ask if you wish to disinfect it.
Run F-PROT.EXE by typing the following from the DOS command line. Make sure you press the [ENTER]after each command.F-PROTEach time you run F-PROT.EXEit scans for viruses in memory. When the memory check is complete the following menu with the items Scan, Configure, Viruses, Program and Quit appears.
Main Menu Screen
You may select a command from the menu in one of two ways:
- Press the highlighted letter from the keyboard. For example, the letter Q in QUIT is highlighted.
- With the arrow keys, move the highlight bar to the command and press[ENTER]
When you select "Scan" from the main menu, the scanning menu appears. From this menu, you can scan for viruses on both local and network drives. You may configure how F-PROT Professional scans by selecting the other options that appear on this menu. Press [ESC] at anytime to abort a scan in progress.
Main Menu Screen
The following sections discuss the commands and options available from this initial menu.
Select this item and press [ENTER] to begin scanning. The F10 key will also start this process.
Scan Method Screen
When you choose this menu item and press [ENTER], a sub-menu appears from which you select the type of scan to perform. Two types of scanning are available and each offers advantages. Use the arrow keys to highlight the type of scan you wish to perform and press [ENTER]. Remember, the scan does not start until you select "Begin Scan".
"Secure Scan" uses two different signatures when scanning for a virus and reports the variant of virus found. Secure Scan also checks for Trojan Horses and polymorphic viruses.
|This method of scanning does not rely on specific virus signatures. It uses behavioral patterns as well as a set of rules to identify the type of code that viruses use. This is not a recommended option for inexperienced users as it can return false positives.|
This command displays a sub-menu that lists where F-PROT Professional should search for viruses. You may select only one option at a time.
Select this option to search your local hard disks. By default, F-PROT Professional searches all logical and physical drives automatically.
Use this option to select a diskette drive for scanning. A sub-menu appears from which you can select the drive.
Select this option to search all of your network drives.
Select this option to specify the drive/path to search. This is particularly useful when you want to scan newly created directories after installing a new program.
|This command displays a window from which you can select the type of action to take when a virus is found. The default is "Report Only". If you choose to disinfect a file, make sure you can run F-PROT Professional after booting the system from a clean write-protected system diskette. Should a virus remain active in memory, it can interfere with the disinfection process.|
Scan Action Screen
This option displays the results of the scan in a window. You may scroll through this window. This report may be sent to the printer or to a disk file.
Select this option to have F-PROT Professional prompt you before disinfecting a file. F-PROT Professional is capable of disinfecting most non-overwriting viruses.
|Select this to automatically disinfect a file when F-PROT Professional finds a virus. No prompt appears with this option.
There are some viruses that cannot be disinfected.
Select this option to prompt you before deleting an infected file.
|F-PROT Professional will delete infected files automatically with this option. This is not recommended since some viruses encrypt portions of the hard disk. The encrypted portions would be lost when the virus is removed.|
|Select this option to rename infected files to .VOM or .VXE. Use this if you wish to study the infected file or compare it to a clean backup copy. Files with these extensions are not executable and, therefore pose no threat to your system.|
This option is the same as the Rename/Query option described above except that F-PROT automatically renames an infected file.
This menu item displays a window from which you can select the search criteria for F-PROT Professional. Use the space bar to toggle a YES or NO option.TARGET SELECTION
|Type of File||.||.|
|Boot Sector Viruses||YES||NO|
|File Viruses, Including Trojan and Joke Programs||YES||NO|
Select this option to choose which files to search.
Select this to have F-PROT Professional search files that end in .APP, .COM, .EXE, .OV?, .PGM and .SYS. Users may specify up to ten extensions to scan.
|Use this to search every file. This is not a recommended option for an inexperienced user. Searching all files on a disk will generate a lengthy report, some of which could be inaccurate. Use this if you are concerned that an improperly named file may contain a virus that could later be activated by renaming the file.|
Select this to specify a list of custom filename extensions to search. Simply move the highlight bar to an empty line and enter a three-character filename extension. DOS wildcards are acceptable.
|Keep in mind the fact that only an executable file will allow a virus to activate and infect other programs. Further information on virus terminology and behavior can be found in the Glossary.|
Select this to examine executable files that have been compressed with PKLite, Diet or similar programs.
When you Select "Configure" from the main menu, the options "Language" and "Setup" appear. These options provide language selection and virus list formatting.
Where available, this is for multiple language support in F-PROT Professional.
Select this option to sort the list of viruses F-PROT Professional scans for, by row or column. When sorted by row, viruses appear left to right in alphabetical order. This is the default.
When you select "Viruses" from the main menu, the options "Information" and "New Viruses" appear. Use these to view information about a specific virus or add a new signature.
Select this option to display a window that lists the most common viruses in the virus signature database. This screen helps you find out more about a specific virus, such as the type of damage it causes and how it spreads.
Virus Information Screen
To view information on a virus, simply move the highlight bar to the name of the virus and press [ENTER]. The up and down arrows and the page up and page down keys allow you to scroll through the virus list. You can also type the first few letters of the virus name. A second window provides specific information about the virus. Press [ESC] to close the information window.
The virus names shown in yellow designate the root of a family of viruses. Virus names in white are variants.
Select this option to display a menu from which you can add, delete or list your user-defined signatures. These options are useful when a new virus is discovered and you have not obtained a virus signature update.
|Be sure to set "Targets to Scan" to check user-defined strings.
Should you choose "New Search Strings", F-PROT Professional will ask you a series of questions concerning the virus. These are:
You must provide a hexadecimal series of characters for the search string. F-PROT Professional will add this to a list and can use this information.
When you select "Program" from the main menu, another menu appears with the following options:
Each provides specific information that may prove useful.
Select "Quit" to exit F-PROT.EXE. A prompt appears to let you save changes you may have made to F-PROT.EXE's settings.
Setup information is stored by default in a file named SETUP.F2.
Use command line switches when you wish to run F-PROT in a non-interactive mode.COMMAND LINE SWITCHES
The order of the switches is not critical.
|/640||Scan only the first 640K of memory. Some video drivers require this.|
|/ACCESS||Prevents the last access date from changing on a Novell file server. This maintains compatibility with archival software that relies on access dates. Additionally, F-PROT will automatically skip compressed or migrated files.|
|/ALL||Search all files, not just executables. This approach may cause false positives and should be used with care.|
|/ANALYZE||Perform a heuristic analysis instead of a signature-based scan. This approach may cause false positives and should be used with care.|
|/APPEND||Append a new report to an existing one. Use this with the /REPORT switch.|
|/ARCHIVE||Search within .ZIP files. Note that PKUNZIP.EXE must be within a pathed directory.|
|/AUTO||Use with /DELETE or /DISINF seitch so that F-PROT will not prompt you before deleting or disinfecting a file. By default, /DELETE and /DISINF ask if the file should be affected.|
|/BEEP||Sound an alarm when a virus is found.|
|/BOOT [default]||Scan for MBR and boot sector viruses.|
|/DELETE||Delete all infected files instead of listing them. This is not recommended since some viruses encrypt portions of the drive.|
|/DISINF||Disinfect whenever possible. This option does delete some first-generation virus samples. A first-generation virus is the "starter" program that begins the infection process. It is very rare to encounter one. This option will never delete a file that can be disinfected.|
|/EXT=||Specify additional filename extensions to scan. Separate each filename extension with a period (.).
|/FILE [default]||Scan for file viruses.|
|/FREEZE||Halt the computer when a virus is found.|
|/HARD||Scan all the physical hard drives in the system.|
|/HELP or /?||Display a list of available options.|
|/LIST||Produce a list of all files checked, not just infected files.|
|/MONO||Forces monochrome screen mode.|
|/MULTI||Prompts for multiple diskettes to scan.|
|/NET||Scans all network drives. See "Restricting Users".|
|/NOBOOT||Do NOT scan for MBR and boot sector viruses.|
|/NOBREAK||Do NOT allow users to abort a scan with the [ESC] key. See Restricting Users".|
|/NODOC||Do NOT scan document files.|
|/NOFILE||Do NOT scan for file viruses.|
|/NOMEM||Do NOT scan memory.|
|/NOPACKED||Do NOT search inside packed files.|
|/NOSUB||Do NOT scan sub-directories.|
|/NOUSER [default]||Do NOT search for user-defined virus patterns.|
|/NOWRAP||Do NOT wrap text in reports.|
|/OLD||Do NOT display out-of-date messages.|
|/PACKED [default]||Scan inside packed files.|
|/PAGE||Pauses after every screen while displaying report.|
|/RENAME||Rename infected files. You may use this switch with/AUTO.|
|/REPORT||Sends the output to the specified file.|
|/SILENT||Generates no screen outpput at all. This is useful when running F-PROT from a batch file where you will check for the return codes.|
|/TODAY||The date of the last scan is stored in an F-PROT.DAT file. If the next scan finds the same date, F-PROT will not repeat the scan.|
|/USER||Search for user-defined virus patterns. This option should only be used if absolutely necessary, as it can result in a considerable speed decrease.|
F-PROT Professional returns the following codes that you can check with the ERRORLEVEL command from a batch file. Use this return code in your AUTOEXEC.BAT file to alert the user if F-PROT Professional finds a problem. For example, if F-PROT Professional returns the number 2 to the operating system, you could notify the user that F-PROT Professional failed its self-test and request that the user notify a supervisor or take corrective action.F-PROT.EXE RETURN CODES
|Normal exit. No viruses found.|
|Abnormal termination-unrecoverable error. This is usually the result of a missing system file|
|Self test failed, F-PROT Professioanl has been modified.|
|A Boot/File virus infection has been found.|
|Virus signatures found in memory|
|Program terminated with ESC.|
|At least one virus was removed. This code is only meaningful when used to scan a single virus|
|Insufficient memory. Additional available RAM is required.|
|Invalid program files. Usually indicates corrupt files.|
|A macro virus has been found. This return code can combine with the other codes. For example, a 93 return code indicates that a Boot/File virus infection was found as well as a macro virus.|