From e1897912ccf06b649554695802e5af2eb6555a80 Mon Sep 17 00:00:00 2001 From: ekultek Date: Tue, 14 Nov 2017 12:55:03 -0600 Subject: [PATCH] parses the black list on multiple searches now as well, will prompt you or continue --- var/google_search/search.py | 4 ++++ zeus.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/var/google_search/search.py b/var/google_search/search.py index c292444..2d591f9 100644 --- a/var/google_search/search.py +++ b/var/google_search/search.py @@ -566,6 +566,7 @@ def search_multiple_pages(query, link_amount, verbose=False, **kwargs): proxy = kwargs.get("proxy", None) agent = kwargs.get("agent", None) xforward = kwargs.get("xforward", False) + batch = kwargs.get("batch", False) attrib, desc = "a", "href" retval = set() search_engine = AUTHORIZED_SEARCH_ENGINES["search-results"] @@ -574,6 +575,9 @@ def search_multiple_pages(query, link_amount, verbose=False, **kwargs): "searching multiple pages will not be done on Google...".format(search_engine), level=30 )) + if not parse_blacklist(query, BLACKLIST_FILE_PATH, batch=batch): + shutdown() + if not xforward: params = { "Connection": "close", diff --git a/zeus.py b/zeus.py index ce641a2..f981844 100755 --- a/zeus.py +++ b/zeus.py @@ -380,7 +380,8 @@ if __name__ == "__main__": try: search.search_multiple_pages( dork_to_use, link_amount_to_search, proxy=proxy_to_use, - agent=agent_to_use, verbose=opt.runInVerbose, xforward=opt.forwardedForRandomIP + agent=agent_to_use, verbose=opt.runInVerbose, + xforward=opt.forwardedForRandomIP, batch=opt.runInBatch ) except Exception as e: if "Error 400" in str(e):