From babababeb1f75c5bfd17510f0d8ea392459f595c Mon Sep 17 00:00:00 2001 From: sinn3r Date: Fri, 4 May 2012 13:23:27 -0500 Subject: [PATCH] 1. Fix enum_dns: .txt is not (or no longer a method) 2. Patch snmp_enum: bug #6500 --- modules/auxiliary/gather/enum_dns.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/auxiliary/gather/enum_dns.rb b/modules/auxiliary/gather/enum_dns.rb index 9cca3b78a8..8d70d2a412 100644 --- a/modules/auxiliary/gather/enum_dns.rb +++ b/modules/auxiliary/gather/enum_dns.rb @@ -157,13 +157,14 @@ class Metasploit3 < Msf::Auxiliary query = @res.query(target, "TXT") if (query) query.answer.each do |rr| - print_status("Text: #{rr.txt}, TXT") + print_status(rr.inspect) + print_status("Text: #{rr.inspect}") report_note(:host => @nsinuse.to_s, :proto => 'udp', :sname => 'dns', :port => 53 , :type => 'dns.enum', - :data => "#{rr.txt},TXT") + :data => rr.inspect) end end end @@ -434,13 +435,13 @@ class Metasploit3 < Msf::Auxiliary :type => 'dns.enum', :data => "#{rr.nsdname},NS") when "TXT" - print_status("Text: #{rr.txt} Record: TXT") + print_status("Text: #{rr.inspect}") report_note(:host => nsip.address.to_s, :proto => 'udp', :sname => 'dns', :port => 53 , :type => 'dns.enum', - :data => "#{rr.txt},TXT") + :data => rr.inspect) when "SRV" print_status("Host: #{rr.host} Port: #{rr.port} Priority: #{rr.priority} Record: SRV") report_note(:host => nsip.address.to_s,