查看: 3523|回复: 3
收起左侧

[分享] Auto-Unlocker (Unlocker C++版本)

[复制链接]
YorkWaugh
发表于 2021-5-9 16:11:46 | 显示全部楼层 |阅读模式
https://github.com/paolo-projects/auto-unlocker

Auto-Unlocker
A one-click Unlocker for VMWare Player and Workstation.

A C++ port of the DrDonk Python Unlocker

DrDonk Unlocker
Unlocker 3 is designed for VMware Workstation 11-15 and Player 7-15.

The patch code carries out the following modifications dependent on the product being patched:

Fix vmware-vmx and derivatives to allow macOS to boot
Fix vmwarebase .dll or .so to allow Apple to be selected during VM creation
Download a copy of the latest VMware Tools for macOS
Note that not all products recognise the darwin.iso via install tools menu item. You will have to manually mount the darwin.iso for example on Workstation 11 and Player 7.

In all cases make sure VMware is not running, and any background guests have been shutdown.

How to use
I created the C++ version of this tool to avoid issues between different Python versions and OSes.

Windows: just download from the releases section, extract to a folder (store it if you want to be able to uninstall later) and run the executable. The program should take care of everything by itself.

Linux: you can find an experimental x64 .deb package in the latest release. It should work on Debian-derived distributions (including Ubuntu, etc.) although I've not tested it extensively. Install it with apt which will take care of all the dependencies. If it doesn't work for you or if you don't have a Debian-derived distribution you need to compile the program first. After you compiled it, chmod +x if needed and run sudo auto-unlocker.

Command line options:

--install (Default behavior when called with no arguments) Installs the patch.
--uninstall Uninstalls the patch. Works only if the patch was previously installed and the backup folder is intact
--download-tools Only downloads the tools in the tools folder
--help Shows a list of the available options
I tested the program on Windows with VMware Player 15.0. I plan to test it on Linux soon, though as of now I don't know if it works there, or with other VMware versions.

Compile
The program can be compiled on Windows with CMake, provided you get or compile the needed libraries first. Run CMake on the source dir and it will generate a ready to build project.

The program needs the following libraries:

libcurl
libzip
The tar extraction is handled internally, while the zip decompression needs the libzip library. libcurl is used for downloading the tools.

Windows: Run CMake on the source folder to generate a Visual Studio Project. The CMakeList is set up to compile with static libraries, if you have shared ones change CMakeLists.txt file accordingly (UNLOCKER_STATIC_LIBS_WIN variable). Point the CMake utility to the proper library/headers paths when prompted or add them to your PATH.

Linux: Use the embedded Makefile. Get needed libraries (or compile them and install) first, then run make

Note regarding default g++ version on Ubuntu: by default, Ubuntu ships with g++ v7, which doesn't support natively c++17 filesystem library, although it includes it in the experimental namespace which should work fine. There's a wrapper that should automatically detect if filesystem is natively supported or not and choose the right namespace. If this doesn't work or you have issues try compiling it with g++8 or g++9.
FancyKing
发表于 2021-5-13 17:30:23 | 显示全部楼层
黑苹果好工具
alakee
发表于 2021-5-31 08:31:41 | 显示全部楼层
不是已经出到 workstation 16 了吗?还是只支持 11~15 的版本?
YorkWaugh
 楼主| 发表于 2021-5-31 21:42:34 | 显示全部楼层
alakee 发表于 2021-5-31 08:31
不是已经出到 workstation 16 了吗?还是只支持 11~15 的版本?

16支持的,但是这份说明是16发布前写的,后来作者没更新过
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-4-26 00:40 , Processed in 0.131272 second(s), 16 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表