bats3c / shad0w

A post exploitation framework designed to operate covertly on heavily monitored environments
https://blog.dylan.codes/shad0w/
MIT License
2.03k stars 323 forks source link

Make http server daemon thread to allow cleaner exit #40

Closed bblenard closed 4 years ago

bblenard commented 4 years ago

Currently the exit command kills the console thread however it doesn't successfully kill the http server thread. The system ends up getting stuck waiting for a lock and must be manually killed via SIGINT. This change spawns the http server thread as a daemon thread so the whole program can cleanly exit once there is only the daemon http thread left running.

References: https://docs.python.org/3/library/threading.html#thread-objects

Closes #39

bblenard commented 4 years ago

Tested starting shad0w and then exiting

exit_working

bats3c commented 4 years ago

nice