When everything after 6 is commented, I have next error :
Traceback (most recent call last):
File "scans.py", line 60, in
nessus = NessusApi(cfg["username"],
cfg["password"],
endpoint=cfg["endpoint"],
accessKey=cfg["accesskey"],
secretKey=cfg["secretkey"]) File
/opt/splunk/etc/apps/TA-nessus/bin/nessus/__init__.py ,
line 31, in __init__
self.login(username, password) File
/opt/splunk/etc/apps/TA-nessus/bin/nessus/__init__.py ,
line 95, in login
self.API_TOKEN = r.json()["token"] KeyError: 'token'
As far as I understand, the flow reaches line 71 and then, goes strait to 76, as url is "session"
When I comment everything after 6 in line 71, the same error occurs
... View more