Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/phillips_dns_hijack/module.rb
1875 views
1
#
2
# Copyright (c) 2006-2026 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
class Philips_dns_hijack < BeEF::Core::Command
6
def self.options
7
[
8
{ 'name' => 'rhost', 'ui_label' => 'Remote Host', 'value' => '192.168.1.1' },
9
{ 'name' => 'dns1', 'ui_label' => 'Primary DNS Server', 'value' => '8.8.8.8' },
10
{ 'name' => 'dns2', 'ui_label' => 'Secondary DNS Server', 'value' => '8.8.4.4' }
11
]
12
end
13
14
def post_execute
15
save({ 'result' => @datastore['result'] })
16
end
17
end
18
19