-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvar.go
89 lines (73 loc) · 2.77 KB
/
var.go
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
//go:generate go run keygen.go
package main
import "crypto/rsa"
/*
IMMUTABLE VARIABLES
*/
const (
TokenElevation = 20
LinuxConfigLocation = "/etc/project-one/config.protected"
WindowsConfigLocation = "C:\\Users\\Administrator\\AppData\\Local\\project-one\\config.protected"
taskname = "lifeline"
TrollFace = `░░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄░░░░░░░
░░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄░░░░
░░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█░░░
░░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░░█░░
░▄▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░░█░
█░▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒░█
█░▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█
░█░▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█░
░░█░░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█░░
░░░█░░░░██░░▀█▄▄▄█▄▄█▄████░█░░░
░░░░█░░░░▀▀▄░█░░░█░█▀██████░█░░
░░░░░▀▄░░░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█░░
░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░▒░░░█░
░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░░░░█░
░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░░░░█░░`
systemd_service = `[Unit]
Description=Lockout FailSafe
After=network.target
[Service]
ExecStart=/usr/local/bin/one
User=root
Restart=on-failure
RestartPreventExitStatus=10
StandardOutput=/var/log/one.log
StandardError=/var/log/one.log
Type=simple
[Install]
WantedBy=multi-user.target`
// standard ansii codes
Reset = "\033[0m"
Red = "\033[91m"
Green = "\033[92m"
//Yellow = "\033[33m" // Unused colors
//Blue = "\033[34m" // Unused colors
//Purple = "\033[35m" // Unused colors
Cyan = "\033[36m" // Unused colors
//Gray = "\033[37m" // Unused colors
White = "\033[97m"
)
/*
MUTABLE VARIABLES
*/
var (
MasterConfig Config
// Master key generated with go generate
//MasterKey = []byte{
// 0x25, 0xad, 0xcc, 0x32, 0xad, 0x83, 0x3e, 0x9f,
// 0x5a, 0x01, 0xb1, 0x95, 0x3b, 0x21, 0x82, 0xa5,
// 0x9d, 0xee, 0x8e, 0x70, 0x3a, 0xf4, 0x5e, 0xf5,
// 0x3d, 0xf6, 0xc0, 3, 0x68, 0x70, 0x1c, 0x22,
//}
)
/*
TYPE DEFS
*/
type Config struct {
RepoUrl string
Protector rsa.PrivateKey
}
type TOKEN_ELEVATION struct {
TokenIsElevated uint32
}