Recon
Local Recon
Domain/Remote Recon
Last updated
HANDLE hToken;
PTOKEN_USER userInfo;
DWORD Length = 0;
WCHAR username[1024] = { 0 };
WCHAR domain[1024] = { 0 };
ImpersonateSelf(SecurityDelegation);
OpenThreadToken(GetCurrentThread(), TOKEN_ALL_ACCESS, true, &hToken);
if (!GetTokenInformation(hToken, TokenUser, userInfo, 4096, &Length))
return 0;
LookupAccountSid(NULL, userInfo->User.Sid, username, &Length, domain, &Length, ...wmic /NODE:"SERVER" /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get *