Art:
That's a tough one. The commandline scanners scan.exe and scanpm.exe don't conform to the
standard rules of I/O
redirection as you have noted. The only way I can think of is to do it in DOS and within a
batch file.
The console is considered a file such as "LPT1:" and "COM1:" and is called "CON:"
Output is always assumed to go to CON: unless redirected by the ">" greater than sign such
as the command;
type readme.txt >LPT1:
The idea is to create a batch file that forces all "standard output" to be forced to be
redirected to a disk file or the printer, preferably a disk file. The "scan.exe /virlist"
command is then executed. Then forced back to the "standard output" the "CON:" device. The
DOS command is 'CTTY'. It is a MS DOS internal command found through WinME (PC DOS and
maybe in Novell/DR DOS/Caldera) but is NOT found in the CMD.EXE or COMMAND.COM, DOS
emulators of NT4, Win2K and WinXP. It is also fund in the NDOS and 4DOS command
interpreters. However the 'ctty' command can not be redirectedto a disk file.
The following will work, but ONLY under DOS, Win95, Win98 and WinME.
The following assumes; C:\PROGRA~1\COMMON~1\NETWOR~1\VIRUSS~1\40~1.XX (location of
SCAN.EXE) is in the path...
virlist.bat
-----------
@echo off
ctty LPT1:
scan /virlist
ctty CON:
Be prepared for many pages to be dumped on the printer, there are >78K names in the list.
Dave
PS: I had to think "real hard" to remember the CTTY command. It was never used often and
is very obscure.
| On Sat, 16 Aug 2003 18:21:23 GMT, "David H. Lipman"
|
| >With every DAT release there is a README.TXT file. If will provide the latest infectors
| >that the release finds and or corrects.
|
| <snip>
|
| To see the full list of malwares detected, you can use the command
| line scanner as:
|
| scanpm /virlist
|
| but pipeing to a text file using
|
| scanpm /virlist >virlist.txt
|
| doesn't work. So you have to skillfully use the Break key to make it
| stop scrolling periodically.
|
| Anyway, have you a method of dumping the list to a text file?
|
|
| Art
|
http://www.epix.net/~artnpeg