-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmain.py
66 lines (58 loc) · 2.85 KB
/
main.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
import urllib.request, json
import colors
from datetime import datetime
import time
import random
import os
from fake_useragent import UserAgent
while True:
chars = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"
tokenKey =""
user_agent = UserAgent().random
ip = ".".join(map(str, (random.randint(0, 255) for _ in range(4))))
url = "*****************************************************************************"
b = "********="
c = str(random.randint(**, **))
d = "********"
a = input(colors.yellow('tc kimlik?(çıkış q bas):'))
for token in range(**):
tokenKey += random.choice(chars)
if a == "q":
print(colors.red("çıkılıyor..."))
break
if len(a) == 11:
print("bekle..", a)
print(colors.red("#"*60))
url = urllib.request.urlopen(url + a + b + c + d)
data = json.load(url)
url2 = os.popen("""curl --silent -X POST \
https://*****************************************************************************\
-H 'accept: application/json, text/javascript, */*; q=0.01' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json; charset=UTF-8' \
-H 'dnt: 1' \
-H 'origin: h***************************************************************************** \
-H 'user-agent: %s' \
-H 'x-requested-with: ****' \
-d '*****************************************************************************'""" % (user_agent,a,ip,***)).read()
url2_json = json.loads(url2)
url3 = os.popen('''curl --silent -XPOST ' + a + "'" + """*****************************************************************************""").read()
url3_json = json.loads(url3)
timestamp = str(url3_json["dogum_tarih"])
print(colors.cyan('ad: '+ data["results"]["**"]))
print(colors.cyan('tc: ' + str(data["results"]["**"])))
print(colors.cyan('aile sıra no: ' + str(data["results"]["**"])))
print(colors.cyan('cilt no: ' + str(data["results"]["**"])))
print(colors.cyan('sıra no: ' + str(data["results"]["**"])))
print(colors.cyan('dogum yılı: ' + str(data["results"]["**"])))
print(colors.cyan('cinsiyet: ' + str(data["results"]["**"])))
print(colors.cyan('adres: ' + url2_json["adres"]))
print(colors.cyan('*adres2: ' + str(url3_json["yildizli_adres"])))
print(colors.cyan('*baba adı: ' + str(url3_json["baba"])))
print(colors.cyan('dogum yeri: ' + str(url3_json["dogumyeri"])))
print(colors.cyan('meslek: ' + str(url3_json["neci"])))
print(colors.cyan('medeni durumu: ' + str(url3_json["medeni"])))
print(colors.cyan('dogum tarih, saat: ' + time.ctime(int(str(timestamp[:-3])))))
print(colors.red("#"*60))
else:
print(colors.red("yanlış giriyorsun!..."))