Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Windows Drive Formatter

Disclosed
N/A
Created
May 30, 2018

Description

This payload formats all mounted disks in Windows (aka ShellcodeOfDeath).

After formatting, this payload sets the volume label to the string specified in
the VOLUMELABEL option. If the code is unable to access a drive for any reason,
it skips the drive and proceeds to the next volume.

Authors

Ashfaq Ansari [email protected]
Ruei-Min Jiang [email protected]

Platform

Windows

Architectures

x86

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use payload/windows/format_all_drives
msf payload(format_all_drives) > show actions
...actions...
msf payload(format_all_drives) > set ACTION < action-name >
msf payload(format_all_drives) > show options
...show and set options...
msf payload(format_all_drives) > run

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.