gremwell / pynessus

Client for the Nessus vulnerability scanner REST API.
Other
13 stars 6 forks source link

skanner.py: fails silently if policy not found #4

Closed abbbe closed 9 years ago

abbbe commented 9 years ago

To reproduce

abb@e6510x:~/dvp/pynessus/scripts$ python skanner.py -c nessus.conf -i localhost -n test201411240745 -p "nonexistent" abb@e6510x:~/dvp/pynessus/scripts$ echo $? 0

Instead, the scanner should die (throw an exception for example) and return non-zero exit code.

abbbe commented 9 years ago

Well, I've found it logs the error in the log file. Perhaps errors (and more critical problems) should be always echoed to sys.stderr too. Not sure how to address exit-code issue in a consistent way.