Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/network/detect_tor/module.rb
1155 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_tor < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'tor_resource', 'ui_label' => 'What Tor resource to request', 'value' => 'http://xycpusearchon2mc.onion/deeplogo.jpg' },
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