From 3c80ee7a675da9f5a3caa25ae80a6e9b834fdb17 Mon Sep 17 00:00:00 2001 From: I049299 Date: Wed, 16 Sep 2015 17:09:59 +0100 Subject: [PATCH] Unlocker 2.0.7 --- readme.txt | 9 +++++---- unlocker.py | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/readme.txt b/readme.txt index 12e53fa..705bbc3 100755 --- a/readme.txt +++ b/readme.txt @@ -10,9 +10,9 @@ If you are using an earlier product please continue using Unlocker 1 Version 2 has been tested against: -* Workstation 11 on Windows and Linux -* Player 7 on Windows and Linux -* Fusion 7 on Mavericks and Yosemite +* Workstation 11/12 on Windows and Linux +* Player 7 & Workstation Player 12 on Windows and Linux +* Fusion 7/8 on Mavericks and Yosemite * ESXi 6.0 The patch code carries out the following modifications dependent on the product @@ -56,7 +56,7 @@ Latest Linux and ESXi products are OK and do not show this problem. | IMPORTANT: | | ========== | | | -| If you create a new VM using version 11 hardware VMware will stop and | +| If you create a new VM using version 11 or 12 hardware VMware will stop and | | create a core dump.There are two options to work around this issue: | | | | 1. Change the VM to be HW 10 - this does not affect performance. | @@ -156,6 +156,7 @@ History 18/06/15 2.0.5 - ESXi 6 working - Latest tools from Fusion 7.1.2 20/06/15 2.0.6 - ESXi 6 patch for smcPresent vCenter compatibility +16/09/15 2.0.7 - Workstation 12 on Linux fixes (c) 2011-2015 Dave Parsons \ No newline at end of file diff --git a/unlocker.py b/unlocker.py index aa1ff31..27c5670 100755 --- a/unlocker.py +++ b/unlocker.py @@ -198,7 +198,7 @@ def patchkeys(f, vmx, key, osname): i += 1 return smc_old_memptr, smc_new_memptr -def patchsmc(name, osname, so): +def patchsmc(name, osname, sharedobj): with open(name, 'r+b') as f: # Read file into string variable @@ -260,7 +260,7 @@ def patchsmc(name, osname, so): # Find matching RELA record in .rela.dyn in ESXi ELF files # This is temporary code until proper ELF parsing written - if so == True: + if sharedobj: print 'Modifying RELA records from: ' + hex(smc_old_memptr) + ' to ' + hex(smc_new_memptr) patchELF(f, smc_old_memptr, smc_new_memptr)