forked from Initius1337/Auth.GG-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.py
127 lines (117 loc) · 4.69 KB
/
Program.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
from AuthGG import *
###########################################
# #
# #
# github.com/robert169 #
# #
# discord: roberth#0310 #
# #
# telegram: @roberth832 #
# #
# #
###########################################
AuthGG.Initialize("AID", "PROGRAM SECRET", "API KEY", "VERSION")
if not AuthGG.is_initialized:
print("[!] Please initialize your application first!"),
time.sleep(3),
os._exit(0)
def Logo():
return (
print(" "),
print(" █████╗ ██╗ ██╗████████╗██╗ ██╗ ██████╗ ██████╗ "),
print(" ██╔══██╗██║ ██║╚══██╔══╝██║ ██║ ██╔════╝ ██╔════╝ "),
print(" ███████║██║ ██║ ██║ ███████║ ██║ ███╗██║ ███╗"),
print(" ██╔══██║██║ ██║ ██║ ██╔══██║ ██║ ██║██║ ██║"),
print(" ██║ ██║╚██████╔╝ ██║ ██║ ██║██╗╚██████╔╝╚██████╔╝"),
print(" ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═════╝ "),
print(" ")
)
def Title(text):
return os.system("title {}".format(text))
def Clear():
return os.system('cls' if os.name == 'nt' else 'clear')
def main_menu():
Title("AuthGG Example")
Clear()
Logo()
print("[1] Register")
print("[2] Login")
print("[3] All in one")
print("[4] Extend Subscription")
print()
print("[>] ", end="")
option = str(input())
if option == "1":
if not AuthGG.can_register:
print("[!] Register is not enabled, please try again later!")
time.sleep(3)
os._exit(0)
else:
Clear()
Logo()
print("[>] Username: ", end='')
username = str(input())
print()
print("[>] Password: ", end='')
password = str(input())
print()
print("[>] Email: ", end='')
email = str(input())
print()
print("[>] License: ", end='')
license = str(input())
print()
if AuthGG.Register(username, password, email, license):
print("[!] You have successfully registered!")
time.sleep(3)
os._exit(0)
elif option == "2":
if not AuthGG.can_login:
print("[!] Login is not enabled, please try again later!")
time.sleep(3)
os._exit(0)
else:
Clear()
Logo()
print("[>] Username: ", end='')
username = str(input())
print()
print("[>] Password: ", end='')
password = str(input())
print()
if AuthGG.Login(username, password):
print("[!] You have successfully logged in!")
time.sleep(3)
os._exit(0)
elif option == "3":
Clear()
Logo()
print("[>] Key: ", end='')
key = str(input())
print()
if AuthGG.AIO(key):
print("[!] Welcome back to my application!")
time.sleep(3)
os._exit(0)
else:
print("[!] Your key does not exist!")
time.sleep(3)
os._exit(0)
elif option == "4":
Clear()
Logo()
print("[>] Username: ", end='')
username = str(input())
print()
print("[>] Password: ", end='')
password = str(input())
print()
print("[>] License: ", end='')
license = str(input())
print()
if AuthGG.ExtendSubscription(username, password, license):
print("[!] You have successfully extended your subscription!")
time.sleep(3)
os._exit(0)
if __name__ == "__main__":
main_menu()