Refactor redundant code for better extensibility with new commands.

This commit is contained in:
Jakob Friedl
2025-07-08 23:10:19 +02:00
parent 1f73cf142d
commit 71ff092975
10 changed files with 120 additions and 230 deletions

View File

@@ -1,4 +1,4 @@
import winim
import winim, tables
import ../../server/types
export Task, TaskCommand, TaskResult, TaskStatus
@@ -24,9 +24,9 @@ type OSVersionInfoExW* {.importc: "OSVERSIONINFOEXW", header: "<windows.h>".} =
wProductType*: UCHAR
wReserved*: UCHAR
type
AgentConfig* = ref object
listener*: string
ip*: string
port*: int
sleep*: int
type
AgentConfig* = ref object
listener*: string
ip*: string
port*: int
sleep*: int