d0650dfb25
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] |
||
---|---|---|
.. | ||
meterpreter | ||
dir.rb | ||
file.rb | ||
file_stat.rb | ||
gen.pl | ||
io.rb | ||
meterpreter.rb | ||
permission.rb | ||
process.rb | ||
thread.rb | ||
ui.rb |