forked from Indigochile/SocialMediaChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SocialMediaChecker.py
112 lines (98 loc) · 3.81 KB
/
SocialMediaChecker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import requests
class ChecK():
def __init__(self):
self.email = str(input("Enter Email: "))
self.twitter()
def PrintT(self):
print(f"{self.email} = Linked"+"\n")
def PrintF(self):
print(f"{self.email} = Unlinked"+"\n")
def twitter(self):
print("==================")
print("[+] Twitter [+]")
print("")
r = requests.Session()
url = "https://api.twitter.com/i/users/email_available.json?email="+self.email
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36"
Host = "api.twitter.com"
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
r.headers = {'User-Agent': user_agent}
r.headers = {'Host': Host}
r.headers = {'Accept': Accept}
req = r.get(url).json()
text = str(req)
print(text)
print('')
if text.find("'valid': False") == True:
self.PrintT()
else:
self.PrintF()
self.instagram()
def instagram(self):
print("==================")
print("[+] Instagram [+]")
print("")
r = requests.Session()
url = "https://www.instagram.com/accounts/account_recovery_send_ajax/"
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36"
r.headers = {'user-agent': user_agent}
r.headers.update({'X-CSRFToken': "missing"})
data = {"email_or_username":self.email}
req = r.post(url,data=data)
print(req.text)
print('')
if req.text.find("We sent an self.email to")>=0:
self.PrintT()
elif req.text.find("password")>=0:
self.PrintT()
elif req.text.find("sent")>=0:
self.PrintT()
else:
self.PrintF()
self.snacphat()
def snacphat(self):
print("==================")
print("[+] Snapchat [+]")
print("")
r = requests.Session()
url = "https://accounts.snapchat.com/accounts/merlin/login" # this API doesn't work anymore , but i'll keep it for learning .
r.headers = {
'Host': 'accounts.snapchat.com',
'Accept': 'application/json, text/plain, */*',
'Accept-Encoding': 'gzip, deflate, br',
'X-XSRF-TOKEN': 'missing',
'Content-Type': 'application/json',
'Origin': 'https://accounts.snapchat.com',
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148',
'Connection':'keep-alive',
'Referer': 'https://accounts.snapchat.com/accounts/merlin/login'
}
cookies = {
'xsrf_token':'missing'
}
data = {
'email':self.email,
'app':'BITMOJI_APP'
}
req = r.post(url, cookies=cookies, json=data)
print(req.text) # If the response is blank, it means Unlinked .
print('')
if req.text.find("hasSnapchat") >= 0 :
self.PrintT()
else:
self.PrintF()
if __name__ == "__main__":
print("""
[-] SocialMediaChecker [-]
[ Twitter - Instagram - Snapchat ]
=======================================
[+] Programming By : Remax Alghamdi . |
[+] Instagram: @OQO . |
[+] Discord : Remax#6666 . |
[+] Github : Fah4d . |
=======================================
""")
ChecK()
print('')
print('Press enter to exit .')
input('')