资 源 简 介
This project currently provides:
* methods/wrappers for interacting with a Nessus server (launching scans, downloading reports, etc.)
* parsing of .nessus (v2) files, including some real handy helper functions/methods
Documentation is limited at the moment (sorry!) but these should be pretty self-explanatory. Some quick examples...
```
# Connecting to a server
n = pynessus.NessusServer(server, port, user, password)
Launching a scan
n.launchscan(scanname, policyid, targetlist_iter)
Download report
n.downloadreport(reportuuid)
```
.nessus usage is pretty easy as well. Some examples...
```
# Parsing a report
rpt = dotnessus_v2.Report()
rpt.parse(reportfilename.nessus)
Iterating over targets, printing their names
for t in rpt.targets:
print t.name
Iterating over targets and their vulns
for t in rpt.targets:
for v in t.vulns:
print v.get("plugin_