Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rule.txt 的作用? #1

Open
jiamo opened this issue Dec 2, 2022 · 1 comment
Open

rule.txt 的作用? #1

jiamo opened this issue Dec 2, 2022 · 1 comment

Comments

@jiamo
Copy link

jiamo commented Dec 2, 2022

首次使用需要更新脚本信息一次:  
nvtengine update  
并且导入所有脚本到扫描控制数据库:  
nvtengine import -n all -t ../etc/rule.txt

这两句感觉不完整。 rule.txt 里面是硬编码 和 update 之后数据库的内容。并不匹配。
按照这么来 会有大量的

WARN   InitScripts:495	load 1.3.6.1.4.1.25623.1.0.147053 failed
WARN   InitScripts:495	load 1.3.6.1.4.1.25623.1.0.147054 failed
WARN   InitScripts:495	load 1.3.6.1.4.1.25623.1.0.147055 failed
WARN   InitScripts:495	load 1.3.6.1.4.1.25623.1.0.147056 failed
WARN   InitScripts:495	load 1.3.6.1.4.1.25623.1.0.147057 failed
@Clivebi
Copy link
Owner

Clivebi commented Dec 4, 2022

nvtengine import 用于建立一个扫描规则,包括一个规则名字 -n 和需要执行的脚本列表 rule.txt,因为我之前提取openVAS脚本和rule不是在同一个时间点,所以rule里面存在一些实际不存在脚本的脚本配置,可以忽略,或者都更新到最新即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants