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

Error #13

Closed
MrShadowDev opened this issue Feb 19, 2024 · 2 comments
Closed

Error #13

MrShadowDev opened this issue Feb 19, 2024 · 2 comments

Comments

@MrShadowDev
Copy link

It worked first after...
image

@alexnicco98
Copy link

You should update the file "AppData\Local\Programs\Python\Python312\Lib\site-packages\holehe\modules\programing\github.py" with:
`from holehe.core import *
from holehe.localuseragent import *
import re

async def github(email, client, out):
name = "github"
domain = "github.com"
method = "register"
frequent_rate_limit = False

freq = await client.get("https://github.com/join")
token_regex = re.compile(
    r'<auto-check src="/signup_check/username[\s\S]*?value="([\S]+)"[\s\S]*<auto-check src="/signup_check/email[\s\S]*?value="([\S]+)"'
)
token = token_regex.findall(freq.text)

if not token:
    out.append({
        "name": name,
        "domain": domain,
        "method": method,
        "frequent_rate_limit": frequent_rate_limit,
        "rateLimit": True,
        "exists": None,
        "emailrecovery": None,
        "phoneNumber": None,
        "others": None
    })
    return

data = {"value": email, "authenticity_token": token[0][0]}
req = await client.post("https://github.com/signup_check/email", data=data)

if "Your browser did something unexpected." in req.text:
    out.append({
        "name": name,
        "domain": domain,
        "method": method,
        "frequent_rate_limit": frequent_rate_limit,
        "rateLimit": True,
        "exists": None,
        "emailrecovery": None,
        "phoneNumber": None,
        "others": None
    })
elif req.status_code == 422:
    out.append({
        "name": name,
        "domain": domain,
        "method": method,
        "frequent_rate_limit": frequent_rate_limit,
        "rateLimit": False,
        "exists": True,
        "emailrecovery": None,
        "phoneNumber": None,
        "others": None
    })
elif req.status_code == 200:
    out.append({
        "name": name,
        "domain": domain,
        "method": method,
        "frequent_rate_limit": frequent_rate_limit,
        "rateLimit": False,
        "exists": False,
        "emailrecovery": None,
        "phoneNumber": None,
        "others": None
    })
else:
    out.append({
        "name": name,
        "domain": domain,
        "method": method,
        "frequent_rate_limit": frequent_rate_limit,
        "rateLimit": True,
        "exists": None,
        "emailrecovery": None,
        "phoneNumber": None,
        "others": None
    })`

@N0rz3
Copy link
Owner

N0rz3 commented Apr 14, 2024

With v2 of Zehef no more bugs to be reported (at least I think)

@N0rz3 N0rz3 closed this as completed Apr 14, 2024
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