rapid7/metasploit-framework — pull request #711 by sempervictus (2012-08-21 06:22:46+00:00)
Title: This commit adds reverse SSL handler and payloads

Handlers added: reverse_tcp_ssl reverse_double_tcp_ssl
Cleartext reverse shells (unix): bash telnet, php, python
SSL reverse shells (unix): bash telnet, perl, php, python,
ruby, openssl s_client double and telnet -z double.

This pull request replaces the prior (broken git-side) pull req
and adds the openssl s_client reverse shell method. The shells
have been tested for a while now, with the cleanest being
python_ssl and perl_ssl. Until a mac meterpreter is built, this
may be the safest way to operate a reverse shell on OSX machines.

TODO:
Corresponding bind shells should also be built along with windows
equivalents if Meterpreter is somehow unavailable.
Out of band Meterpreters (PHP, Java) can use SSL sockets.
Socat testing and modification (channelization etc).