summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2020-08-08 12:20:48 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2020-08-08 12:20:48 +0200
commit745ced8e14e01f606f5aec79d600bcf5a10b8aff (patch)
tree7b2ef55143e651e8929f15e5474c00f451e5ae84
parentc7fe668efa5905091d3704083383c85ee5e2811c (diff)
Report Windows 10 and Windows server 2016
-rw-r--r--src/misc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index c887e01..4b2470d 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -164,6 +164,13 @@ https://msdn.microsoft.com/en-us/library/windows/desktop/ms724834%28v=vs.85%29.a
else
snprintf(buffer, sizeof(buffer) - 1, "Windows Server 2012 R2 (%lu)", Ver.dwBuildNumber);
}
+ else if (Ver.dwMajorVersion == 10 && Ver.dwMinorVersion == 0)
+ {
+ if( Ver.wProductType == VER_NT_WORKSTATION )
+ snprintf(buffer, sizeof(buffer) - 1, "Windows 10 (%lu)", Ver.dwBuildNumber);
+ else
+ snprintf(buffer, sizeof(buffer) - 1, "Windows Server 2016 (%lu)", Ver.dwBuildNumber);
+ }
else
{
snprintf(buffer, sizeof(buffer) - 1, "Windows %s %i.%i.%i",