Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Version 3.0.3 support ESXi 7.0 U3
Browse files Browse the repository at this point in the history
  • Loading branch information
netgc committed Oct 17, 2021
1 parent abad14f commit 8119d2e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
6 changes: 3 additions & 3 deletions esxi-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
sys.exit(1)

# TODO: Change for a new release
VERSION = '3.0.2'
FILEVER = '302'
FILENAME = 'esxi-unlocker-302.tgz'
VERSION = '3.0.3'
FILEVER = '303'
FILENAME = 'esxi-unlocker-303.tgz'

TIMESTAMP = '{:%Y%m%d%H%M.%S}'.format(datetime.datetime.now())
TOUCH = 'touch -t ' + TIMESTAMP
Expand Down
3 changes: 2 additions & 1 deletion esxi-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
set -e
#set -x

echo VMware Unlocker 3.0.2
echo VMware Unlocker 3.0
echo ===============================
echo Copyright: Dave Parsons 2011-18
echo Powered by sysin.org

# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
Expand Down
3 changes: 2 additions & 1 deletion esxi-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
set -e
#set -x

echo VMware Unlocker 3.0.2
echo VMware Unlocker 3.0
echo ===============================
echo Copyright: Dave Parsons 2011-18
echo Powered by sysin.org

# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
Expand Down
9 changes: 7 additions & 2 deletions etc/rc.local.d/unlocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
0x0A/10 0x06/06 6x byte Padding
0x10/16 0x08/08 Q ptr Internal VMware routine
0x18/24 0x30/48 48B byte Data
updated 2021.10.17 [email protected]
"""

import codecs
Expand Down Expand Up @@ -342,8 +344,8 @@ def main():
patchsmc(destvmx, True)

# Patch 32-bit libvmkctl to return Apple SMC present
os.makedirs(joinpath(destfolder, 'lib'))
if os.path.isfile(srclib32):
os.makedirs(joinpath(destfolder, 'lib'))
shutil.copy2(srclib32, destlib32)
patchvmkctl(destlib32)

Expand All @@ -355,7 +357,10 @@ def main():

# Build the gzipped tar file custom.tgz
print('\nCreating custom.tgz...')
subprocess.call('/bin/tar czvf custom.tgz bin lib lib64', shell=True)
if os.path.isfile(srclib32):
subprocess.call('/bin/tar czvf custom.tgz bin lib lib64', shell=True)
else:
subprocess.call('/bin/tar czvf custom.tgz bin lib64', shell=True)

# Build the vmtar file custom.vmtar
print('\nCreating custom.vmtar...')
Expand Down
16 changes: 9 additions & 7 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
macOS Unlocker V3.0.2 for VMware ESXi
macOS Unlocker V3.0.3 for VMware ESXi
=====================================

1. Introduction
Expand Down Expand Up @@ -77,7 +77,7 @@ Checkout the repository:
(if you don't have git installed you can download ZIP archive from GitHub instead)

Enter the directory and build:

cd esxi-unlocker
./esxi-build.py

Expand All @@ -92,14 +92,14 @@ If everything went correctly the ouput should be:
etc/rc.local.d/
etc/rc.local.d/unlocker.py

Creating esxi-unlocker-301.tgz...
Creating esxi-unlocker-300.tgz...
unlocker.tgz
esxi-install.sh
esxi-uninstall.sh
esxi-smctest.sh
readme.txt

The package you need to copy in the example above is esxi-unlocker-301.tgz (NOT unlocker.tgz!).
The package you need to copy in the example above is esxi-unlocker-300.tgz (NOT unlocker.tgz!).

6. Thanks
---------
Expand All @@ -113,8 +113,10 @@ modified the unlocker code to run on Python 3 in the ESXi 6.5 environment.

History
-------
26/09/18 3.0.0 - First release
01/05/20 3.0.1 - Fix for ESXi 7.0
10/18/20 3.0.2 - Fix for ESXi 7.0 U1 (7.0.1)
26/09/2018 3.0.0 - First release
01/05/2020 3.0.1 - Fix for ESXi 7.0
10/18/2020 3.0.2 - Fix for ESXi 7.0 U1 (7.0.1)
10/17/2020 3.0.3 - Fix for ESXi 7.0 U3 (7.0.3)

(c) 2011-2018 Dave Parsons
Powered by sysin.org

0 comments on commit 8119d2e

Please sign in to comment.