Identifier / Programs / Windows
nmcap.exe
LOLBAS Reconnaissance 1 ATT&CK technique 1 documented command
How nmcap.exe is abused
Each abuse is LOLBAS's category and the options and words it uses; the full write-up is on LOLBAS's page for nmcap.exe.
1 documented command
Reconnaissance T1040 Network Sniffing Administrator privileges
Start capture on all network adapters and save to specified .cap (circular) file. Optionally, one can add:
/TerminateWhen /TimeAfter 30 secondsto auto-terminate after a relative times (e.g. 30 seconds);/TerminateWhen /Time 04:52:00 AM 9/17/2025to auto-terminate after a specific date/time;/TerminateWhen /KeyPress xto terminate when a specific key is pressed.
nmcap.exe /network * /capture /file {PATH_ABSOLUTE:.cap}IdentifyThe command the identifier reads trips no Sigma process-creation rule. These commands and their descriptions are from LOLBAS’s entry for nmcap.exe, by Avihay Eldad, at commit 2056cb766250 of 2026-09-26, under the GPL-3.0 and LOLBAS’s notice, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on LOLBAS’s page for nmcap.exe. The identifier reads it with LOLBAS’s placeholders filled in: a URL as https://example.com/file, a share as \\192.0.2.10\share\file, a path as C:\Data\file and a command as calc.exe.