1
+ ApplicationKey = "" #required
2
+ AccountKey = "" #required
3
+
4
+ import os
5
+ import subprocess
6
+ import requests
7
+ import os
8
+ from os import system
9
+ import time
10
+ import hashlib
11
+ e_hwid = str (subprocess .check_output (
12
+ 'wmic csproduct get uuid' )).split ('\\ r\\ n' )[1 ].strip ('\\ r' ).strip ()
13
+ eauth_sens = ('https://eauth.000webhostapp.com/api/' , ApplicationKey , AccountKey )
14
+ def wahid (altashfir ):
15
+ altashfir = altashfir .replace ("0" , "-QZ-" )
16
+ altashfir = altashfir .replace ("1" , "-SA-" )
17
+ altashfir = altashfir .replace ("2" , "-IF-" )
18
+ altashfir = altashfir .replace ("3" , "DE-" )
19
+ altashfir = altashfir .replace ("4" , "-EE-" )
20
+ altashfir = altashfir .replace ("5" , "-JJ-" )
21
+ altashfir = altashfir .replace ("6" , "-GG-" )
22
+ altashfir = altashfir .replace ("7" , "MP-" )
23
+ altashfir = altashfir .replace ("8" , "-WI-" )
24
+ altashfir = altashfir .replace ("9" , "-ZF-" )
25
+ altashfir = altashfir .replace ("a" , "-XC-" )
26
+ altashfir = altashfir .replace ("b" , "-YU-" )
27
+ altashfir = altashfir .replace ("c" , "-OL-" )
28
+ altashfir = altashfir .replace ("d" , "MV-" )
29
+ altashfir = altashfir .replace ("e" , "-RS-" )
30
+ altashfir = altashfir .replace ("f" , "-EV-" )
31
+ altashfir = altashfir .replace ("g" , "-WZ-" )
32
+ altashfir = altashfir .replace ("h" , "DP-" )
33
+ altashfir = altashfir .replace ("i" , "-IJ-" )
34
+ altashfir = altashfir .replace ("j" , "-KN-" )
35
+ altashfir = altashfir .replace ("k" , "-CA-" )
36
+ altashfir = altashfir .replace ("l" , "-TW-" )
37
+ altashfir = altashfir .replace ("m" , "-BI-" )
38
+ altashfir = altashfir .replace ("n" , "-JH-" )
39
+ altashfir = altashfir .replace ("o" , "-MW-" )
40
+ altashfir = altashfir .replace ("p" , "-IS-" )
41
+ altashfir = altashfir .replace ("q" , "-LA-" )
42
+ altashfir = altashfir .replace ("r" , "-ME-" )
43
+ altashfir = altashfir .replace ("s" , "-EP-" )
44
+ altashfir = altashfir .replace ("t" , "-ON-" )
45
+ altashfir = altashfir .replace ("u" , "-WK-" )
46
+ altashfir = altashfir .replace ("v" , "-NB-" )
47
+ altashfir = altashfir .replace ("w" , "-BA-" )
48
+ altashfir = altashfir .replace ("x" , "-RE-" )
49
+ altashfir = altashfir .replace ("y" , "-IN-" )
50
+ altashfir = altashfir .replace ("z" , "-LU-" )
51
+ return altashfir
52
+ def aithnayn (tabadal ):
53
+ tabadal = tabadal .replace ("-QZ-" , "0" )
54
+ tabadal = tabadal .replace ("-SA-" , "1" )
55
+ tabadal = tabadal .replace ("-IF-" , "2" )
56
+ tabadal = tabadal .replace ("DE-" , "3" )
57
+ tabadal = tabadal .replace ("-EE-" , "4" )
58
+ tabadal = tabadal .replace ("-JJ-" , "5" )
59
+ tabadal = tabadal .replace ("-GG-" , "6" )
60
+ tabadal = tabadal .replace ("MP-" , "7" )
61
+ tabadal = tabadal .replace ("-WI-" , "8" )
62
+ tabadal = tabadal .replace ("-ZF-" , "9" )
63
+ tabadal = tabadal .replace ("-XC-" , "a" )
64
+ tabadal = tabadal .replace ("-YU-" , "b" )
65
+ tabadal = tabadal .replace ("-OL-" , "c" )
66
+ tabadal = tabadal .replace ("MV-" , "d" )
67
+ tabadal = tabadal .replace ("-RS-" , "e" )
68
+ tabadal = tabadal .replace ("-EV-" , "f" )
69
+ tabadal = tabadal .replace ("-WZ-" , "g" )
70
+ tabadal = tabadal .replace ("DP-" , "h" )
71
+ tabadal = tabadal .replace ("-IJ-" , "i" )
72
+ tabadal = tabadal .replace ("-KN-" , "j" )
73
+ tabadal = tabadal .replace ("-CA-" , "k" )
74
+ tabadal = tabadal .replace ("-TW-" , "l" )
75
+ tabadal = tabadal .replace ("-BI-" , "m" )
76
+ tabadal = tabadal .replace ("-JH-" , "n" )
77
+ tabadal = tabadal .replace ("-MW-" , "o" )
78
+ tabadal = tabadal .replace ("-IS-" , "p" )
79
+ tabadal = tabadal .replace ("-LA-" , "q" )
80
+ tabadal = tabadal .replace ("-ME-" , "r" )
81
+ tabadal = tabadal .replace ("-EP-" , "s" )
82
+ tabadal = tabadal .replace ("-ON-" , "t" )
83
+ tabadal = tabadal .replace ("-WK-" , "u" )
84
+ tabadal = tabadal .replace ("-NB-" , "v" )
85
+ tabadal = tabadal .replace ("-BA-" , "w" )
86
+ tabadal = tabadal .replace ("-RE-" , "x" )
87
+ tabadal = tabadal .replace ("-IN-" , "y" )
88
+ tabadal = tabadal .replace ("-LU-" , "z" )
89
+ return tabadal
90
+ try :
91
+ initrq = requests .post (eauth_sens [0 ], data = {'s0rt' : wahid ('init' ), '111110' : wahid (eauth_sens [1 ]), '001011' : wahid (eauth_sens [2 ]), '011001' : wahid (e_hwid )})
92
+ if aithnayn (initrq .text ) == "incorrect_application_details" :
93
+ os .system ('cls' )
94
+ print ("Incorrect application details!" )
95
+ time .sleep (1 )
96
+ exit ()
97
+ elif aithnayn (initrq .text ) == "banned_user" :
98
+ exit ()
99
+ elif aithnayn (initrq .text ) == "down" :
100
+ os .system ('cls' )
101
+ print ("Eauth is down at the moment, come back later!" )
102
+ time .sleep (1 )
103
+ exit ()
104
+ elif initrq .text == "" :
105
+ os .system ('cls' )
106
+ print ("Oops, something went wrong!" )
107
+ time .sleep (1 )
108
+ exit ()
109
+ else :
110
+ responser = initrq .json ()
111
+ for app_json_encode in responser :
112
+ Status = aithnayn (app_json_encode [aithnayn ('STATUS' )])
113
+ ApplicationName = aithnayn (app_json_encode [aithnayn ('APPNAME' )])
114
+ Loggedmessage = aithnayn ( app_json_encode [aithnayn ('LOGGED' )])
115
+ Registeredmessage = aithnayn (app_json_encode [aithnayn ('REGISTERED' )])
116
+ Pausedmessage = aithnayn (app_json_encode [aithnayn ('PAUSED' )])
117
+ system ("title " + ApplicationName )
118
+ if Status == "0" :
119
+ os .system ('cls' )
120
+ print (Pausedmessage )
121
+ time .sleep (2 )
122
+ exit ()
123
+ except :
124
+ exit ()
125
+
126
+ class User_Info :
127
+ Username = ""
128
+ Rank = ""
129
+ CreateDate = ""
130
+ ExpireDate = ""
131
+ HardwareID = e_hwid
132
+
133
+ ins = User_Info ()
134
+
135
+ def tashfir (tajzia ):
136
+ e_c = \
137
+ hashlib .sha512 (tajzia .encode ()).hexdigest ()
138
+ return e_c
139
+
140
+ def signin (username ,password ):
141
+ try :
142
+ passrq = tashfir (password )
143
+ loginrq = requests .post (eauth_sens [0 ], data = {'s0rt' : wahid ('l0gin' ), 'username' : wahid (username ), 'passw0rd' : wahid (passrq ), 'hwid' : wahid (e_hwid ),'appkey' : wahid (eauth_sens [1 ]),'acckey' : wahid (eauth_sens [2 ])})
144
+ if aithnayn (loginrq .text ) == "incorrect_login_details" :
145
+ os .system ('cls' )
146
+ print ("Incorrect login details!" )
147
+ time .sleep (2 )
148
+ exit ()
149
+ if aithnayn (loginrq .text ) == "incorrect_user_details" :
150
+ os .system ('cls' )
151
+ print ("Incorrect login details!" )
152
+ time .sleep (2 )
153
+ exit ()
154
+ elif aithnayn (loginrq .text ) == "hwid_does_not_match" :
155
+ os .system ('cls' )
156
+ print ("Hwid doesn't match!" )
157
+ time .sleep (2 )
158
+ exit ()
159
+ elif aithnayn (loginrq .text ) == "subscription_has_expired" :
160
+ os .system ('cls' )
161
+ print ("Your subscription has expired!" )
162
+ time .sleep (2 )
163
+ exit ()
164
+ else :
165
+ responser = loginrq .json ()
166
+ for user_json_encode in responser :
167
+ ins .Username = aithnayn (user_json_encode [aithnayn ('NAME' )])
168
+ ins .Rank = aithnayn (user_json_encode [aithnayn ('RANKUSER' )])
169
+ ins .CreateDate = aithnayn (user_json_encode [aithnayn ('CREATEDATE' )])
170
+ ins .ExpireDate = aithnayn (user_json_encode [aithnayn ('EXPIREDATE' )])
171
+ except :
172
+ exit ()
173
+
174
+ def signup (username ,password ,invite ):
175
+ try :
176
+ passrq = tashfir (password )
177
+ registerrq = requests .post (eauth_sens [0 ], data = {'s0rt' : wahid ('register' ), 'username' : wahid (username ), 'passw0rd' : wahid (passrq ),'invite' : wahid (invite ), 'hwid' : wahid (e_hwid ),'appkey' : wahid (eauth_sens [1 ]),'acckey' : wahid (eauth_sens [2 ])})
178
+ if aithnayn (registerrq .text ) == "name_already_used" :
179
+ os .system ('cls' )
180
+ print ("Name already used!" )
181
+ time .sleep (2 )
182
+ exit ()
183
+ if aithnayn (registerrq .text ) == "incorrect_register_details" :
184
+ os .system ('cls' )
185
+ print ("Incorrect register details!" )
186
+ time .sleep (2 )
187
+ exit ()
188
+ elif aithnayn (registerrq .text ) == "key_not_found" :
189
+ os .system ('cls' )
190
+ print ("Key not found!" )
191
+ time .sleep (2 )
192
+ exit ()
193
+ elif aithnayn (registerrq .text ) == "maximum_users" :
194
+ os .system ('cls' )
195
+ print ("The Application reached maximum users, it's time for an upgrade!" )
196
+ time .sleep (2 )
197
+ exit ()
198
+ except :
199
+ exit ()
0 commit comments