mirror of
https://github.com/paolo-projects/unlocker.git
synced 2025-07-28 00:14:36 +02:00
Fix vmwarebase patch offsets and Linux issues 2.0.9.
This commit is contained in:
parent
d1eec2af84
commit
621de92822
@ -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')
|
||||
|
@ -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()
|
||||
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user