From 2441cc83bf73eaddf66fd848061a41a2dc210446 Mon Sep 17 00:00:00 2001 From: dw1 Date: Tue, 30 Jun 2020 18:02:46 +0700 Subject: [PATCH 1/2] :beetle: Fixes cannot find config file due to symbolic/soft link. --- smuggler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 smuggler.py diff --git a/smuggler.py b/smuggler.py old mode 100644 new mode 100755 index 186f999..ddff87a --- a/smuggler.py +++ b/smuggler.py @@ -131,7 +131,7 @@ class Desyncr(): return if (self._configfile[1] != '/'): - self._configfile = os.path.dirname(os.path.abspath(__file__)) + "/configs/" + self._configfile + self._configfile = os.path.dirname(os.path.realpath(__file__)) + "/configs/" + self._configfile try: f = open(self._configfile) @@ -224,7 +224,7 @@ class Desyncr(): _me = os.readlink(sys.argv[0]) else: _me = sys.argv[0] - fname = os.path.abspath(os.path.dirname(_me)) + "/payloads/%s_%s_%s.txt" % (furl,ptype,name) + fname = os.path.realpath(os.path.dirname(_me)) + "/payloads/%s_%s_%s.txt" % (furl,ptype,name) pretty_print("CRITICAL", "%s Payload: %s URL: %s\n" % \ (Fore.MAGENTA+ptype, Fore.CYAN+fname+Fore.MAGENTA, Fore.CYAN+self._url)) with open(fname, 'wb') as file: From b11fa1e143338465c31c1a53127279ff15692556 Mon Sep 17 00:00:00 2001 From: dw1 Date: Tue, 30 Jun 2020 18:29:42 +0700 Subject: [PATCH 2/2] :pencil: Ignoring payload results --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4f5c915..883987f 100644 --- a/.gitignore +++ b/.gitignore @@ -148,4 +148,7 @@ dmypy.json .pytype/ # Cython debug symbols -cython_debug/ \ No newline at end of file +cython_debug/ + +# Smuggler results +payloads/*.txt \ No newline at end of file