Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/network/detect_opennic/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
class Detect_opennic < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'opennic_resource', 'ui_label' => 'What OpenNIC image resource to request', 'value' => 'http://be.libre/lang/flag/us.png' },
10
{ 'name' => 'timeout', 'ui_label' => 'Detection timeout', 'value' => '10000' }
11
]
12
end
13
14
def post_execute
15
return if @datastore['result'].nil?
16
17
save({ 'result' => @datastore['result'] })
18
end
19
end
20
21