Path: blob/master/modules/network/dns_enumeration/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5#6# DNS Enumeration78class Dns_enumeration < BeEF::Core::Command9def self.options10[11{ 'name' => 'dns_list', 'ui_label' => 'DNS (comma separated)', 'value' => '%default%' },12{ 'name' => 'timeout', 'ui_label' => 'Timeout (ms)', 'value' => '4000' }13]14end1516def post_execute17content = {}18content['result'] = @datastore['result'] unless @datastore['result'].nil?19content['fail'] = 'No DNS hosts have been discovered.' if content.empty?20save content21end22end232425