Catalog LOLBAS

LOL · Binary

Forfiles.exe

2 techniques WindowsLOLBAS GPL-3.0

Execute

Execution Windows

Executes specified command since there is a match for notepad.exe in the c:\windows\System32 folder.

Use Use forfiles to start a new process to evade defensive counter measures

forfiles /p c:\windows\system32 /m notepad.exe /c "{CMD}"
Context
user
Native
Execute
MITRE
T1202

ADS

Defense EvasionFile Write Windows

Executes the evil.exe Alternate Data Stream (AD) since there is a match for notepad.exe in the c:\windows\system32 folder.

Use Use forfiles to start a new process from a binary hidden in an alternate data stream

forfiles /p c:\windows\system32 /m notepad.exe /c "{PATH_ABSOLUTE}:evil.exe"
Context
user
Native
ADS