From affe57a4ed9658a91fb38e7f03235584cd210b2c Mon Sep 17 00:00:00 2001 From: dusoleil Date: Tue, 31 Aug 2021 20:10:10 -0400 Subject: Use Entire Path When Given The Pipe Directory Previously, you could specify a directory which must exist under /tmp. Now, you can give the full path to a directory to be used by Pipes. Signed-off-by: dusoleil --- sploit/comm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sploit/comm.py') diff --git a/sploit/comm.py b/sploit/comm.py index 0b5bc2a..0e80051 100644 --- a/sploit/comm.py +++ b/sploit/comm.py @@ -111,7 +111,9 @@ class Pipes: self.dir = tempfile.TemporaryDirectory() dirname = self.dir.name else: - dirname = os.path.join("/tmp",tmp) + if(not os.path.exists(tmp)): + os.mkdir(tmp) + dirname = tmp self.pathin = os.path.join(dirname,"in") self.pathout = os.path.join(dirname,"out") os.mkfifo(self.pathin) -- cgit v1.2.3