Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/network/detect_ethereum_ens/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_ethereum_ens < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'ethereum_ens_resource', 'ui_label' => 'What Ethereum ENS image resource to request', 'value' => 'http://ens.eth/static/favicon-6305d6ce89910df001b94e8a31eb08f5.ico' },
10
# Alternatives:
11
# http://esteroids.eth/favicon.ico
12
# http://api3.eth/api3-logo-white.svg
13
# http://api3.eth/favicon.ico
14
{ 'name' => 'timeout', 'ui_label' => 'Detection timeout', 'value' => '15000' }
15
]
16
end
17
18
def post_execute
19
return if @datastore['result'].nil?
20
21
save({ 'result' => @datastore['result'] })
22
end
23
end
24
25