From a4b6ae95a52cf4dc995f9a6d25cadd998e64f8e9 Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Tue, 8 Nov 2022 10:48:48 +0100 Subject: [PATCH] allow payloads to be saved with user ~ path expansion --- pupy/cli/pupygen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pupy/cli/pupygen.py b/pupy/cli/pupygen.py index 854b087c..ed706597 100755 --- a/pupy/cli/pupygen.py +++ b/pupy/cli/pupygen.py @@ -958,6 +958,7 @@ def pupygen(args, config, pupsrv, display): delete=False ) else: + outpath=os.path.expanduser(outpath) try: os.unlink(outpath) except OSError as e: