summaryrefslogtreecommitdiffstats
path: root/tools/sploit/sploit/comm.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/sploit/sploit/comm.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py
index 0b5bc2a..0e80051 100644
--- a/tools/sploit/sploit/comm.py
+++ b/tools/sploit/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)