File tree Expand file tree Collapse file tree 1 file changed +25
-6
lines changed
Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change 11from keyauth import api
2-
32import os
43import sys
54import os .path
65import platform
6+ from time import sleep
77from datetime import datetime
88
99# 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" )
1312print ("Initializing" )
14- keyauthapp .init ()
15-
13+ keyauthapp = api (
14+ name = "" ,
15+ ownerid = "" ,
16+ secret = "" ,
17+ version = "1.0" ,
18+ )
1619print ("""
17201.Login
18212.Register
19223.Upgrade
20234.License Key Only
2124""" )
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
2234print (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+
2338ans = input ("Select Option: " )
2439if ans == "1" :
2540 user = input ('Provide username: ' )
4560print ("Username: " + keyauthapp .user_data .username )
4661print ("IP address: " + keyauthapp .user_data .ip )
4762print ("Hardware-Id: " + keyauthapp .user_data .hwid )
63+ print ("Subcription: " + keyauthapp .user_data .subscription )
4864print ("Created at: " + datetime .utcfromtimestamp (int (keyauthapp .user_data .createdate )).strftime ('%Y-%m-%d %H:%M:%S' ))
4965print ("Last login at: " + datetime .utcfromtimestamp (int (keyauthapp .user_data .lastlogin )).strftime ('%Y-%m-%d %H:%M:%S' ))
5066print ("Expires at: " + datetime .utcfromtimestamp (int (keyauthapp .user_data .expires )).strftime ('%Y-%m-%d %H:%M:%S' ))
5167print (f"Current Session Validation Status: { keyauthapp .check ()} " )
68+ print ("Exiting in 10 secs...." )
69+ sleep (10 )
70+ exit (0 )
You can’t perform that action at this time.
0 commit comments