opsdisk / pagodo

pagodo (Passive Google Dork) - Automate Google Hacking Database scraping and searching
GNU General Public License v3.0
2.77k stars 493 forks source link

Failed to resolve 'myproxy' #87

Closed UriZafrir closed 9 months ago

UriZafrir commented 11 months ago

Hi all, on mac m1, Upon running this command:

python pagodo.py -d example.com -g dorks/all_google_dorks.txt -p http://myproxy:8080,socks5h://127.0.0.1:9050,socks5h://127.0.0.1:9051 -s pagodo-results.txt

this is the error: 2023-10-13 07:41:12,032 [MainThread ] [INFO] Initiation timestamp: 2023-10-13T07:41:12.032601 2023-10-13 07:41:12,032 [MainThread ] [INFO] Search ( 1 / 7752 ) for Google dork [ site:ovo.id intitle:"Ganglia" "Cluster Report for" ] using User-Agent 'Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6' through proxy 'http://myproxy:8080' 2023-10-13 07:41:12,032 [MainThread ] [INFO] Requesting URL: https://www.google.com/ 2023-10-13 07:41:12,041 [MainThread ] [ERROR] Error with dork: intitle:"Ganglia" "Cluster Report for". Exception HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x1032380d0>: Failed to resolve 'myproxy' ([Errno 8] nodename nor servname provided, or not known)"))) 2023-10-13 07:41:12,041 [MainThread ] [INFO] Sleeping 49.8 seconds before executing the next dork search...

I've made sure the requests[sock] is installed: pip install 'requests[socks]' Requirement already satisfied: requests[socks] in ./.venv/lib/python3.11/site-packages (2.31.0) Requirement already satisfied: charset-normalizer<4,>=2 in ./.venv/lib/python3.11/site-packages (from requests[socks]) (3.3.0) Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.11/site-packages (from requests[socks]) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in ./.venv/lib/python3.11/site-packages (from requests[socks]) (2.0.6) Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.11/site-packages (from requests[socks]) (2023.7.22) Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in ./.venv/lib/python3.11/site-packages (from requests[socks]) (1.7.1)

https://stackoverflow.com/questions/69152016/cant-send-requests-through-socks5-proxy-with-python

please help.

opsdisk commented 11 months ago

Hi @UriZafrir is http://myproxy:8080 the actual DNS name of your proxy? Does myproxy locally DNS resolve to a valid IP? Looks like you just copy/pasted from the example. If you aren't using any proxies just remove the -p switch arguments.

UriZafrir commented 11 months ago

Hi thanks for the reply. I did just copy paste it so I guess I just don't know how to use it with a proxy... should I create one? if so how? couldn't find it in the readme.

opsdisk commented 11 months ago

Using a proxy is optional. Creating and configuring one is out of the scope of the project. I do provide this book for free (https://github.com/opsdisk/the_cyber_plumbers_handbook) which covers SOCKS5 proxies using SSH. I'll keep this ticket open for a few more days if you have any other questions.

opsdisk commented 9 months ago

Any updates on this @UriZafrir ?

UriZafrir commented 9 months ago

I have not more questions thank you very much.