从命令行查杀病毒『金山毒霸』

Home > 今日一点, 安全 > 从命令行查杀病毒『金山毒霸』

有时候不方便到界面下边或者为啦方便自己定制查杀病毒任务,这时命令行下的杀毒方式就显得很灵活实用啦(金山毒霸的屏保杀毒就是使用的命令行杀毒任务)。好啦下边看下金山毒霸查杀病毒命令格式。

C:\Program Files\Kingsoft\Kingsoft Internet Security 2008>kavdx /help

Kingsoft AntiVirus Scan V3.0     Copyright (c) 1998, 2003 Kingsoft Co., Ltd

Usage:
KAVDX [drive:][path][filename] [{/|-}<switch>[+|-] …]

Switch:          (+|-: Enable|Disable switch)
?|H|Help        – For help
D               – Display default settings
M               – Scan Memory
B               – Scan Boot area
All             – Scan All files
Z               – Scan archived file
S               – Scan Sub directory
HA              – Heuristic Analysis
A{P|C|D|S|Q}    – Automate {Prompt|Clean|Delete|Skip|Quarantine} infected fi
le(s)
BAK             – Backup infected file(s) before clean
Q               – Quarantine infected file(s) before clean
CF{D|S|Q}       – When Clean Failed, {Delete|Skip|Quarantine} infected file(
s)
L<LogName>      – Virus Log with VirusInfoID

Thank you for using KAVScan!

kavdx是金山的杀毒引擎命令可在2000/XP/Vista 的 DOS 窗口下运行,也可以在纯 DOS 环境下运行。

(其他主流杀毒软件也有相应的命令需要的话请自行查看说明文档)

C:\Program Files\Kingsoft\Kingsoft Internet Security 2008>kavdx /m /b d:\tools

Kingsoft AntiVirus Scan V3.0     Copyright (c) 1998, 2003 Kingsoft Co., Ltd

* Loading AntiVirus Engine…Ok
* AntiVirus Engine Version: 2008.1.14.15
* Loading Virus DataBase…OK!
* Virus Database Version: 2008.4.2.10

* Init AntiVirus Engine…Ok

* Scan Windows memory…
OK!
* Scan No.0 hard disk Master Boot Record…Ok!
* Scan D: disk boot sector…Ok!

* Scanning Directiories/Files…

* Checked Files: 8
* No Virus Found!

Thank you for using KAVScan!

上边这个例子就是扫描内存和引导区和d:\tools目录

若不带路径参数将使用默认的参数“/All-”(只扫描程序文件及文档文件)

默认参数是这样的:

C:\Program Files\Kingsoft\Kingsoft Internet Security 2008>kavdx /d

Kingsoft AntiVirus Scan V3.0     Copyright (c) 1998, 2003 Kingsoft Co., Ltd

Default Settings:
/M           : Scan Memory
/B           : Scan Boot area
/All-        : Only Scan program and document file
/Z-          : Disable Scan archived file(s)
/S           : Scan Sub directory
/HA-         : Disable Heuristic Analysis
/AP          : Prompt when found virus
/BAK-        : Disable Backup infected file(s) before clean
/Q-          : Disable Quarantine infected file(s) before clean
/CFS         : When Clean Failed, Skip infected file(s)

Thank you for using KAVScan!

看下中文的说明:

命令行格式:[路径]KAVDX [指定驱动器][指定路径][指定文件] [{/|-}<switch>[+|-] …]
+ 打开设置开关
- 关闭设置开关
无 ([指定驱动器][指定路径][指定文件])时检查所有本地硬盘

switch(命令行转换参数)
?|H|Help 显示帮助信息
D 显示默认设置
M 扫描内存
B 扫描引导区
All 扫描所有文件
Z 检查压缩文件
ZC 清除压缩文件内文件所染病毒(只支持可清除的压缩格式)
S 扫描子目录
HA 启动启发式查毒
A{P|C|D|S|Q} 发现病毒{询问后处理|自动清除|自动删除|自动跳过|自动隔离}被感染的文件
BAK 清除病毒前备份被感染的文件
CF{D|S|Q} 当清除失败时自动{删除|跳过|隔离}被感染的文件

如果没有选择任何参数,程序会按默认值来进行查毒,默认的设置如下所示:
/M 扫描内存
/B 扫描引导区
/All- 只扫描程序文件及文档文件
/Z- 不扫描压缩文件中的文件
/S 扫描子目录
/HA- 不启动启发式查毒
/AP 发现病毒询问后处理
/BAK- 扫描子目录
HA 清除文件中的病毒时不备份原始的文件

转载原创文章请注明,转载自:[Lin's Space|Only]

本文链接: http://clin003.com/safe/from-the-command-line-killing-virus-by-kingsoft-antivirus-600/

Google比较注重原创性和时效性,若没有找到需要的内容可尝试以下搜素。

This entry was posted in 今日一点, 安全 and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>