tenable / pyTenable

Python Library for interfacing into Tenable's platform APIs
https://pytenable.readthedocs.io
MIT License
354 stars 173 forks source link

nessus api error #840

Closed BeneficialCode closed 1 month ago

BeneficialCode commented 1 month ago

Describe the bug The nessus scans create api don't work correctly. It cannot create a scan.

To Reproduce Steps to reproduce the behavior:

nessus = Nessus(url=url,access_key=access_key, secret_key=secret_key)
resp = nessus.editor.template_list('scan')
print(resp)
uuid = resp[1]['uuid']
resp = nessus.scans.create(uuid=uuid,
                           settings = {
                            'name': 'test scan python',
                            'enabled': True,
                            'text_targets': '192.168.65.1',
                            'agent_group_id': []
                        })
print(resp)

Expected behavior nessus.scans.create's response is correct.

Bugs Requests Library Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) Requests Library Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

System Information (please complete the following information):

Additional context Version10.8.3 LINUX

SteveMcGrath commented 1 month ago

Please note that most Nessus installs will have this API disabled, which is likely the issue.