-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhook.py
More file actions
22 lines (17 loc) · 772 Bytes
/
hook.py
File metadata and controls
22 lines (17 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from app.utility.base_world import BaseWorld
from plugins.precomp.app.precomp_gui import PrecompGUI
from plugins.precomp.app.precomp_api import PrecompAPI
name = "Precomp"
description = "Pre-compromise procedures for CALDERA"
address = "/plugin/precomp/gui"
access = BaseWorld.Access.RED
async def enable(services):
app = services.get("app_svc").application
precomp_gui = PrecompGUI(services, name=name, description=description)
app.router.add_static("/precomp", "plugins/precomp/static/", append_version=True)
app.router.add_route("GET", "/plugin/precomp/gui", precomp_gui.splash)
precomp_api = PrecompAPI(services)
# Add API routes here
app.router.add_route(
"GET", "/plugin/precomp/dropper", precomp_api.get_agent_dropper
)