diff --git a/.gitignore b/.gitignore index 678c350..78dd485 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -log/* +log/ geckodriver.log *.pyc -.idea/* -bin/* \ No newline at end of file +.idea/ +bin/ \ No newline at end of file diff --git a/bin/__init__.py b/bin/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/bin/executed b/bin/executed deleted file mode 100644 index 5a03bd3..0000000 --- a/bin/executed +++ /dev/null @@ -1 +0,0 @@ -FALSE \ No newline at end of file diff --git a/bin/geckodriver-v0.18.0-linux32.tar.gz b/bin/geckodriver-v0.18.0-linux32.tar.gz deleted file mode 100644 index 063e5a2..0000000 Binary files a/bin/geckodriver-v0.18.0-linux32.tar.gz and /dev/null differ diff --git a/bin/geckodriver-v0.18.0-linux64.tar.gz b/bin/geckodriver-v0.18.0-linux64.tar.gz deleted file mode 100644 index 0f08ad6..0000000 Binary files a/bin/geckodriver-v0.18.0-linux64.tar.gz and /dev/null differ diff --git a/bin/unzip_gecko.py b/bin/unzip_gecko.py deleted file mode 100644 index d0caaf1..0000000 --- a/bin/unzip_gecko.py +++ /dev/null @@ -1,84 +0,0 @@ -import os -import platform -import tarfile - -import whichcraft - -import lib.settings - - -def check_if_run(file_check="{}/bin/executed"): - """ - check if the application has been run before by reading the executed file - """ - with open(file_check.format(os.getcwd())) as exc: - if "FALSE" in exc.read(): - return True - return False - - -def untar_gecko(filename="{}/bin/geckodriver-v0.18.0-linux{}.tar.gz", verbose=False): - """ - untar the correct gecko driver for your computer architecture - """ - arch_info = {"64bit": "64", "32bit": "32"} - file_arch = arch_info[platform.architecture()[0]] - tar = tarfile.open(filename.format(os.getcwd(), file_arch), "r:gz") - if verbose: - lib.settings.logger.debug(lib.settings.set_color( - "extracting the correct driver for your architecture...", level=10 - )) - try: - tar.extractall("/usr/bin") - if verbose: - lib.settings.logger.debug(lib.settings.set_color( - "driver extracted into /usr/bin (you may change this, but ensure that it " - "is in your PATH)...", level=10 - )) - except Exception as e: - if "[Errno 13] Permission denied: '/usr/bin/geckodriver'" in str(e): - lib.settings.logger.exception(lib.settings.set_color( - "first run must be ran as root (sudo python zeus.py)...", level=50 - )) - else: - lib.settings.logger.exception(lib.settings.set_color( - "ran into exception '{}', logged to current log file...".format(e), level=50 - )) - exit(-1) - tar.close() - - -def ensure_placed(item="geckodriver", verbose=False): - """ - use whichcraft to ensure that the driver has been placed in your PATH variable - """ - if verbose: - lib.settings.logger.debug(lib.settings.set_color( - "ensuring that the driver exists in your system path...", level=10 - )) - if not whichcraft.which(item): - lib.settings.logger.fatal(lib.settings.set_color( - "the executable '{}' does not appear to be in your /usr/bin PATH. " - "please untar the correct geckodriver (if not already done) and move " - "it to /usr/bin.".format(item), level=50 - )) - exit(-1) - else: - if verbose: - lib.settings.logger.debug(lib.settings.set_color( - "driver exists, continuing...", level=10 - )) - return True - - -def main(rewrite="{}/bin/executed", verbose=False): - """ - main method - """ - if check_if_run(): - untar_gecko(verbose=verbose) - if ensure_placed(verbose=verbose): - with open(rewrite.format(os.getcwd()), "w") as rw: - rw.write("TRUE") - else: - pass diff --git a/zeus.py b/zeus.py index 0612653..6f1259e 100644 --- a/zeus.py +++ b/zeus.py @@ -43,7 +43,7 @@ if __name__ == "__main__": "These arguments will give you the choice on how you want to check the websites") attacks.add_option("-s", "--sqli", dest="runSqliScan", action="store_true", help="Run a Sqlmap SQLi scan on the discovered URL's") - attacks.add_option("-p", "--port-nmap_scan", dest="runPortScan", action="store_true", + attacks.add_option("-p", "--port-scan", dest="runPortScan", action="store_true", help="Run a Nmap port scan on the discovered URL's") # search engine options