-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathauth.hpp
57 lines (50 loc) · 1.5 KB
/
auth.hpp
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
#include <Windows.h>
#include <iostream>
#include <vector>
#include <fstream>
namespace KeyAuth {
class api {
public:
std::string name, ownerid, secret, version, url, sslPin;
api(std::string name, std::string ownerid, std::string secret, std::string version, std::string url, std::string sslPin) : name(name), ownerid(ownerid), secret(secret), version(version), url(url), sslPin(sslPin) {}
void ban();
void init();
void check();
void log(std::string msg);
void license(std::string key);
std::string var(std::string varid);
std::string webhook(std::string id, std::string params);
void setvar(std::string var, std::string vardata);
std::string getvar(std::string var);
bool checkblack();
void upgrade(std::string username, std::string key);
void login(std::string username, std::string password);
void web_login();
void button(std::string value);
std::vector<unsigned char> download(std::string fileid);
void regstr(std::string username, std::string password, std::string key);
class data_class {
public:
// app data
std::string numUsers;
std::string numOnlineUsers;
std::string numKeys;
std::string version;
std::string customerPanelLink;
// user data
std::string username;
std::string ip;
std::string hwid;
std::string createdate;
std::string lastlogin;
std::vector<std::string> subscriptions;
std::string expiry;
// response data
bool success;
std::string message;
};
data_class data;
private:
std::string sessionid, enckey;
};
}