-
Notifications
You must be signed in to change notification settings - Fork 6
/
kick3d.py
42 lines (37 loc) · 1.22 KB
/
kick3d.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
import requests
import json
import sys
print("""
,_,_,_,_,_,_,_,_,_,_|______________________________________________________
|#|#|#|#|#|#|#|#|#|#|_____________________________________________________/
'-'-'-'-'-'-'-'-'-'-|----------------------------------------------------'
""")
def check_user(uid):
target = f"https://ws2.kik.com/user/{uid}"
r = requests.get(target)
if r.status_code == 200:
return r.json()
def main():
option = input("Do you want to check a username or userlist? ")
if option == "username":
uid = input("Enter the uid: ")
user = check_user(uid)
if user:
print(user)
else:
print("User not found")
elif option == "userlist":
userlist = input("Enter a userlist: ")
output = "valid.txt"
with open(userlist, 'r') as f:
for line in f:
uid = line.strip()
user = check_user(uid)
if user:
with open(output, "a") as v:
v.write(f"{user}\n")
print(f"Valid users were written to {output}")
else:
print ("Invalid option")
if __name__ == "__main__":
main()