Implemented 'token-info' command that returns statistics, group memberships and privileges of the current access token.

This commit is contained in:
Jakob Friedl
2025-10-17 17:22:31 +02:00
parent 4a1a70da4d
commit 76930c9302
4 changed files with 153 additions and 52 deletions

View File

@@ -20,7 +20,7 @@ proc getDomain(): string =
dwSize = DWORD buffer.len
GetComputerNameExW(ComputerNameDnsDomain, &buffer, &dwSize)
return $buffer[ 0 ..< int(dwSize)]
return $buffer[0 ..< int(dwSize)]
# Username
proc getUsername(): string =