This script communicates with the Nessus API in an attempt to help with automating scans. Depending on the flag issued with the script, you can list all scans, list all policies, start, stop, pause, and resume a scan.
File "C:\Users\Jaspreet Singh Jhans\Downloads\AutoNessus-master\autoNessus.py", line 103
print e[ 'error' ]
^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
I try to run autonessus script but after scan perform 40% to 45% i get error about invalid credentials . it is error 401 request.
i try to trace back that time i got in get_scan_history function data['info'] get null value so it is show that error. so how i can solve that problem.
def get_scan_history(sid, hid): """ Scan history details Get the details of a particular run of a scan. """ params = {'history_id': hid} data = connect('GET', '/scans/{0}'.format(sid), params) return data['info']