GHunt icon indicating copy to clipboard operation
GHunt copied to clipboard

Timeout Error

Open Venomish-Snake opened this issue 3 years ago • 7 comments

Hi All, I've just tried to configure the check_and_gen.py with all correct cookies etc. The google account is signed in on chrome, and all values have been entered correctly. I've adjusted the timeout accordingly, yet still face the same issue. All requirements are installed and i have tried using python 3.7.x, 3.8.x.

Would anyone know what the issue is?

Thanks image

Venomish-Snake avatar Jun 29 '21 01:06 Venomish-Snake

same issue as @Venomish-Snake

thebigelf1 avatar Jun 29 '21 16:06 thebigelf1

same issue as @Venomish-Snake

I've read somewhere that a 'fix' is using python 3.7.2 or 3.8.3. I've tried both versions and it did not work :/

Venomish-Snake avatar Jun 30 '21 05:06 Venomish-Snake

The problem is here :

def get_internal_tokens(driver, cookies, tmprinter):
    """ Extract the mysterious token used for Internal People API
        and some Drive requests, with the Authorization header"""

    global internal_auth, internal_token

    internal_auth = ""

    tmprinter.out("Setting cookies...")
    driver.get("https://drive.google.com/robots.txt")
    for k, v in cookies.items():
        driver.add_cookie({'name': k, 'value': v})

    start = time()

    tmprinter.out("Fetching Drive homepage...")
    driver.request_interceptor = drive_interceptor
    driver.get("https://drive.google.com/drive/my-drive")

    body = driver.page_source
    internal_token = body.split("appsitemsuggest-pa")[1].split(",")[3].strip('"')

    tmprinter.out(f"Waiting for the authorization header, it "
                    "can takes a few minutes...")

    while True:
        if internal_auth and internal_token:
            tmprinter.clear()
            break
        elif time() - start > config.browser_waiting_timeout:
            tmprinter.clear()
            exit("[-] Timeout while fetching the Internal tokens.\nPlease increase the timeout in config.py or try again.")

    del driver.request_interceptor

    return internal_auth, internal_token

The variable internal_auth get set to "" (empty) and then ends up in an infinite loop that only ends if internal_auth is not empty. Ghunt is now broken...

Senator3223 avatar Jul 12 '21 11:07 Senator3223

Same timeout error, both with python 3.7 and 3.8 versions.

Tyrell20 avatar Sep 13 '21 11:09 Tyrell20

Up @mxrch

pierrebrtr avatar Oct 05 '21 08:10 pierrebrtr

I had same timeout issue while trying through the git cloned package , but when i tried using Docker, it worked without any problem.

kevin0t avatar Nov 17 '21 08:11 kevin0t

I'm getting the same issue with and without docker

aruso avatar Jan 03 '22 15:01 aruso