metasploit-framework/lib/rex/post
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
..
meterpreter Put a bandaid over getsockname 2012-10-29 22:45:46 -05:00
dir.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
file.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
file_stat.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
gen.pl Reverting the autoload changes until we can upgrade to a new ActiveSupport library or find a workaround 2011-05-12 20:03:55 +00:00
io.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
meterpreter.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
permission.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
process.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
thread.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
ui.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00