Skip to content

Commit

Permalink
Fix vmwarebase patch offsets and Linux issues 2.0.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDonk committed Oct 9, 2017
1 parent d1eec2a commit 621de92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test-unlocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():
dumpsmc.dumpsmc('./tests/esxi/esxi600/vmx')
unlocker.patchsmc('./tests/esxi/esxi600/vmx', True)
shutil.copyfile('./samples/esxi/esxi650/vmx', './tests/esxi/esxi650/vmx')
dumpsmc.dumpsmc('./tests/esxi/esxi600/vmx')
dumpsmc.dumpsmc('./tests/esxi/esxi650/vmx')
unlocker.patchsmc('./tests/esxi/esxi650/vmx', True)
shutil.copyfile('./samples/esxi/esxi600/libvmkctl.so', './tests/esxi/esxi600/libvmkctl.so')
unlocker.patchvmkctl('./tests/esxi/esxi600/libvmkctl.so')
Expand Down
7 changes: 3 additions & 4 deletions unlocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def patchbase(name):
flag = ord(f.read(1))
flag = set_bit(flag, 0)
flag = chr(flag)
f.seek(offset + 31)
f.seek(offset + 32)
f.write(flag)
print('GOS Patched flag @: ' + hex(offset))
offset += 33
offset += 40

# Tidy up
f.flush()
Expand Down Expand Up @@ -376,8 +376,7 @@ def main():
vmx = joinpath(vmx_path, 'vmware-vmx')
vmx_debug = joinpath(vmx_path, 'vmware-vmx-debug')
vmx_stats = joinpath(vmx_path, 'vmware-vmx-stats')
vmx_version = subprocess.check_output(["vmplayer", "-v"])
if vmx_version.startswith('VMware Player 12'):
if os.path.isfile('/usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so'):
vmx_so = True
vmwarebase = '/usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so'
else:
Expand Down

0 comments on commit 621de92

Please sign in to comment.