Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/tabnabbing/module.rb
1866 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
#
6
class Tabnabbing < BeEF::Core::Command
7
def self.options
8
configuration = BeEF::Core::Configuration.instance
9
proto = configuration.get('beef.http.https.enable') == true ? 'https' : 'http'
10
uri = "#{proto}://#{configuration.get('beef.http.host')}:#{configuration.get('beef.http.port')}/demos/basic.html"
11
[
12
{ 'name' => 'url', 'description' => 'Redirect URL', 'ui_label' => 'URL', 'value' => uri, 'width' => '400px' },
13
{ 'name' => 'wait', 'description' => 'Wait (minutes)', 'ui_label' => 'Wait (minutes)', 'value' => '15', 'width' => '150px' }
14
]
15
end
16
17
def post_execute
18
content = {}
19
content['tabnab'] = @datastore['tabnab']
20
save content
21
end
22
end
23
24