mxrch / GHunt

πŸ•΅οΈβ€β™‚οΈ Offensive Google framework.
Other
15.65k stars 1.3k forks source link

TimeoutError: The read operation timed out #399

Closed ghost closed 1 year ago

ghost commented 1 year ago

Im trying to connect my account to GHunt but I get those exceptions after the Generating OSIDs:

πŸ”‘ A master token has been generated for your account and saved in the credentials file, please keep it safe as if it were your password, because it gives access to a 
lot of Google services, and with that, your personal information.
Master token services access : mail, cl, friendview, android, youtube, sierra, billing, talk, omaha, cloudconsole, uif, lh2, jotspot, mymaps
Generating OSIDs ...
Traceback (most recent call last):
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
    yield
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/backends/sync.py", line 28, in read
    return self._sock.recv(max_bytes)
  File "/usr/lib/python3.10/ssl.py", line 1259, in recv
    return self.read(buflen)
  File "/usr/lib/python3.10/ssl.py", line 1132, in read
    return self._sslobj.read(len)
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
    yield
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 218, in handle_request
    resp = self._pool.handle_request(req)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 253, in handle_request
    raise exc
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 237, in handle_request
    response = connection.handle_request(request)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 90, in handle_request
    return self._connection.handle_request(request)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_sync/http11.py", line 112, in handle_request
    raise exc
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_sync/http11.py", line 91, in handle_request
    ) = self._receive_response_headers(**kwargs)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_sync/http11.py", line 155, in _receive_response_headers
    event = self._receive_event(timeout=timeout)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_sync/http11.py", line 191, in _receive_event
    data = self._network_stream.read(
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/backends/sync.py", line 26, in read
    with map_exceptions(exc_map):
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc)
httpcore.ReadTimeout: The read operation timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/evilapuera/.local/bin/ghunt", line 8, in <module>
    sys.exit(main())
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/ghunt.py", line 15, in main
    parse_and_run()
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 31, in parse_and_run
    process_args(args)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 38, in process_args
    trio.run(login.check_and_login, None, args.clean)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/trio/_core/_run.py", line 1946, in run
    raise runner.main_task_outcome.error
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/modules/login.py", line 90, in check_and_login
    ghunt_creds.osids = await gen_osids(cookies, osids)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/helpers/auth.py", line 73, in gen_osids
    req = httpx.get(f"https://accounts.google.com/ServiceLogin?service={service}&osid=1&continue=https://{domain}/&followup=https://{domain}/&authuser=0",
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_api.py", line 189, in get
    return request(
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_api.py", line 100, in request
    return client.request(
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 821, in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 908, in send
    response = self._send_handling_auth(
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 936, in _send_handling_auth
    response = self._send_handling_redirects(
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 973, in _send_handling_redirects
    response = self._send_single_request(request)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_client.py", line 1009, in _send_single_request
    response = transport.handle_request(request)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 217, in handle_request
    with map_httpcore_exceptions():
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/evilapuera/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ReadTimeout: The read operation timed out
mxrch commented 1 year ago

Try it on a better network connection