You've already forked metasploit-payloads
mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-08-22 13:47:14 +02:00

Crashes were occuring when the underlying channel had no more output because the value of the `bytesRead` variable was not set to zero. Consumers of the function assumed that bytesRead was value if non-zero. POSIX would also hang when unsupported commands are executed, this commit changes this so that a response is returned when the command isn't supported.