Rapid7

module

Windows Shortcut (LNK) Padding

Disclosed
Jul 19, 2025
Created
Oct 1, 2025

Description

This module generates Windows LNK (shortcut) file that can execute
arbitrary commands. The LNK file uses environment variables and execute
its arguments from COMMAND_LINE_ARGUMENTS with extra juicy whitespace
character padding bytes and concatenates the actual payload.

Author

Nafiez

Platform

Windows

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 auxiliary/fileformat/datablock_padding_lnk
msf auxiliary(datablock_padding_lnk) > show actions
...actions...
msf auxiliary(datablock_padding_lnk) > set ACTION < action-name >
msf auxiliary(datablock_padding_lnk) > show options
...show and set options...
msf auxiliary(datablock_padding_lnk) > 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.