Permalink
Browse files

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

This reverts commit 89d5af7.

Telnet banner parsing restored
  • Loading branch information...
1 parent 68496d3 commit 909614569a37545cd824e7b993e095af33a7917b RageLtMan committed Jun 16, 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.unpack('C*').pack('U*'))
+ banner_santized = Rex::Text.to_hex_ascii(banner.to_s)
print_status("#{ip}:#{rport} TELNET #{banner_santized}")
report_service(:host => rhost, :port => rport, :name => "telnet", :info => banner_santized)
end

0 comments on commit 9096145

Please sign in to comment.