- forked from https://github.com/DanMcInerney/pymetasploit3/tree/9776da55b0abacfa843a32204f3972ec7d9b3de7 (licensed under MIT)
- several changes made to stabilize the connection