nessus破解shell脚本
破解Linux shell
#!/bin/bash ##author:brucetyler read -p "请输入要检测的服务:" SERVICE netstat -anp | grep $SERVICE &> /dev/null if [ $? -eq 0 ] then echo "$SERVICE服务已经启动!" /opt/nessus/sbin/nessuscli update /root/all-2.0-202112152014.tar.gz sleep 30s systemctl stop nessusd cat>>/opt/nessus/plugin_feed_info.inc<<EOF PLUGIN_SET = 202110041340; PLUGIN_FEED = "ProfessionalFeed (Direct)"; PLUGIN_FEED_TRANSPORT = "Tenable Network Security Lightning"; EOF cp /opt/nessus/plugin_feed_info.inc /opt/nessus/var/nessus/ rm -rf /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc systemctl start nessusd firewall-cmd --zone=public --add-port=8834/tcp --permanent firewall-cmd --reload echo "破解成功" else echo "$SERVICE服务未启动!" systemctl start nessusd /opt/nessus/sbin/nessuscli update /root/all-2.0-202112152014.tar.gz sleep 30s systemctl stop nessusd cat>>/opt/nessus/plugin_feed_info.inc<<EOF PLUGIN_SET = 202110041340; PLUGIN_FEED = "ProfessionalFeed (Direct)"; PLUGIN_FEED_TRANSPORT = "Tenable Network Security Lightning"; EOF cp /opt/nessus/plugin_feed_info.inc /opt/nessus/var/nessus/ rm -rf /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc systemctl start nessusd firewall-cmd --zone=public --add-port=8834/tcp --permanent firewall-cmd --reload echo "破解成功" fi
卸载shell
#!/bin/bash
##author:brucetyler
systemctl stop nessusd nessus_package=`rpm -qa | grep Nessus` rpm -e $nessus_package rm -rf /opt/nessus echo "卸载成功"