mirror of
https://github.com/defparam/smuggler
synced 2024-11-23 17:34:02 +00:00
🪲 Fixes cannot find config file due to symbolic/soft link.
This commit is contained in:
parent
2d6930e1bc
commit
2441cc83bf
4
smuggler.py
Normal file → Executable file
4
smuggler.py
Normal file → Executable file
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user