rapid7/metasploit-framework — pull request #3392 by TomSellers (2014-05-25 19:22:02+00:00)
Title: Improve Python stager support for Solaris

This PR addresses an issue where both Python stagers would fail to connect when run from Solaris 11.1 with Python 2.6.8. When the socket type was changed from '1' to the constant name 'socket.SOCK_STREAM' this issue was resolved. The change adds 17 characters to the pre-base64 encoded payload and 24 characters to the base64 encoded payload.

I have tested the post change versions of the payload with:

Linux / Python 2.7.5
OS X 10.8 / Python 2.6.1
Solaris 11.1 / Python 2.6.8
Windows 7 / Python 2.7.5.6 (ActiveState)

CC: @zeroSteiner