GTFOBins.github.io/_gtfobins/grep.md

18 lines
457 B
Markdown
Raw Normal View History

2018-10-03 09:57:51 +02:00
---
description: |
There are many `grep` flavors that in many cases are just copies, symlinks or wrappers around the original binary that may share the same behavior, for example: `egrep`, `fgrep`, `zgrep`, etc.
2018-10-03 09:57:51 +02:00
functions:
file-read:
- code: |
LFILE=file_to_read
grep '' $LFILE
2018-10-05 19:55:38 +02:00
suid:
2018-10-03 09:57:51 +02:00
- code: |
LFILE=file_to_read
./grep '' $LFILE
2018-10-05 19:55:38 +02:00
sudo:
2018-10-03 09:57:51 +02:00
- code: |
LFILE=file_to_read
sudo grep '' $LFILE
---