Skip to content

Commit 66bc7a3

Browse files
committed
Land rapid7#15047, Correct DNS PTR record crash
2 parents 90f225a + d20285b commit 66bc7a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/remote/dns/enumeration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def dns_get_ptr(ip)
189189
records = []
190190
resp.answer.each do |r|
191191
next unless r.class == Dnsruby::RR::IN::PTR
192-
records << r.ptr.to_s
193-
print_good("#{ip}: PTR: #{r.ptr} ")
192+
records << r.rdata.to_s
193+
print_good("#{ip}: PTR: #{r.rdata} ")
194194
end
195195
return if records.blank?
196196
dns_note(ip, 'DNS PTR records', records) if datastore['DnsNote']

0 commit comments

Comments
 (0)