Permalink
Browse files

Use full path of user-specified directories

  • Loading branch information...
jgor committed Jan 29, 2018
1 parent 3569dad commit 9c7387a67e533d1a195feab1b2fadbcc9f671555
Showing with 5 additions and 5 deletions.
  1. +1 −1 indexers/google.py
  2. +2 −2 scanners/arachni.py
  3. +2 −2 scanners/wapiti.py
@@ -17,7 +17,7 @@ def run(options):
dorkbot_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir)
if "phantomjs_dir" in options:
phantomjs_path = os.path.join(os.path.normcase(options["phantomjs_dir"]), "bin")
phantomjs_path = os.path.join(os.path.abspath(options["phantomjs_dir"]), "bin")
elif os.path.isdir(os.path.join(dorkbot_dir, "tools", "phantomjs", "bin")):
phantomjs_path = os.path.join(dorkbot_dir, "tools", "phantomjs", "bin")
else:
@@ -10,7 +10,7 @@ def run(options, url):
dorkbot_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir)
if "arachni_dir" in options:
arachni_path = os.path.join(os.path.normcase(options["arachni_dir"]), "bin")
arachni_path = os.path.join(os.path.abspath(options["arachni_dir"]), "bin")
elif os.path.isdir(os.path.join(dorkbot_dir, "tools", "arachni", "bin")):
arachni_path = os.path.join(dorkbot_dir, "tools", "arachni", "bin")
else:
@@ -20,7 +20,7 @@ def run(options, url):
arachni_reporter_cmd = os.path.join(arachni_path, "arachni_reporter")
if "report_dir" in options:
report_dir = os.path.normcase(options["report_dir"])
report_dir = os.path.abspath(options["report_dir"])
else:
report_dir = os.path.join(dorkbot_dir, "reports")
@@ -10,7 +10,7 @@ def run(options, url):
dorkbot_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir)
if "wapiti_dir" in options:
wapiti_path = os.path.join(os.path.normcase(options["wapiti_dir"]), "bin")
wapiti_path = os.path.join(os.path.abspath(options["wapiti_dir"]), "bin")
elif os.path.isdir(os.path.join(dorkbot_dir, "tools", "wapiti", "bin")):
wapiti_path = os.path.join(dorkbot_dir, "tools", "wapiti", "bin")
else:
@@ -19,7 +19,7 @@ def run(options, url):
wapiti_cmd = os.path.join(wapiti_path, "wapiti")
if "report_dir" in options:
report_dir = os.path.normcase(options["report_dir"])
report_dir = os.path.abspath(options["report_dir"])
else:
report_dir = os.path.join(dorkbot_dir, "reports")

0 comments on commit 9c7387a

Please sign in to comment.