From de62400730067e6d6aa5efdcfff8be4ea8574750 Mon Sep 17 00:00:00 2001 From: Austin Taylor Date: Sat, 30 Dec 2017 14:39:59 -0500 Subject: [PATCH] Update to write path logic --- vulnwhisp/vulnwhisp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vulnwhisp/vulnwhisp.py b/vulnwhisp/vulnwhisp.py index 33ba514..f6ddfcf 100755 --- a/vulnwhisp/vulnwhisp.py +++ b/vulnwhisp/vulnwhisp.py @@ -127,7 +127,10 @@ class vulnWhispererBase(object): def path_check(self, _data): if self.write_path: - data = self.write_path + '/' + _data + if '/' or '\\' in _data[-1]: + data = self.write_path + _data + else: + data = self.write_path + '/' + _data return data def record_insert(self, record):