|
1 | 1 | from keyauth import api |
2 | | - |
3 | 2 | import os |
4 | 3 | import sys |
5 | 4 | import os.path |
6 | 5 | import platform |
| 6 | +from time import sleep |
7 | 7 | from datetime import datetime |
8 | 8 |
|
9 | 9 | # watch setup video if you need help https://www.youtube.com/watch?v=L2eAQOmuUiA |
10 | | - |
11 | | -keyauthapp = api("app name here", "owner id here", "app secret here","1.0") |
12 | | - |
| 10 | +os.system("cls") |
| 11 | +os.system("title Python Example") |
13 | 12 | print("Initializing") |
14 | | -keyauthapp.init() |
15 | | - |
| 13 | +keyauthapp = api( |
| 14 | + name = "", |
| 15 | + ownerid = "", |
| 16 | + secret = "", |
| 17 | + version = "1.0", |
| 18 | +) |
16 | 19 | print (""" |
17 | 20 | 1.Login |
18 | 21 | 2.Register |
19 | 22 | 3.Upgrade |
20 | 23 | 4.License Key Only |
21 | 24 | """) |
| 25 | +print(f""" |
| 26 | +App data: |
| 27 | +Number of users: {keyauthapp.app_data.numUsers} |
| 28 | +Number of online users: {keyauthapp.app_data.onlineUsers} |
| 29 | +Number of keys: {keyauthapp.app_data.numKeys} |
| 30 | +Application Version: {keyauthapp.app_data.app_ver} |
| 31 | +Customer panel link: {keyauthapp.app_data.customer_panel} |
| 32 | +""") |
| 33 | +sleep(1.5) # rate limit |
22 | 34 | print(f"Current Session Validation Status: {keyauthapp.check()}") |
| 35 | +sleep(1.5) # rate limit |
| 36 | +print(f"Blacklisted? : {keyauthapp.checkblacklist()}") # check if blacklisted, you can edit this and make it exit the program if blacklisted |
| 37 | + |
23 | 38 | ans=input("Select Option: ") |
24 | 39 | if ans=="1": |
25 | 40 | user = input('Provide username: ') |
|
45 | 60 | print("Username: " + keyauthapp.user_data.username) |
46 | 61 | print("IP address: " + keyauthapp.user_data.ip) |
47 | 62 | print("Hardware-Id: " + keyauthapp.user_data.hwid) |
| 63 | +print("Subcription: " + keyauthapp.user_data.subscription) |
48 | 64 | print("Created at: " + datetime.utcfromtimestamp(int(keyauthapp.user_data.createdate)).strftime('%Y-%m-%d %H:%M:%S')) |
49 | 65 | print("Last login at: " + datetime.utcfromtimestamp(int(keyauthapp.user_data.lastlogin)).strftime('%Y-%m-%d %H:%M:%S')) |
50 | 66 | print("Expires at: " + datetime.utcfromtimestamp(int(keyauthapp.user_data.expires)).strftime('%Y-%m-%d %H:%M:%S')) |
51 | 67 | print(f"Current Session Validation Status: {keyauthapp.check()}") |
| 68 | +print("Exiting in 10 secs....") |
| 69 | +sleep(10) |
| 70 | +exit(0) |
0 commit comments