-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathhook.py
More file actions
23 lines (19 loc) · 1.02 KB
/
hook.py
File metadata and controls
23 lines (19 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from shutil import which
from plugins.sandcat.app.sand_gui_api import SandGuiApi
from plugins.sandcat.app.sand_svc import SandService
name = 'Sandcat'
description = 'A custom multi-platform RAT'
address = '/plugin/sandcat/gui'
async def enable(services):
app = services.get('app_svc').application
file_svc = services.get('file_svc')
sand_svc = SandService(services)
await file_svc.add_special_payload('sandcat.go', sand_svc.dynamically_compile_executable)
await file_svc.add_special_payload('shared.go', sand_svc.dynamically_compile_library)
# sudo apt install gcc-mingw-w64-x86-64
if not which('x86_64-w64-mingw32-gcc'):
sand_svc.log.warning('x86_64-w64-mingw32-gcc dependency missing. Will not be able to compile sandcat as a Windows DLL.')
cat_gui_api = SandGuiApi(services=services)
app.router.add_static('/sandcat', 'plugins/sandcat/static', append_version=True)
app.router.add_route('GET', '/plugin/sandcat/gui', cat_gui_api.splash)
await sand_svc.load_sandcat_extension_modules()