Implemented agent kill date.

This commit is contained in:
Jakob Friedl
2025-10-28 21:01:10 +01:00
parent 7417cb2822
commit 7f89487fb7
12 changed files with 217 additions and 70 deletions

View File

@@ -59,7 +59,7 @@ type
CMD_ENABLE_PRIV = 22'u16
CMD_DISABLE_PRIV = 23'u16
CMD_EXIT = 24'u16
CMD_SELF_DESTROY = 25'u16
CMD_SELF_DESTRUCT = 25'u16
StatusType* = enum
STATUS_COMPLETED = 0'u8
@@ -113,17 +113,6 @@ type
MODULE_SITUATIONAL_AWARENESS = 128'u32
MODULE_TOKEN = 256'u32
# Custom iterator for ModuleType, as it uses powers of 2 instead of standard increments
iterator items*(e: typedesc[ModuleType]): ModuleType =
yield MODULE_SLEEP
yield MODULE_SHELL
yield MODULE_BOF
yield MODULE_DOTNET
yield MODULE_FILESYSTEM
yield MODULE_FILETRANSFER
yield MODULE_SCREENSHOT
yield MODULE_SITUATIONAL_AWARENESS
# Encryption
type
Uuid* = uint32
@@ -333,6 +322,7 @@ type
listenerId*: string
hosts*: string
sleepSettings*: SleepSettings
killDate*: int64
sessionKey*: Key
agentPublicKey*: Key
profile*: Profile
@@ -373,8 +363,9 @@ type
AgentBuildInformation* = ref object
listenerId*: string
sleepSettings*: SleepSettings
sleepSettings*: SleepSettings
verbose*: bool
killDate*: int64
modules*: uint32
LootItemType* = enum