0xn1k5 / nessus_report_downloader Goto Github PK
View Code? Open in Web Editor NEWPython script for automating the download of nessus reports
License: GNU General Public License v3.0
Python script for automating the download of nessus reports
License: GNU General Public License v3.0
diff --git a/nessus_report_downloader.py b/nessus_report_downloader.py
index 26fddca..2158234 100755
--- a/nessus_report_downloader.py
+++ b/nessus_report_downloader.py
@@ -227,7 +227,7 @@ def downloadNessusReport(base_url, token, scan_id_list, json_user_data):
resp2 = sendGetRequest(url, headers=token_header)
# If nessus report is ready for download, then write the response in external file
- url= base_url + "/scans/exports/{0}/download".format(str(file_token["token"]))
+ url= base_url + "/tokens/{0}/download".format(str(file_token["token"]))
if json.loads(resp2.text)["status"] == "ready":
printMessage("Download link is available now", 1)
resp3 = sendGetRequest(url,headers=token_header)
Thought I'd share :)
Id only make one recommendation is to add some context to create files with timestamp at the end rather than random attribute.
Also maybe offer an option for token auth?
Hello there!
first of all thank you for sharing this script, is quite useful and clever.
I'm no expert in python but i was trying to modify it to have the option of download a customized report
something like this i was thinking:
if chapter == "6":
data.append({'format': 'html', 'chapters': ('vuln_hosts_summary','vuln_by_host','compliance','remediations','vulnerabilities')})
this didn't work so I was wondering if there was a simple way to do this
Thank you again for this neat code
Regards
Jorge Embid
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.