Banner encoding fix when running against dd-wrt on ruby 1.9.3
parent
125aa43072
commit
77f95df1e9
|
@ -42,7 +42,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
::Timeout.timeout(to) do
|
||||
res = connect
|
||||
# This makes db_services look a lot nicer.
|
||||
banner_santized = Rex::Text.to_hex_ascii(banner.to_s)
|
||||
banner_santized = Rex::Text.to_hex_ascii(banner.to_s.unpack('C*').pack('U*'))
|
||||
print_status("#{ip}:#{rport} TELNET #{banner_santized}")
|
||||
report_service(:host => rhost, :port => rport, :name => "telnet", :info => banner_santized)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue