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
|
::Timeout.timeout(to) do
|
||||||
res = connect
|
res = connect
|
||||||
# This makes db_services look a lot nicer.
|
# 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}")
|
print_status("#{ip}:#{rport} TELNET #{banner_santized}")
|
||||||
report_service(:host => rhost, :port => rport, :name => "telnet", :info => banner_santized)
|
report_service(:host => rhost, :port => rport, :name => "telnet", :info => banner_santized)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue