sundowndev / phoneinfoga

Information gathering framework for phone numbers
https://sundowndev.github.io/phoneinfoga/
GNU General Public License v3.0
12.81k stars 3.57k forks source link

Google API: The request did not specify any referer #133

Closed jankooistra closed 4 years ago

jankooistra commented 4 years ago

Hi,

I am on debian 10 and i installed it via source code. The tool is working but everytime i try to use additional format i get this error message: File "phoneinfoga.py", line 95, in main() File "phoneinfoga.py", line 71, in main scanNumber(args.number) File "phoneinfoga.py", line 38, in scanNumber osintScan(number) File "/opt/osint/telefoonosint/PhoneInfoga/scanners/footprints.py", line 173, in osintScan for result in search(req, stop=10): File "/opt/osint/telefoonosint/PhoneInfoga/lib/googlesearch.py", line 35, in search browser = webdriver.Firefox() File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in init keep_alive=True) File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in init self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: invalid argument: can't kill an exited process

I have also tried it with and without the google api keys. If i use the api keys it gives me a timeout message:

[i] ---- Web pages footprints ---- [i] Searching for footprints on web pages... (limit=10) [!] Error while fetching Google search API. Maybe usage limit ? Please verify your keys. {'errors': [{'domain': 'usageLimits', 'reason': 'ipRefererBlocked', 'message': 'The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.', 'extendedHelp': 'https://console.developers.google.com/apis/credentials?project=1047912640571'}], 'code': 403, 'message': 'The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.'} Continue scanning ? (y/N) y [i] Searching for documents... (limit=10) [!] Error while fetching Google search API. Maybe usage limit ? Please verify your keys. {'errors': [{'domain': 'usageLimits', 'reason': 'ipRefererBlocked', 'message': 'The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.', 'extendedHelp': 'https://console.developers.google.com/apis/credentials?project=1047912640571'}], 'code': 403, 'message': 'The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.'} Continue scanning ? (y/N) n [i] Good bye!

Can anyone help me. The tool is great for basic number enumeration, but i like the all the features, seeing as there's no other tool like this one (at least not that i could find).

interbiznw commented 4 years ago

getting this same error

sundowndev commented 4 years ago

This is an error with Google API usage. Removing all restrictions on the key should gets rid of the error. Can you try and tell me ?

sundowndev commented 4 years ago

Closing due to inactivity. Feel free to reopen and add further details!