Banner encoding fix when running against dd-wrt on ruby 1.9.3

unstable
RageLtMan 2012-03-02 01:28:02 -05:00 committed by Tod Beardsley
parent 125aa43072
commit 77f95df1e9
1 changed files with 1 additions and 1 deletions

View File

@ -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