Skip to content

Commit

Permalink
Additional registry fakery for VMware
Browse files Browse the repository at this point in the history
  • Loading branch information
jgajek committed Sep 23, 2016
1 parent 8757406 commit 3f19e48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,12 @@ void perform_ascii_registry_fakery(PWCHAR keypath, LPVOID Data, ULONG DataLength
replace_string_in_buf(Data, DataLength, "Xeon(R) ", "Core(TM)");
}

if (!wcsicmp(keypath, L"HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\BIOS\\SystemManufacturer") ||
!wcsicmp(keypath, L"HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\BIOS\\SystemProductName")) {
replace_string_in_buf(Data, DataLength, "VMware", "Lenovo");
replace_string_in_buf(Data, DataLength, "Virtual Platform", "X230 ThinkPad PC");
}

// fake the manufacturer name
if (!wcsicmp(keypath, L"HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\SystemInformation\\SystemManufacturer"))
replace_string_in_buf(Data, DataLength, "QEMU", "DELL");
Expand Down

0 comments on commit 3f19e48

Please sign in to comment.