Nessus 破解版+2024插件 10.6.4 Cracked for linux

Nessus 破解版+2024插件 10.6.4 Cracked for linux

Nessus破解版【适用于debian系统】

安装脚本适用于debian系统,可在kali linux上成功安装。
适用于Ubuntu系统的可在文章末尾下载。

Nessus版本:10.6.4

插件版本:202401292356

安装方法

【1】下载nessus.sh脚本。

下载地址:
nessus.sh

或直接复制如下代码保存为nessus.sh

#!/bin/bash
if [[ $(id -u) -ne 0 ]] ; then echo "请使用 root 用户运行" ; exit 1 ; fi
echo //==============================================================
echo   Nessus 最新版本下载、安装和破解   -Zen 20230819
echo   特别感谢 John Doe 在 Debian 上演示这一操作的有效性
echo   感谢 369 提供关于 "latest" 的提示
echo //==============================================================
echo " + 增加了防滑附加功能,移除所有 chattr 设置 20231013"
chattr -i -R /opt/nessus
echo " + 确保我们有先决条件.."
apt update &>/dev/null
apt -y install curl dpkg expect &>/dev/null
echo " + 停止旧的 nessusd 服务,以防存在一个!"
/bin/systemctl stop nessusd.service &>/dev/null
echo " + 下载 Nessus.."
curl -A Mozilla --request GET \
  --url 'https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-latest-debian10_amd64.deb' \
  --output 'Nessus-latest-debian10_amd64.deb' &>/dev/null
{ if [ ! -f Nessus-latest-debian10_amd64.deb ]; then
  echo " + Nessus 下载失败 :/ 退出。从 t.me/pwn3rzs 获取拷贝"
  exit 0
fi }
echo " + 安装 Nessus.."
dpkg -i Nessus-latest-debian10_amd64.deb &>/dev/null
# 看,我试图只是进行更改和运行,但它不起作用。如果你能优化我的操作,让我知道。但对我来说,这是唯一需要运行的 :/
echo " + 第一次初始化时启动服务(必须执行)"
/bin/systemctl start nessusd.service &>/dev/null
echo " + 让 Nessus 初始化,等待大约 20 秒..."
sleep 20
echo " + 停止 nessus 服务.."
/bin/systemctl stop nessusd.service &>/dev/null
echo " + 更改 nessus 设置为 Zen 偏好(自由战士模式)"
echo "   监听端口: 11127"
/opt/nessus/sbin/nessuscli fix --set xmlrpc_listen_port=11127 &>/dev/null
echo "   主题: 暗色"
/opt/nessus/sbin/nessuscli fix --set ui_theme=dark &>/dev/null
echo "   安全检查: 关闭"
/opt/nessus/sbin/nessuscli fix --set safe_checks=false &>/dev/null
echo "   日志: 性能"
/opt/nessus/sbin/nessuscli fix --set backend_log_level=performance &>/dev/null
echo "   更新: 关闭"
/opt/nessus/sbin/nessuscli fix --set auto_update=false &>/dev/null
/opt/nessus/sbin/nessuscli fix --set auto_update_ui=false &>/dev/null
/opt/nessus/sbin/nessuscli fix --set disable_core_updates=true &>/dev/null
echo "   遥测: 关闭"
/opt/nessus/sbin/nessuscli fix --set report_crashes=false &>/dev/null
/opt/nessus/sbin/nessuscli fix --set send_telemetry=false &>/dev/null
echo " + 添加一个用户,稍后可以更改(用户名:admin, 密码:ddosi)"
cat > expect.tmp<<'EOF'
spawn /opt/nessus/sbin/nessuscli adduser admin
expect "登录密码:"
send "ddosi\r"
expect "登录密码(再次输入):"
send "ddosi\r"
expect "*(可以上传插件等)? (y/n)*"
send "y\r"
expect "*(用户可以有一个空的规则集)"
send "\r"
expect "是否确定*"
send "y\r"
expect eof
EOF
expect -f expect.tmp &>/dev/null
rm -rf expect.tmp &>/dev/null
echo " + 下载新的插件.."
curl -A Mozilla -o all-2.0.tar.gz \
  --url 'https://plugins.nessus.org/v2/nessus.php?f=all-2.0.tar.gz&u=4e2abfd83a40e2012ebf6537ade2f207&p=29a34e24fc12d3f5fdfbb1ae948972c6' &>/dev/null
{ if [ ! -f all-2.0.tar.gz ]; then
  echo " + 插件 all-2.0.tar.gz 下载失败 :/ 退出。从 t.me/pwn3rzs 获取拷贝"
  exit 0
fi }
echo " + 安装插件.."
/opt/nessus/sbin/nessuscli update all-2.0.tar.gz &>/dev/null
echo " + 获取版本号.."
# 我曾经看到这个对于下载不正确。嗯,但对我来说它有效。
vernum=$(curl https://plugins.nessus.org/v2/plugins.php 2> /dev/null)
echo " + 构建插件 feed..."
cat > /opt/nessus/var/nessus/plugin_feed_info.inc <<EOF
PLUGIN_SET = "${vernum}";
PLUGIN_FEED = "ProfessionalFeed (Direct)";
PLUGIN_FEED_TRANSPORT = "Tenable Network Security Lightning";
EOF
echo " + 保护文件.."
chattr -i /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
cp /opt/nessus/var/nessus/plugin_feed_info.inc /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
echo " + 设置所有文件为不可变..."
chattr +i /opt/nessus/var/nessus/plugin_feed_info.inc &>/dev/null
chattr +i -R /opt/nessus/lib/nessus/plugins &>/dev/null
echo " + 但是取消关键文件的不可变性.."
chattr -i /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
chattr -i /opt/nessus/lib/nessus/plugins  &>/dev/null
echo " + 启动服务.."
/bin/systemctl start nessusd.service &>/dev/null
echo " + 再等待 20 秒以便服务器有足够的时间启动!"
sleep 20
echo " + 监控 Nessus 进度。以下行每 10 秒更新一次直到 100%"
zen=0
while [ $zen -ne 100 ]
do
 statline=`curl -sL -k https://localhost:11127/server/status|awk -F"," -v k="engine_status" '{ gsub(/{|}/,""); for(i=1;i<=NF;i++) { if ( $i ~ k ){printf $i} } }'`
 if [[ $statline != *"engine_status"* ]]; then echo -ne "\n 问题:Nessus 服务器无法访问?再次尝试..\n"; fi
 echo -ne "\r $statline"
 if [[ $statline == *"100"* ]]; then zen=100; else sleep 10; fi
done
echo -ne '\n  o 完成!\n'
echo
echo "        访问 Nessus:  https://localhost:11127/ (或您的 VPS IP)"
echo "                             用户名: admin"
echo "                             密码: ddosi"
echo "                             随时可以更改"
echo
read -p "按 Enter 键继续"

【2】授予执行权限

chmod +x nessus.sh
Nessus 破解版+2024插件 10.6.4 Cracked for linux

【3】使用root账号执行nessus.sh(请耐心等待)大约10-15分钟。

./nessus.sh

【4】安装完毕如图所示

Nessus 破解版+2024插件 10.6.4 Cracked for linux

【5】打开如下网页即可访问Nessus。

https://127.0.0.1:11127/

https://localhost:11127/

【6】使用账号密码登录

账号密码
adminddosi
Nessus 破解版+2024插件 10.6.4 Cracked for linux
Nessus 破解版+2024插件 10.6.4 Cracked for linux
Nessus 破解版+2024插件 10.6.4 Cracked for linux
Nessus 破解版+2024插件 10.6.4 Cracked for linux

Nessus启动与停止命令

启动

sudo systemctl start nessusd && systemctl --no-pager status nessusd

或直接搜索Nessus,点击nessus start即可

Nessus 破解版+2024插件 10.6.4 Cracked for linux

停止

sudo systemctl stop nessusd && systemctl --no-pager status nessusd

或直接搜索Nessus,点击nessus stop即可.

插件数量

序号插件名称数量
1AIX Local Security Checks11551
2Alma Linux Local Security Checks1177
3Amazon Linux Local Security Checks4216
4Backdoors123
5Brute force attacks26
6CentOS Local Security Checks4414
7CGI abuses5671
8CGI abuses : XSS703
9CISCO2366
10Databases969
11Debian Local Security Checks9196
12Default Unix Accounts172
13Denial of Service110
14DNS231
15F5 Networks Local Security Checks1405
16Fedora Local Security Checks18304
17Firewalls414
18FreeBSD Local Security Checks5475
19FTP272
20Gain a shell remotely282
21General356
22Gentoo Local Security Checks3519
23HP-UX Local Security Checks1983
24Huawei Local Security Checks10698
25Junos Local Security Checks622
26MacOS X Local Security Checks2287
27Mandriva Local Security Checks3641
28MarinerOS Local Security Checks564
29Misc.3657
30Netware14
31NewStart CGSL Local Security Checks1430
32Oracle Linux Local Security Checks6514
33OracleVM Local Security Checks602
34Palo Alto Local Security Checks170
35Peer-To-Peer File Sharing105
36PhotonOS Local Security Checks1895
37Policy Compliance16
38Red Hat Local Security Checks11595
39Rocky Linux Local Security Checks1083
40RPC39
41SCADA64
42Scientific Linux Local Security Checks3291
43Service detection601
44Settings122
45Slackware Local Security Checks1525
46SMTP problems154
47SNMP34
48Solaris Local Security Checks3819
49SuSE Local Security Checks23108
50Tenable.ot1885
51Ubuntu Local Security Checks7670
52Virtuozzo Local Security Checks341
53VMware ESX Local Security Checks143
54Web Servers1690
55Windows6509
56Windows : Microsoft Bulletins3000
57Windows : User management29

卸载方法

【1】停止Nessus服务。

sudo systemctl stop nessusd && systemctl --no-pager status nessusd

【2】修改/opt/nessus/文件夹属性

chattr -i -R /opt/nessus/

【3】卸载Nessus

apt remove nessus

注意事项

问题:在系统或Nessus重启后,扫描按钮可能出现暂时不能用的情况。

原因:Nessus在重新配置插件。

解决办法:耐心等待3~5分钟即可。

Nessus破解版【适用于Ubuntu系统】

操作方法和上面的一样。

下载地址:

nessus_ubuntu.sh

或直接复制如下代码保存为nessus_ubuntu.sh

#!/bin/bash
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi
echo //==============================================================
echo   Nessus latest DOWNLOAD, INSTALL, and CRACK   -Zen 20230819
echo   special thanks to John Doe for showing this works on Debian 
echo   THANKS 369 for tip about LATEST as a version number
echo //==============================================================
echo " o antiskid extra thing added removing all chattr 20231013"
chattr -i -R /opt/nessus
echo " o making sure we have prerequisites.."
apt update &>/dev/null
apt -y install curl dpkg expect &>/dev/null
echo " o stopping old nessusd in case there is one!"
/bin/systemctl stop nessusd.service &>/dev/null
echo " o downloading Nessus.."
curl -A Mozilla --request GET \
  --url 'https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-latest-ubuntu1404_amd64.deb' \
  --output 'Nessus-latest-ubuntu1404_amd64.deb' &>/dev/null
{ if [ ! -f Nessus-latest-ubuntu1404_amd64.deb ]; then
  echo " o nessus download failed :/ exiting. get copy of it from t.me/pwn3rzs"
  exit 0
fi }
echo " o installing Nessus.."
dpkg -i Nessus-latest-ubuntu1404_amd64.deb &>/dev/null
# look I tried to just make changes and run but it doesnt work. if you can optimize
# what im doing here, let me know.  but this was it for me, it had to be run once :/
echo " o starting service once FIRST TIME INITIALIZATION (we have to do this)"
/bin/systemctl start nessusd.service &>/dev/null
echo " o let's allow Nessus time to initalize - we'll give it like 20 seconds..."
sleep 20
echo " o stopping the nessus service.."
/bin/systemctl stop nessusd.service &>/dev/null
echo " o changing nessus settings to Zen preferences (freedom fighter mode)"
echo "   listen port: 11127"
/opt/nessus/sbin/nessuscli fix --set xmlrpc_listen_port=11127 &>/dev/null
echo "   theme:       dark"
/opt/nessus/sbin/nessuscli fix --set ui_theme=dark &>/dev/null
echo "   safe checks: off"
/opt/nessus/sbin/nessuscli fix --set safe_checks=false &>/dev/null
echo "   logs:        performance"
/opt/nessus/sbin/nessuscli fix --set backend_log_level=performance &>/dev/null
echo "   updates:     off"
/opt/nessus/sbin/nessuscli fix --set auto_update=false &>/dev/null
/opt/nessus/sbin/nessuscli fix --set auto_update_ui=false &>/dev/null
/opt/nessus/sbin/nessuscli fix --set disable_core_updates=true &>/dev/null
echo "   telemetry:   off"
/opt/nessus/sbin/nessuscli fix --set report_crashes=false &>/dev/null
/opt/nessus/sbin/nessuscli fix --set send_telemetry=false &>/dev/null
echo " o adding a user you can change this later (u:admin,p:ddosi)"
cat > expect.tmp<<'EOF'
spawn /opt/nessus/sbin/nessuscli adduser admin
expect "Login password:"
send "ddosi\r"
expect "Login password (again):"
send "ddosi\r"
expect "*(can upload plugins, etc.)? (y/n)*"
send "y\r"
expect "*(the user can have an empty rules set)"
send "\r"
expect "Is that ok*"
send "y\r"
expect eof
EOF
expect -f expect.tmp &>/dev/null
rm -rf expect.tmp &>/dev/null
echo " o downloading new plugins.."
curl -A Mozilla -o all-2.0.tar.gz \
  --url 'https://plugins.nessus.org/v2/nessus.php?f=all-2.0.tar.gz&u=4e2abfd83a40e2012ebf6537ade2f207&p=29a34e24fc12d3f5fdfbb1ae948972c6' &>/dev/null
{ if [ ! -f all-2.0.tar.gz ]; then
  echo " o plugins all-2.0.tar.gz download failed :/ exiting. get copy of it from t.me/pwn3rzs"
  exit 0
fi }
echo " o installing plugins.."
/opt/nessus/sbin/nessuscli update all-2.0.tar.gz &>/dev/null
echo " o fetching version number.."
# i have seen this not be correct for the download.  hrm. but, it works for me.
vernum=$(curl https://plugins.nessus.org/v2/plugins.php 2> /dev/null)
echo " o building plugin feed..."
cat > /opt/nessus/var/nessus/plugin_feed_info.inc <<EOF
PLUGIN_SET = "${vernum}";
PLUGIN_FEED = "ProfessionalFeed (Direct)";
PLUGIN_FEED_TRANSPORT = "Tenable Network Security Lightning";
EOF
echo " o protecting files.."
chattr -i /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
cp /opt/nessus/var/nessus/plugin_feed_info.inc /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
echo " o let's set everything immutable..."
chattr +i /opt/nessus/var/nessus/plugin_feed_info.inc &>/dev/null
chattr +i -R /opt/nessus/lib/nessus/plugins &>/dev/null
echo " o but unsetting key files.."
chattr -i /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
chattr -i /opt/nessus/lib/nessus/plugins  &>/dev/null
echo " o starting service.."
/bin/systemctl start nessusd.service &>/dev/null
echo " o Let's sleep for another 20 seconds to let the server have time to start!"
sleep 20
echo " o Monitoring Nessus progress. Following line updates every 10 seconds until 100%"
zen=0
while [ $zen -ne 100 ]
do
 statline=`curl -sL -k https://localhost:11127/server/status|awk -F"," -v k="engine_status" '{ gsub(/{|}/,""); for(i=1;i<=NF;i++) { if ( $i ~ k ){printf $i} } }'`
 if [[ $statline != *"engine_status"* ]]; then echo -ne "\n Problem: Nessus server unreachable? Trying again..\n"; fi
 echo -ne "\r $statline"
 if [[ $statline == *"100"* ]]; then zen=100; else sleep 10; fi
done
echo -ne '\n  o Done!\n'
echo
echo "        Access your Nessus:  https://localhost:11127/ (or your VPS IP)"
echo "                             username: admin"
echo "                             password: ddosi"
echo "                             you can change this any time"
echo
read -p "Press enter to continue"

转载请注明出处及链接

41 comments

  1. Macos M1 kali
    + 监控 Nessus 进度。以下行每 10 秒更新一次直到 100%

    问题:Nessus 服务器无法访问?再次尝试..

    问题:Nessus 服务器无法访问?再次尝试..

    问题:Nessus 服务器无法访问?再次尝试..

    问题:Nessus 服务器无法访问?再次尝试..

    问题:Nessus 服务器无法访问?再次尝试..

    问题:Nessus 服务器无法访问?再次尝试..

    https://127.0.0.1:11127/server/status|awk%20-F

    1. 你是不是设置代理了,是的话在while [ $zen -ne 100 ]前面取消代理
      unset http_proxy
      unset https_proxy

  2. Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    Problem: Nessus server unreachable? Trying again..

    ubuntu上面一直是这样了。

    1. 你是不是设置代理了,是的话在while [ $zen -ne 100 ]前面取消代理
      unset http_proxy
      unset https_proxy

      1. 部署的Nessus专业版新建云基础设施审计这个扫描保存提示错误:必须在”合规性”一节中至少添加一个审计,可是没有合规性选项。
        请问哪个版本才支持合规性审计?

  3. 咨询下博主如果是破解版不限制扫描数量,针对下次使用时最新的漏洞特征是如何获取最新的更新呢?

  4. utuntu 的能自己添加插件脚本吗?为什么我添加到的/opt/nessus/lib/nessus/plugins路路径下的脚本,重启之后就没了?有什么办法使用自己上传的.nasl脚本吗?

  5. 大佬,为什么安装成功后,第一次扫描是正常的,后面的扫面都是没有结果的呀,无论哪个功能扫描都是没有结果。重装了好几次都是这样。比如第一次使用主机存活扫描是有结果的,第二次扫描就没有结果了。

    1. 之前有安装过吗?之前有登陆过的话,你试试之前登录过的账号密码,我一开始也登陆不上,用之前的账号密码就登录上了

      1. 本来这个插件数量都是几十或者几个,我又重新卸载并且安装了一遍插件数量正常了,但是现在进去页面右上角会有一个加载,显示正在编译插件,这还挺慢的【泪目】

  6. 感谢,确实Unlimited了。不过该破解无法update。是否每隔一段时间需要重新卸载安装才能保证特征库是新的?

  7. //==============================================================
    Nessus 最新版本下载、安装和破解 -Zen 20230819
    特别感谢 John Doe 在 Debian 上演示这一操作的有效性
    感谢 369 提供关于 latest 的提示
    //==============================================================
    + 增加了防滑附加功能,移除所有 chattr 设置 20231013
    [proxychains] DLL init: proxychains-ng 4.17
    chattr: 没有那个文件或目录 while trying to stat /opt/nessus
    + 确保我们有先决条件..
    + 停止旧的 nessusd 服务,以防存在一个!
    + 下载 Nessus..
    + Nessus 下载失败 :/ 退出。从 t.me/pwn3rzs 获取拷贝
    请问一下这是为什么

  8. 好好好,请问博主有没有试过在android上安装openvas?termux上使用tmoe安装kali再装openvas

  9. 请问在kali linux上安装后,为什么Scans->New Scan->Policy Compliance Auditing里面找不到“Compliance”选项卡呀,去了官方论坛看了也没找到解决方案,希望大佬帮帮忙谢谢!

    1. 遇到同样问题,用8.x版本升级安装解决了,但是支持的audit插件非常少,不知道啥原因

  10. 根据以上脚本修改,可以在M1等ARM Mac上的Kali运行:
    即替换:https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-latest-debian10_amd64.deb
    为:https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-latest-ubuntu1804_aarch64.deb
    并将脚本中所有Nessus-latest-debian10_amd64.deb文件名替换为Nessus-latest-ubuntu1804_aarch64.deb
    ——-

    #!/bin/bash
    if [[ $(id -u) -ne 0 ]] ; then echo “请使用 root 用户运行” ; exit 1 ; fi
    echo //==============================================================
    echo Nessus 最新版本下载、安装和破解 -Zen 20230819
    echo 特别感谢 John Doe 在 Debian 上演示这一操作的有效性
    echo 感谢 369 提供关于 “latest” 的提示
    echo //==============================================================
    echo ” + 增加了防滑附加功能,移除所有 chattr 设置 20231013″
    chattr -i -R /opt/nessus
    echo ” + 确保我们有先决条件..”
    apt update &>/dev/null
    apt -y install curl dpkg expect &>/dev/null
    echo ” + 停止旧的 nessusd 服务,以防存在一个!”
    /bin/systemctl stop nessusd.service &>/dev/null
    echo ” + 下载 Nessus..”
    curl -A Mozilla –request GET \
    –url ‘https://www.tenable.com/downloads/api/v2/pages/nessus/files/Nessus-latest-ubuntu1804_aarch64.deb’ \
    –output ‘Nessus-latest-ubuntu1804_aarch64.deb’ &>/dev/null
    { if [ ! -f Nessus-latest-ubuntu1804_aarch64.deb ]; then
    echo ” + Nessus 下载失败 :/ 退出。从 t.me/pwn3rzs 获取拷贝”
    exit 0
    fi }
    echo ” + 安装 Nessus..”
    dpkg -i Nessus-latest-ubuntu1804_aarch64.deb &>/dev/null
    # 看,我试图只是进行更改和运行,但它不起作用。如果你能优化我的操作,让我知道。但对我来说,这是唯一需要运行的 :/
    echo ” + 第一次初始化时启动服务(必须执行)”
    /bin/systemctl start nessusd.service &>/dev/null
    echo ” + 让 Nessus 初始化,等待大约 20 秒…”
    sleep 20
    echo ” + 停止 nessus 服务..”
    /bin/systemctl stop nessusd.service &>/dev/null
    echo ” + 更改 nessus 设置为 Zen 偏好(自由战士模式)”
    echo ” 监听端口: 11127″
    /opt/nessus/sbin/nessuscli fix –set xmlrpc_listen_port=11127 &>/dev/null
    echo ” 主题: 暗色”
    /opt/nessus/sbin/nessuscli fix –set ui_theme=dark &>/dev/null
    echo ” 安全检查: 关闭”
    /opt/nessus/sbin/nessuscli fix –set safe_checks=false &>/dev/null
    echo ” 日志: 性能”
    /opt/nessus/sbin/nessuscli fix –set backend_log_level=performance &>/dev/null
    echo ” 更新: 关闭”
    /opt/nessus/sbin/nessuscli fix –set auto_update=false &>/dev/null
    /opt/nessus/sbin/nessuscli fix –set auto_update_ui=false &>/dev/null
    /opt/nessus/sbin/nessuscli fix –set disable_core_updates=true &>/dev/null
    echo ” 遥测: 关闭”
    /opt/nessus/sbin/nessuscli fix –set report_crashes=false &>/dev/null
    /opt/nessus/sbin/nessuscli fix –set send_telemetry=false &>/dev/null
    echo ” + 添加一个用户,稍后可以更改(用户名:admin, 密码:ddosi)”
    cat > expect.tmp</dev/null
    rm -rf expect.tmp &>/dev/null
    echo ” + 下载新的插件..”
    curl -A Mozilla -o all-2.0.tar.gz \
    –url ‘https://plugins.nessus.org/v2/nessus.php?f=all-2.0.tar.gz&u=4e2abfd83a40e2012ebf6537ade2f207&p=29a34e24fc12d3f5fdfbb1ae948972c6’ &>/dev/null
    { if [ ! -f all-2.0.tar.gz ]; then
    echo ” + 插件 all-2.0.tar.gz 下载失败 :/ 退出。从 t.me/pwn3rzs 获取拷贝”
    exit 0
    fi }
    echo ” + 安装插件..”
    /opt/nessus/sbin/nessuscli update all-2.0.tar.gz &>/dev/null
    echo ” + 获取版本号..”
    # 我曾经看到这个对于下载不正确。嗯,但对我来说它有效。
    vernum=$(curl https://plugins.nessus.org/v2/plugins.php 2> /dev/null)
    echo ” + 构建插件 feed…”
    cat > /opt/nessus/var/nessus/plugin_feed_info.inc </dev/null
    cp /opt/nessus/var/nessus/plugin_feed_info.inc /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
    echo ” + 设置所有文件为不可变…”
    chattr +i /opt/nessus/var/nessus/plugin_feed_info.inc &>/dev/null
    chattr +i -R /opt/nessus/lib/nessus/plugins &>/dev/null
    echo ” + 但是取消关键文件的不可变性..”
    chattr -i /opt/nessus/lib/nessus/plugins/plugin_feed_info.inc &>/dev/null
    chattr -i /opt/nessus/lib/nessus/plugins &>/dev/null
    echo ” + 启动服务..”
    /bin/systemctl start nessusd.service &>/dev/null
    echo ” + 再等待 20 秒以便服务器有足够的时间启动!”
    sleep 20
    echo ” + 监控 Nessus 进度。以下行每 10 秒更新一次直到 100%”
    zen=0
    while [ $zen -ne 100 ]
    do
    statline=`curl -sL -k https://localhost:11127/server/status|awk -F”,” -v k=”engine_status” ‘{ gsub(/{|}/,””); for(i=1;i<=NF;i++) { if ( $i ~ k ){printf $i} } }'`
    if [[ $statline != *"engine_status"* ]]; then echo -ne "\n 问题:Nessus 服务器无法访问?再次尝试..\n"; fi
    echo -ne "\r $statline"
    if [[ $statline == *"100"* ]]; then zen=100; else sleep 10; fi
    done
    echo -ne '\n o 完成!\n'
    echo
    echo " 访问 Nessus: https://localhost:11127/ (或您的 VPS IP)"
    echo " 用户名: admin"
    echo " 密码: ddosi"
    echo " 随时可以更改"
    echo
    read -p "按 Enter 键继续"

  11. 并且每次重启服务都会提示”插件正在编译,Nessus 功能将受到限制,直到编译完成”

Leave a Reply

您的电子邮箱地址不会被公开。 必填项已用 * 标注