metasploit-framework/lib/msf/core/handler
James Lee d0650dfb25 Put a bandaid over getsockname
Depending on how a socket was created, #getsockname will return either a
struct sockaddr as a String (the default ruby Socket behavior) or an
Array (the extend'd Rex::Socket::Tcp behavior). Avoid the ambiguity when
generating SSL certificates for meterpreter handlers by always picking a
random hostname.

This is by no means a proper fix for the underlying problem of
Socket#getsockname having ambiguous behavior before and after being
extended with Rex::Socket::Tcp. It does, however, solve the immediate
problem of not being able to create tunneled meterpreter sessions over
http(s) sessions.

[SeeRM #7350]
2012-10-29 22:45:46 -05:00
..
bind_tcp.rb Put a bandaid over getsockname 2012-10-29 22:45:46 -05:00
bind_tcp.rb.ut.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
find_port.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
find_shell.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
find_tag.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
find_tty.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
none.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
reverse_http.rb Refactor reverse_*http(s) handlers 2012-08-03 13:27:40 -06:00
reverse_https.rb Add in missing require 2012-08-25 15:43:32 -04:00
reverse_ipv6_http.rb Refactor reverse_*http(s) handlers 2012-08-03 13:27:40 -06:00
reverse_ipv6_https.rb Fix load order issue 2012-08-23 10:54:23 -05:00
reverse_tcp.rb allow reverse tcp with proxies 2012-07-09 23:05:09 +02:00
reverse_tcp.rb.ut.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
reverse_tcp_allports.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
reverse_tcp_double.rb allow reverse tcp with proxies 2012-07-09 23:05:09 +02:00