Land #10364, Handle nil for shell_reverse_tcp_ipv6

This makes things like `msfvenom --list-options` or `info` when options
are not set work.
4.x
Adam Cammack 2018-07-23 14:02:14 -05:00 committed by Metasploit
parent 28bb518dbd
commit 6a5a19faca
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def generate_stage
# ipv6 address conversion # ipv6 address conversion
# converts user's input into ipv6 hex representation # converts user's input into ipv6 hex representation
words = IPAddr.new(datastore['LHOST']).hton.scan(/..../).map {|i| i.unpack('V').first.to_s(16)} words = IPAddr.new(datastore['LHOST'], Socket::AF_INET6).hton.scan(/..../).map {|i| i.unpack('V').first.to_s(16)}
payload_data =<<-EOS payload_data =<<-EOS
xor ebx,ebx xor ebx,ebx
mul ebx mul ebx