-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
68 lines (66 loc) · 2.04 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
67
68
import os
import eauth
from datetime import datetime
import platform
import time
import sys
# Init request
if (not eauth.init_request()):
print(eauth.error_message)
time.sleep(1.5)
sys.exit(0)
now = datetime.now()
my_system = platform.uname()
print("[+] initializing api")
time.sleep(0.5)
print("[+] attached to server")
time.sleep(1)
os.system('cls')
eauth.run_pause_command()
def main_f():
os.system('cls')
print("▒█▀▀▀ ░█▀▀█ ▒█░▒█ ▀▀█▀▀ ▒█░▒█ ")
print("▒█▀▀▀ ▒█▄▄█ ▒█░▒█ ░▒█░░ ▒█▀▀█ ")
print("▒█▄▄▄ ▒█░▒█ ░▀▄▄▀ ░▒█░░ ▒█░▒█")
print(" ")
print(" ")
print("[ 1 ] Login [ 2 ] Register")
print(" ")
current_time = now.strftime("%X")
print("[",current_time,"]",end=" ")
value = input("user@eauth:~$ ")
if value == "1":
os.system('cls')
username = input("Username: ")
password = input("Password: ")
if (eauth.login_request(username, password)):
os.system('cls')
print(eauth.logged_message)
print(" ")
print("Rank: " + eauth.rank)
print("Create Date: " + eauth.register_date)
print("Expire Date: " + eauth.expire_date)
print("Hardware ID: " + eauth.user_hwid)
else:
print(eauth.error_message)
time.sleep(3)
main_f()
elif value == "2":
os.system('cls')
username = input("Username: ")
password = input("Password: ")
invite = input("License Key: ")
if (eauth.register_request(username, password, invite)):
os.system('cls')
print(eauth.registered_message)
else:
print(eauth.error_message)
time.sleep(1.5)
main_f()
else:
os.system('cls')
print("Invalid input!")
time.sleep(1)
main_f()
main_f()
eauth.run_pause_command()