利用 Nessus API 在 Nessus Professional 中管理扫描结果的 PowerShell 脚本。
注意:此脚本仅适用于 Powershell 6/7。
此脚本根据扫描名称或 ID 导出并下载 Nessus 扫描。
本文中的操作基于 Nessus Professional API https://developer.tenable.com/reference/navigate
此脚本仅与 Powershell 6/7 兼容。
您可以在此处下载并安装 Powershell 7 https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4
# 将文件复制到计算机git clone https://github.com/Johnng007/Nessus-Pro-API# Execution.NessusAPI.ps1 <parameters>
# 使用扫描导出并下载 Name.NessusAPI.ps1 -Name NameofScan# 使用扫描 ID 导出并下载.NessusAPI.ps1 -ID IDNumber# 以某种格式导出并下载.NessusAPI.ps1 -Name NameofScan -Format htmlNB: 格式可以be(nessus,csv,html,pdf)#指定服务器URL.NessusAPI.ps1 -Name NameofScan -Format html -Server https://localhost:8834NB:默认为 https://localhost:8834
您可以使用扫描名称或扫描 ID,但不能同时使用两者。
在脚本执行时,会进行检查以确定正在使用的 powershell 版本,如果低于 6,则会提示用户自动下载并安装 powershell 7。
如果没有指定格式参数,则默认为 html。
如果未指定服务器参数,则默认为 https://localhost:8834 。
服务器参数也接受 Nessus Cloud URL https://cloud.tenable.com
想要查看其他黑寡妇工具吗?
Forensicator - 实时取证和事件响应脚本。 https://github.com/Johnng007/Live-Forensicator
Anteater - 一个基于 python 的网络侦察工具。 https://github.com/Johnng007/Anteater
v1.0 10/01/2024 初始版本。