Villain is a high level stage 0/1 C2 framework that can handle multiple TCP socket & HoaxShell-based reverse shells, enhance their functionality with additional features (commands, utilities) and share them among connected sibling servers (Villain instances running on different machines).
These loops cause the python process to use 100% CPU while waiting for a response from clients. Adding a small delay to the loop fixes that.