Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

READTIMEOUT in STH fails #59

Closed
bee-san opened this issue Feb 27, 2021 · 1 comment
Closed

READTIMEOUT in STH fails #59

bee-san opened this issue Feb 27, 2021 · 1 comment

Comments

@bee-san
Copy link
Member

bee-san commented Feb 27, 2021

config = {'api': True, 'api_keys': {'STH': None}, 'greppable': True, 'hashcat': False, ...}

    def crack(config):
        to_del = []
        url = "https://av5b81zg3k.execute-api.us-east-2.amazonaws.com/prod/lookup"
        payload = json.dumps({"Hash": list(config["hashes"].keys())})
        headers = {"Content-Type": "application/json"}
    
        try:
            response = requests.request(
                "GET", url, headers=headers, data=payload, timeout=config["timeout"]
            )
>       except ReadTimeout:
E       NameError: name 'ReadTimeout' is not defined

search_that_hash/cracker/sth_mod/sth.py:23: NameError

Also, set it to 3 seconds -- 2 seconds seems to be breaking it :)

@SkeletalDemise
Copy link
Contributor

This is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants