Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
ElNiak committed Jun 13, 2024
1 parent 3c7960a commit fcb413b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bounty_drive/attacks/dorks/google_dorking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fcb413b

Please sign in to comment.