core.print_warning( "\n If you used custom imports, ensure you create YOUR OWN LISTENER!\n" "SET does not know what custom payload you used.") pause = input( "\nPress {control -c} to return to the main menu when you are finished." ) except KeyboardInterrupt: break if apache: # if we are running apache then prompt to exit this menu core.print_status( "Everything has been moved over to Apache and is ready to go.") core.return_continue() # we stop the python web server when we are all finished if not apache: # specify the web port web_port = core.check_config("WEB_PORT=") # stop the web server try: import src.core.webserver as webserver except: core.module_reload(src.core.webserver) webserver.stop_server(web_port) # call the cleanup routine cleanup = core.check_config("CLEANUP_ENABLED_DEBUG=") if cleanup.lower() != "on": core.cleanup_routine()
if automatic_listener == "off" or template == "CUSTOM" or template == "SELF": while True: try: core.print_warning("\n If you used custom imports, ensure you create YOUR OWN LISTENER!\n" "SET does not know what custom payload you used.") pause = input("\nPress {control -c} to return to the main menu when you are finished.") except KeyboardInterrupt: break if apache: # if we are running apache then prompt to exit this menu core.print_status("Everything has been moved over to Apache and is ready to go.") core.return_continue() # we stop the python web server when we are all finished if not apache: # specify the web port web_port = core.check_config("WEB_PORT=") # stop the web server try: import src.core.webserver as webserver except: core.module_reload(src.core.webserver) webserver.stop_server(web_port) # call the cleanup routine cleanup = core.check_config("CLEANUP_ENABLED_DEBUG=") if cleanup.lower() != "on": core.cleanup_routine()
################################################ # ROOT CHECK ################################################ if os.geteuid() != 0: print "\n The Social-Engineer Toolkit (SET) - by David Kennedy (ReL1K)" print "\n Not running as root. \n\nExiting the Social-Engineer Toolkit (SET).\n" sys.exit(1) setcore.check_pexpect() setcore.check_beautifulsoup() define_version = setcore.GetVersion() # remove old stale files and restore java applet to original applet setcore.cleanup_routine() sys.path.append("../") try: while 1: setcore.show_banner(define_version,'1') ################################################### # USER INPUT: SHOW MAIN MENU # ################################################### show_main_menu = setcore.CreateMenu(text.main_text, text.main) # special case of list item 99 print '\n 99) Return back to the main menu.\n'