Add Windows 8 / Server 2012 support to sysinfo

unstable
HD Moore 2012-06-21 23:50:29 -05:00
parent 572fb4cb0c
commit c5e9e5d374
1 changed files with 7 additions and 0 deletions

View File

@ -377,6 +377,13 @@ DWORD request_sys_config_sysinfo(Remote *remote, Packet *packet)
else else
osName = "Windows 2008 R2"; osName = "Windows 2008 R2";
} }
else if (v.dwMajorVersion == 6 && v.dwMinorVersion == 2)
{
if (v.wProductType == VER_NT_WORKSTATION)
osName = "Windows 8";
else
osName = "Windows 2012";
}
if (!osName) if (!osName)
osName = "Unknown"; osName = "Unknown";