mirror of
https://github.com/paolo-projects/unlocker.git
synced 2025-07-28 16:34:29 +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')
|
dumpsmc.dumpsmc('./tests/esxi/esxi600/vmx')
|
||||||
unlocker.patchsmc('./tests/esxi/esxi600/vmx', True)
|
unlocker.patchsmc('./tests/esxi/esxi600/vmx', True)
|
||||||
shutil.copyfile('./samples/esxi/esxi650/vmx', './tests/esxi/esxi650/vmx')
|
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)
|
unlocker.patchsmc('./tests/esxi/esxi650/vmx', True)
|
||||||
shutil.copyfile('./samples/esxi/esxi600/libvmkctl.so', './tests/esxi/esxi600/libvmkctl.so')
|
shutil.copyfile('./samples/esxi/esxi600/libvmkctl.so', './tests/esxi/esxi600/libvmkctl.so')
|
||||||
unlocker.patchvmkctl('./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 = ord(f.read(1))
|
||||||
flag = set_bit(flag, 0)
|
flag = set_bit(flag, 0)
|
||||||
flag = chr(flag)
|
flag = chr(flag)
|
||||||
f.seek(offset + 31)
|
f.seek(offset + 32)
|
||||||
f.write(flag)
|
f.write(flag)
|
||||||
print('GOS Patched flag @: ' + hex(offset))
|
print('GOS Patched flag @: ' + hex(offset))
|
||||||
offset += 33
|
offset += 40
|
||||||
|
|
||||||
# Tidy up
|
# Tidy up
|
||||||
f.flush()
|
f.flush()
|
||||||
@ -376,8 +376,7 @@ def main():
|
|||||||
vmx = joinpath(vmx_path, 'vmware-vmx')
|
vmx = joinpath(vmx_path, 'vmware-vmx')
|
||||||
vmx_debug = joinpath(vmx_path, 'vmware-vmx-debug')
|
vmx_debug = joinpath(vmx_path, 'vmware-vmx-debug')
|
||||||
vmx_stats = joinpath(vmx_path, 'vmware-vmx-stats')
|
vmx_stats = joinpath(vmx_path, 'vmware-vmx-stats')
|
||||||
vmx_version = subprocess.check_output(["vmplayer", "-v"])
|
if os.path.isfile('/usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so'):
|
||||||
if vmx_version.startswith('VMware Player 12'):
|
|
||||||
vmx_so = True
|
vmx_so = True
|
||||||
vmwarebase = '/usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so'
|
vmwarebase = '/usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so'
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user