Skip to content

Commit

Permalink
Tweak handling of the DnsNote option
Browse files Browse the repository at this point in the history
  • Loading branch information
smcintyre-r7 committed May 6, 2020
1 parent 316ce17 commit 157ff68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/msf/core/exploit/dns/enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(info = {})

register_advanced_options(
[
OptBool.new('DnsNote', [false, 'Save all DNS result into the notes (default: true)', true]),
OptBool.new('DnsNote', [false, 'Save all DNS results as notes', true]),
OptInt.new('DnsClientUdpTimeout', [true, 'Number of seconds to wait for a response to a UDP query', 8])
]
)
Expand Down Expand Up @@ -59,7 +59,6 @@ def dns_axfr(domain)
print_good("#{domain} Zone Transfer: #{zone}")
end
return if records.blank?
dns_note(domain, 'DNS AXFR recods', records) if datastore['DnsNote']
records
end

Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/gather/cloud_lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def initialize(info = {})
'References' => [
['URL', 'https://citadelo.com/en/blog/cloudflare-how-to-do-it-right-and-do-not-reveal-your-real-ip/']
],
'DefaultOptions' => { 'DnsNote' => false },
'License' => MSF_LICENSE,
'Actions' => [
['Automatic', {}],
Expand Down Expand Up @@ -117,8 +118,6 @@ def initialize(info = {})
OptString.new('USERAGENT', [true, 'Specify a personalized User-Agent header in HTTP requests', 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0']),
OptEnum.new('TAG', [true, 'Specify the HTML tag in which you want to find the fingerprint', 'title', ['title', 'html']]),
OptInt.new('HTTP_TIMEOUT', [true, 'HTTP(s) request timeout', 8]),
# DNS options
OptBool.new('DnsNote', [false, 'Save all DNS result into the notes (default: false)', false]),
])
end

Expand Down

0 comments on commit 157ff68

Please sign in to comment.