1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-20 20:37:27 +01:00

Update OS names to be more generic in kernel versions 10.0.x

This commit is contained in:
bwatters 2019-07-23 08:17:06 -05:00
parent 550bd65c5e
commit 509c1936a3
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268

View File

@ -545,7 +545,7 @@ DWORD add_windows_os_version(Packet** packet)
{
if (v.dwMinorVersion == 0)
{
osName = v.wProductType == VER_NT_WORKSTATION ? "Windows 10" : "Windows 2016";
osName = v.wProductType == VER_NT_WORKSTATION ? "Windows 10" : "Windows 2016+";
}
}
@ -556,11 +556,11 @@ DWORD add_windows_os_version(Packet** packet)
if (wcslen(v.szCSDVersion) > 0)
{
_snprintf(buffer, sizeof(buffer)-1, "%s (Build %lu, %S).", osName, v.dwBuildNumber, v.szCSDVersion);
_snprintf(buffer, sizeof(buffer)-1, "%s (%lu.%lu Build %lu, %S).", osName, v.dwMajorVersion, v.dwMinorVersion, v.dwBuildNumber, v.szCSDVersion);
}
else
{
_snprintf(buffer, sizeof(buffer)-1, "%s (Build %lu).", osName, v.dwBuildNumber);
_snprintf(buffer, sizeof(buffer)-1, "%s (%lu.%lu Build %lu).", osName, v.dwMajorVersion, v.dwMinorVersion, v.dwBuildNumber);
}
dprintf("[VERSION] Version set to: %s", buffer);