Skip to content

Commit

Permalink
Land #18809, DNS command improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 authored Feb 14, 2024
2 parents a75013e + eca99e2 commit 1d406cf
Show file tree
Hide file tree
Showing 18 changed files with 1,485 additions and 481 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ GEM
metasm
rex-core
rex-text
rex-socket (0.1.55)
rex-socket (0.1.56)
rex-core
rex-sslscan (0.1.10)
rex-core
Expand Down
4 changes: 2 additions & 2 deletions lib/msf/core/exploit/remote/dns/enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def dns_get_ns(domain)
end

def dns_get_ptr(ip)
resp = dns_query(ip, nil)
resp = dns_query(ip, 'PTR')
return if resp.blank? || resp.answer.blank?

records = []
Expand Down Expand Up @@ -227,7 +227,7 @@ def dns_get_srv(domain)
srv_record_types.each do |srv_record_type|
srv_protos.each do |srv_proto|
srv_record = "_#{srv_record_type}._#{srv_proto}.#{domain}"
resp = dns_query(srv_record, Net::DNS::SRV)
resp = dns_query(srv_record, 'SRV')
next if resp.blank? || resp.answer.blank?
srv_record_data = []
resp.answer.each do |r|
Expand Down
Loading

0 comments on commit 1d406cf

Please sign in to comment.