Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'dns_enum_over_tcp' of https://github.com/sempervictus/m…

…etasploit-framework into sempervictus-dns_enum_over_tcp
  • Loading branch information...
commit 10b733edf90ac507f545d169cbae486e68910f44 2 parents 5afdc23 + c68476c
@sinn3r sinn3r authored
View
5 modules/auxiliary/gather/enum_dns.rb
@@ -54,6 +54,7 @@ def initialize(info = {})
[
OptInt.new('RETRY', [ false, "Number of times to try to resolve a record if no response is received", 2]),
OptInt.new('RETRY_INTERVAL', [ false, "Number of seconds to wait before doing a retry", 2]),
+ OptBool.new('TCP_DNS', [false, "Run queries over TCP", false]),
], self.class)
end
@@ -468,6 +469,10 @@ def axfr(target, nssrv)
def run
@res = Net::DNS::Resolver.new()
+ if datastore['TCP_DNS']
+ vprint_good("Using DNS/TCP")
+ @res.use_tcp = true
+ end
@res.retry = datastore['RETRY'].to_i
@res.retry_interval = datastore['RETRY_INTERVAL'].to_i
@threadnum = datastore['THREADS'].to_i
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.