Implemented Windows Version fingerprinting

This commit is contained in:
Jakob Friedl
2025-05-21 14:06:04 +02:00
parent c55a9f9443
commit 71336a6fa7
8 changed files with 161 additions and 26 deletions

View File

@@ -20,13 +20,11 @@ proc register*(listener: string): string =
"pid": getProcessId(),
"elevated": isElevated()
}
echo $body
try:
# Register agent to the Conquest server
let responseBody = waitFor client.postContent(fmt"http://localhost:5555/{listener}/register", $body)
return responseBody
return waitFor client.postContent(fmt"http://localhost:5555/{listener}/register", $body)
except HttpRequestError as err:
echo "Registration failed"
quit(0)