From fcb413bafb7b6af41c3e99b57ee9af5d84b0088a Mon Sep 17 00:00:00 2001 From: ElNiak Date: Thu, 13 Jun 2024 17:14:50 +0200 Subject: [PATCH] small update --- bounty_drive/attacks/dorks/google_dorking.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bounty_drive/attacks/dorks/google_dorking.py b/bounty_drive/attacks/dorks/google_dorking.py index a28f76b..b74390a 100644 --- a/bounty_drive/attacks/dorks/google_dorking.py +++ b/bounty_drive/attacks/dorks/google_dorking.py @@ -44,11 +44,11 @@ def google_search_with_proxy(dork_tuple, proxy, category, retries=3, advanced=Fa data = None GET, POST = True, False params = { - "client": "ubuntu-sn", - "channel": "fs", + # "client": "ubuntu-sn", + # "channel": "fs", "q": full_query, - # "num": TOTAL_OUTPUT, # Prevents multiple requests - # "hl": LANG, + "num": TOTAL_OUTPUT, # Prevents multiple requests + "hl": LANG, } urls = None @@ -112,11 +112,11 @@ def generate_dork_query(query, extension): query = query.replace(tag, "") # Ensure the query is properly enclosed in quotes if it contains quotes - if '"' in query: - if not query.startswith('"'): - query = '"' + query - if not query.endswith('"'): - query = query + '"' + # if '"' in query: + if not query.startswith('"'): + query = '"' + query + if not query.endswith('"'): + query = query + '"' in_url_query = "inurl:" + query in_text_query = "intext:" + query