1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-16 17:01:38 +02:00
GTFOBins.github.io/_gtfobins/grep.md

18 lines
457 B
Markdown
Raw Permalink 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
---