hhucn / webvulnscan

automated web application vulnerability scanner
MIT License
38 stars 27 forks source link

Handle SIGPIPE #32

Closed phihag closed 11 years ago

phihag commented 11 years ago

When somebody parses the output of webvulnscan and has read enough (for example because only one line is necessary, see #31), Python by default crashes with an unsightly

<long traceback>
IOError: [Errno 32] Broken pipe

Instead, webvulnscan should simply exit; that's the default action for the signal anyway. To test, try

python -m webvulnscan http://localhost:8666/ -v | head -n 1