Nessus离线更新插件--Linux版

关注安全
0 310

以下的更新过程是针对于以上的安装过程来进行的,如果你的安装过程不是按照上面教程来的,那么以下的更新插件过程对你并不适用

1.获取Challenge code

# /opt/nessus/sbin/nessuscli fetch --challenge

2.获取激活码

https://www.tenable.com/products/nessus/nessus-essentials

3.获取插件包

Plugin Registration | Tenable® 

4.停止Nessus

systemctl stop nessusd

5.离线注册

# /opt/nessus/sbin/nessuscli fetch --register-offline /opt/nessus/nessus.license

Your Activation Code has been registered properly - thank you.

6.取消plugins只读

# find /opt/nessus/lib/nessus/plugins/ -name "*.*" | xargs -i chattr -i {} #设置plugins取消全文件只读 

7.离线更新插件

# /opt/nessus/sbin/nessuscli update /opt/nessus/all-2.0.tar.gz 

8.设置目录权限

plugins

# find /opt/nessus/lib/nessus/plugins/ -name "*.*" | xargs -i chattr +i {}    #设置plugins全文件只读

plugin_feed_info.inc

# chattr -i /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc #取消inc文件的只读

9.plugin_feed_info.inc

取消文件只读

# chattr -i /opt/nessus/var/nessus/plugin_feed_info.inc #取消设置只读

查看插件信息

# cat /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc

PLUGIN_SET = "202303040556";

PLUGIN_FEED = "HomeFeed (Non-commercial use only)";

修改插件信息

# vim /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc

PLUGIN_SET = "202303040556";

PLUGIN_FEED = "ProfessionalFeed (Direct)";

PLUGIN_FEED_TRANSPORT = "Tenable Network Security Lightning";

10. /opt/nessus/var/nessus/plugin_feed_info.inc

修改插件信息

# vim /opt/nessus/var/nessus/plugin_feed_info.inc

PLUGIN_SET = "202303040556";

PLUGIN_FEED = "ProfessionalFeed (Direct)";

PLUGIN_FEED_TRANSPORT = "Tenable Network Security Lightning";

设置plugin_feed_info.inc文件权限

# chattr +i /opt/nessus/var/nessus/plugin_feed_info.inc #设置只读

复制文件plugin_feed_info.inc

# mkdir /opt/nessus/var/nessus/plugins

# cp /opt/nessus/var/nessus/plugin_feed_info.inc /opt/nessus/var/nessus/plugins

11.开启服务

# systemctl start nessusd.service

————————————————

                            版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

                        

原文链接:https://blog.csdn.net/weixin_49098230/article/details/138186389