Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed python reverse shell ssl send for EOF occurred in violation of … #6897
Fixes "ssl.SSLEOFError: EOF occurred in violation of protocol" when trying to upgrade a python/shell_reverse_tcp_ssl payload.
Updated "send" function to "sendall" - Unlike send(), this method continues to send data from string until either all data has been sent or an error occurs.
Tested meterpreter upgrade of shell and normal shell commands.
So fun fact about this error is that I'm able to reproduce it reliably by simply trying to interact with the shell on my system. That is to say that without even trying to upgrade the shell to a meterpreter session as outlined in the description, it is dying with the following error:
Python version 2.7.11 on Linux x64
Was able to confirm that this addresses the EOF error and there are no apparent version restrictions on Pythons