Permalink
Browse files

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

  • Loading branch information...
1 parent 2d069f8 commit 89d5af7ab2fe1ce31cd70561893d94bb73f3762c RageLtMan committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/auxiliary/scanner/telnet/telnet_version.rb
@@ -42,7 +42,7 @@ def run_host(ip)
::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

0 comments on commit 89d5af7

Please sign in to comment.