Started work on token module and implemented 'make-token' command to impersonate a user from username and password.

This commit is contained in:
Jakob Friedl
2025-10-16 19:29:49 +02:00
parent 80579e5c7f
commit dea10ba7d5
6 changed files with 228 additions and 3 deletions

View File

@@ -52,6 +52,9 @@ type
CMD_SCREENSHOT = 15'u16
CMD_DOTNET = 16'u16
CMD_SLEEPMASK = 17'u16
CMD_MAKE_TOKEN = 18'u16
CMD_STEAL_TOKEN = 19'u16
CMD_REV2SELF = 20'u16
StatusType* = enum
STATUS_COMPLETED = 0'u8
@@ -99,6 +102,7 @@ type
MODULE_FILETRANSFER = 32'u32
MODULE_SCREENSHOT = 64'u32
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 =