diff --git a/lib/attacks/admin_panel_finder/__init__.py b/lib/attacks/admin_panel_finder/__init__.py index 2beb11a..f5c02bc 100644 --- a/lib/attacks/admin_panel_finder/__init__.py +++ b/lib/attacks/admin_panel_finder/__init__.py @@ -1,5 +1,5 @@ import os -import threading +import multiprocessing try: # Python 2 from urllib.request import urlopen @@ -131,7 +131,7 @@ def __load_extensions(filename="{}/etc/link_ext.txt"): return ext.readlines() -def main(url, show=False, verbose=False, do_threading=False, threads=10): +def main(url, show=False, verbose=False, do_threading=False, proc_num=3): logger.info(set_color( "parsing robots.txt..." )) @@ -152,18 +152,19 @@ def main(url, show=False, verbose=False, do_threading=False, threads=10): "attempting to bruteforce admin panel..." )) if do_threading: - if verbose: - logger.debug(set_color( - "starting {} threads...".format(threads), level=10 - )) - for _ in range(0, threads): - t = threading.Thread(target=check_for_admin_page, args=(url, extensions), kwargs={ + logger.warning(set_color( + "starting parallel processing with {} processes, this " + "will depend on your GPU speed...".format(proc_num), level=30 + )) + tasks = [] + for _ in range(0, proc_num): + p = multiprocessing.Process(target=check_for_admin_page, args=(url, extensions), kwargs={ "show_possibles": show, "verbose": verbose - }) - t.daemon = True - t.start() - t.join() + p.start() + tasks.append(p) + for proc in tasks: + proc.join() else: check_for_admin_page(url, extensions, show_possibles=show, verbose=verbose) \ No newline at end of file diff --git a/lib/core/settings.py b/lib/core/settings.py index d3275f6..97da9b3 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -22,7 +22,7 @@ except NameError: # clone link CLONE = "https://github.com/ekultek/zeus-scanner.git" # current version -VERSION = "1.0.39" +VERSION = "1.0.40.9d4b" # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} # version string formatting diff --git a/zeus.py b/zeus.py index 8c99fc7..ab16921 100755 --- a/zeus.py +++ b/zeus.py @@ -99,7 +99,7 @@ if __name__ == "__main__": attacks.add_option("--tamper", dest="tamperXssPayloads", metavar="TAMPER-SCRIPT", help="Send the XSS payloads through tampering before sending to the target") attacks.add_option("--thread", dest="threadPanels", action="store_true", - help="Thread the admin panel finder, will start 10 threads") + help=optparse.SUPPRESS_HELP) attacks.add_option("--auto", dest="autoStartSqlmap", action="store_true", help=optparse.SUPPRESS_HELP)