Path: blob/master/modules/social_engineering/tabnabbing/module.rb
1866 views
#1# Copyright (c) 2006-2026 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Tabnabbing < BeEF::Core::Command6def self.options7configuration = BeEF::Core::Configuration.instance8proto = configuration.get('beef.http.https.enable') == true ? 'https' : 'http'9uri = "#{proto}://#{configuration.get('beef.http.host')}:#{configuration.get('beef.http.port')}/demos/basic.html"10[11{ 'name' => 'url', 'description' => 'Redirect URL', 'ui_label' => 'URL', 'value' => uri, 'width' => '400px' },12{ 'name' => 'wait', 'description' => 'Wait (minutes)', 'ui_label' => 'Wait (minutes)', 'value' => '15', 'width' => '150px' }13]14end1516def post_execute17content = {}18content['tabnab'] = @datastore['tabnab']19save content20end21end222324