options = [] options.append(("gen", "Generate a malicious BMP image")) options.append(("web", "Start a web server and deliver malicious image")) options.append(("ps", "Generate Powershell payload")) options.append(("sc", "Generate shellcode from raw file")) options.append(("exit", "Quit the application")) exit_loop = False error = "" ui = UI() menu = MenuUI() while not exit_loop: try: ui.banner() choice = ui.show_menu(options, error) error = "" if menu.is_an_option(choice): mod = None if choice == "exit": exit(0) if choice == "gen": mod = GenModule(ui) if choice == "web": mod = WebModule(ui) if choice == "ps": mod = PsModule(ui) if choice == "sc": mod = ShellcodeModule(ui) mod.show_menu()
import os import sys from core.utils import Utils # Make sure all the dependencies are installed Utils.check_dependencies() from core.config import CONFIG from core.redisquery import RedisQuery from core.httpd import init_httpd_thread from core.cli import Cli from core.ui import UI from core.mysqlquery import MySQLQuery if __name__ == "__main__": UI.banner() if len(sys.argv) < 3: UI.error( "Missing configuration file path or username\n\nUsage: %s config username (optional -nohttpd)" % sys.argv[0], True) config = CONFIG(sys.argv[1]) if config.reload_config(): config = CONFIG(sys.argv[1]) profile = config.get("http-profile") if not profile == "": Utils.file_exists(profile, True) profile = CONFIG(profile) config.set("profile", profile)
""" @author: Mr.Un1k0d3r RingZer0 Team @package: launch """ import os import sys from core.config import CONFIG from core.redisquery import RedisQuery from core.httpd import init_httpd_thread from core.cli import Cli from core.ui import UI if __name__ == "__main__": UI.banner() if len(sys.argv) < 2: UI.error("Missing configuration file path\n\nUsage: %s config (optional -nohttpd)" % sys.argv[0], True) config = CONFIG(sys.argv[1]) db = RedisQuery(config) config.set("redis", db) # Launch the HTTPD daemon if not "-nohttpd" in sys.argv: httpd_thread = init_httpd_thread(config) cli = Cli(config) while True: try: