From e28b6e48f99f6e08be85b097d1dc5be237361f63 Mon Sep 17 00:00:00 2001 From: Arthur Beck Date: Tue, 4 Jul 2023 18:02:48 -0500 Subject: [PATCH 1/2] Fixed various things that could cause problems --- ddom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ddom.py b/ddom.py index 3a3e8a6..e1e027c 100644 --- a/ddom.py +++ b/ddom.py @@ -64,7 +64,7 @@ def confirmation(question, default="no"): return valid[data] if data == "": validInputEntered = True - return default + return valid[default] @@ -218,7 +218,7 @@ def google(export_bool=False, output_bool=False): print("[*] Google - NOTE: Do not control Firefox while it is running!") browser = webdriver.Firefox() for i in dorks.keys(): # for every dork in dictionary - if i == "Pony": # for Pony is more than one dork + if instanceof(i,list): # for Pony is more than one dork for j in dorks[i]: browser.get('http://www.google.com/search?q=' + j + "&t=h_&ia=web") links = browser.find_elements_by_xpath("//h3//a[@href]") @@ -300,7 +300,7 @@ def download_file(address, dldagent={'User-Agent': "Chromium"}, try: # Check if URL start with "http:// - if address[:7] != "http://": + if address[:7] != "http://" and address[:8] != "https://": address = "http://" + address # Construct URL and set timeout From f26755143b36ea72b05137be645da2525cb6aefd Mon Sep 17 00:00:00 2001 From: Arthur Beck Date: Sat, 8 Jul 2023 08:36:26 -0500 Subject: [PATCH 2/2] Fix a problem I caused --- ddom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddom.py b/ddom.py index e1e027c..3514d25 100644 --- a/ddom.py +++ b/ddom.py @@ -218,7 +218,7 @@ def google(export_bool=False, output_bool=False): print("[*] Google - NOTE: Do not control Firefox while it is running!") browser = webdriver.Firefox() for i in dorks.keys(): # for every dork in dictionary - if instanceof(i,list): # for Pony is more than one dork + if instanceof(dorks[i],list): # for Pony is more than one dork for j in dorks[i]: browser.get('http://www.google.com/search?q=' + j + "&t=h_&ia=web") links = browser.find_elements_by_xpath("//h3//a[@href]")