abhisharma404 / vault

swiss army knife for hackers
https://abhisharma404.github.io/vault
MIT License
513 stars 95 forks source link

Issue#94 handle sigint #98

Closed 4lovi4 closed 5 years ago

4lovi4 commented 5 years ago

Changes this pull request makes :

Ctrl+C handling applied

Checklist :

Development environment

OS: archlinux
Python Version: 3.7.3
4lovi4 commented 5 years ago

please print the sigint message as an error i.e use colors.error() for printing. Used the colors.error method. But still have issue with double sending SIGINT, cause can't find the way to stop all scanning threads properly after the first keyboard interruption. Seems the only way is refactor the scan functions where ThreadPoolExecutor is used.