LOLBAS/OSBinaries/Forfiles.md

33 lines
624 B
Markdown
Raw Normal View History

2018-04-18 13:41:44 +00:00
## Forfiles.exe
2018-04-18 16:33:16 +00:00
* Functions: Execute, Read ADS
2018-04-18 13:41:44 +00:00
```
2018-04-19 00:06:48 +00:00
forfiles /p c:\windows\system32 /m notepad.exe /c calc.exe
2018-04-18 16:33:16 +00:00
forfiles /p c:\windows\system32 /m notepad.exe /c "c:\folder\normal.dll:evil.exe"
2018-04-18 13:41:44 +00:00
```
Acknowledgements:
* Eric - @vector_sec
2018-04-18 16:33:16 +00:00
* Oddvar Moe - @oddvarmoe
Code sample:
*
Resources:
* https://twitter.com/vector_sec/status/896049052642533376
* https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
* https://oddvar.moe/2018/01/14/putting-data-in-alternate-data-streams-and-how-to-execute-it/
Full path:
```
C:\Windows\system32\forfiles.exe
C:\Windows\sysWOW64\forfiles.exe
```
Notes: