await db_objects.get_or_create(Artifact, name=artifact["name"], description=artifact["description"]) file.close() print("Created all base artifacts") for base_file in glob.iglob("./app/default_files/c2_profiles/*"): file = open(base_file, "r") c2 = js.load(file) print("parsed {}".format(base_file)) # await import_c2_profile_func(c2, admin) print("Created all C2 Profiles") print("Successfully finished initial setup") # /static serves out static images and files mythic.static("/static", "./app/static") mythic.static("/favicon.ico", "./app/static/favicon.ico") # / serves out the payloads we wish to host, make user supply a path they want to use, or just use file name mythic.static("/", "./app/payloads/operations/_hosting_dir") mythic.static("/strict_time.png", "./app/static/strict_time.png", name="strict_time") mythic.static("/grouped_output.png", "./app/static/grouped_output.png", name="grouped_output") mythic.static("/no_cmd_output.png", "./app/static/no_cmd_output.png", name="no_cmd_output") mythic.static("/add_comment.png", "./app/static/add_comment.png", name="add_comment")
file = open("./app/default_files/other_info/artifacts.json", "r") artifacts_file = js.load(file) for artifact in artifacts_file['artifacts']: await db_objects.get_or_create(Artifact, name=artifact['name'], description=artifact['description']) file.close() print("Created all base artifacts") for base_file in glob.iglob("./app/default_files/c2_profiles/*"): file = open(base_file, 'r') c2 = js.load(file) print("parsed {}".format(base_file)) #await import_c2_profile_func(c2, admin) print("Created all C2 Profiles") print("Successfully finished initial setup") # /static serves out static images and files mythic.static('/static', './app/static') mythic.static('/favicon.ico', './app/static/favicon.ico') # / serves out the payloads we wish to host, make user supply a path they want to use, or just use file name mythic.static('/', './app/payloads/operations/_hosting_dir') mythic.static('/strict_time.png', './app/static/strict_time.png', name='strict_time') mythic.static('/grouped_output.png', './app/static/grouped_output.png', name='grouped_output') mythic.static('/no_cmd_output.png', './app/static/no_cmd_output.png', name='no_cmd_output') mythic.static('/add_comment.png', './app/static/add_comment.png', name='add_comment') # add links to the routes in this file at the bottom links['index'] = mythic.url_for('index') links['login'] = links['WEB_BASE'] + "/login" links['logout'] = mythic.url_for('logout') links['register'] = links['WEB_BASE'] + "/register" links['settings'] = mythic.url_for('settings')