Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/network/dns_enumeration/module.rb
1154 views
1
#
2
# Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
#
7
# DNS Enumeration
8
9
class Dns_enumeration < BeEF::Core::Command
10
def self.options
11
[
12
{ 'name' => 'dns_list', 'ui_label' => 'DNS (comma separated)', 'value' => '%default%' },
13
{ 'name' => 'timeout', 'ui_label' => 'Timeout (ms)', 'value' => '4000' }
14
]
15
end
16
17
def post_execute
18
content = {}
19
content['result'] = @datastore['result'] unless @datastore['result'].nil?
20
content['fail'] = 'No DNS hosts have been discovered.' if content.empty?
21
save content
22
end
23
end
24
25