资源简介

VMware10.0安装Mac OS X Mountain Lion 10.8.5专用补丁包

资源截图

代码片段和文件信息

/*
 *  Unlocker.cpp
 *
 *  Created by Zenith432 on September 25 2011.
 *  Copyright 2011 Zenith432. All rights reserved.
 *
 *  Permission is hereby granted to use this code as you please.
 *  Mods by Dave Parsons 13/07/13.
 */

#ifdef _WIN32
#include 
#define WIN32_LEAN_AND_MEAN
#include 
#define PATH_SEP ‘\\‘
#else /* _WIN32 */
#include 
#include 
#include 
#include 
#include 
#define PATH_SEP ‘/‘
#endif /* _WIN32 */

#include 
#include 
#include 
#include 

#define LOGGING
#define ROT 13U

using std::cout;
using std::cerr;
using std::endl;
using std::string;

namespace {

char const random[] = “bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap“;
int uninstall = 0;
#ifdef __ESXi__
struct _esxi_t {
int fd;
void* points[3];
size_t sizes[3];
} esxi;
#endif /* __ESXi__ */

#ifdef _WIN32
char const x64[] = “x64\\“;
char const vmx[] = “vmware-vmx.exe“;
char const vmx_debug[] = “vmware-vmx-debug.exe“;
char const vmx_stats[] = “vmware-vmx-stats.exe“;
char const vmwarebase[] = “vmwarebase.dll“;
char const subKey1[] = “SOFTWARE\\VMware Inc.\\VMware Workstation“;
char const subKey2[] = “SOFTWARE\\VMware Inc.\\VMware Player“;
char const value1[] = “InstallPath“;
char const value2[] = “InstallPath64“;
#endif /* _WIN32 */

#ifdef __APPLE__
char const vmx[] = “vmware-vmx“;
char const vmx_debug[] = “vmware-vmx-debug“;
char const vmx_stats[] = “vmware-vmx-stats“;
char const vmwarebase[] = “libvmwarebase.dylib“;
char const install_path[] = “/Applications/VMware Fusion.app/Contents/“;
char const vmx_path[] = “Library/“;
char const vmwarebase_path[] = “frameworks/“;
#endif /* __APPLE__ */

#ifdef __ESXi__
char const vmx[] = “vmx“;
char const vmx_debug[] = “vmx-debug“;
char const vmx_stats[] = “vmx-stats“;
char const install_path[] = “/bin/“;
#elif defined(__linux__)
char const vmx[] = “vmware-vmx“;
char const vmx_debug[] = “vmware-vmx-debug“;
char const vmx_stats[] = “vmware-vmx-stats“;
char const vmwarebase[] = “libvmwarebase.so.0“;
char const install_path[] = “/usr/lib/vmware/“;
char const vmx_path[] = “bin/“;
char const vmwarebase_path[] = “lib/libvmwarebase.so.0/“;
#endif /* __ESXi__ || __linux__ */

void rot13(void* base size_t length)
{
unsigned char c e *p *q;

p = static_cast(base);
q = p + length;
for (; p != q; ++p) {
c = *p;
if (c >=‘A‘ && c <=‘Z‘) {
if ((e = c + ROT) <= ‘Z‘)
*p = e;
else
*p = c - ROT;
} else if (c >=‘a‘ && c <=‘z‘) {
if ((e = c + ROT) <= ‘z‘)
*p = e;
else
*p = c - ROT;
}
}
}

void osk0(char* tail)
{
#ifdef LOGGING
cout << “Found OSK0 @ “ << static_cast(tail) << endl;
#endif /* LOGGING */
if (*tail)
return;
#ifdef __ESXi__
esxi.points[0] = &tail[1];
esxi.sizes[0] = 32U;
#endif /* __ESXi__ */
if (uninstall) {
memse

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-09-18 18:30  unlock-all-v120\
     目录           0  2013-09-18 18:30  unlock-all-v120\esxi\
     文件        1022  2013-09-18 18:30  unlock-all-v120\esxi\install.sh
     文件         394  2013-09-18 18:30  unlock-all-v120\esxi\uninstall.sh
     文件     1343792  2013-09-18 18:30  unlock-all-v120\esxi\Unlocker.ESXi
     目录           0  2013-09-18 18:30  unlock-all-v120\linux\
     文件         508  2013-09-18 18:30  unlock-all-v120\linux\install.sh
     文件         498  2013-09-18 18:30  unlock-all-v120\linux\uninstall.sh
     文件     1274692  2013-09-18 18:30  unlock-all-v120\linux\Unlocker.Linux32
     文件     1343792  2013-09-18 18:30  unlock-all-v120\linux\Unlocker.Linux64
     目录           0  2013-09-18 18:30  unlock-all-v120\osx\
     文件         253  2013-09-18 18:30  unlock-all-v120\osx\install.sh
     文件         260  2013-09-18 18:30  unlock-all-v120\osx\uninstall.sh
     文件       13752  2013-09-18 18:30  unlock-all-v120\osx\Unlocker.OSX
     文件        4524  2013-09-18 18:39  unlock-all-v120\readme.txt
     目录           0  2013-09-18 18:30  unlock-all-v120\src\
     文件         438  2013-09-18 18:30  unlock-all-v120\src\build.sh
     文件          92  2013-09-18 18:30  unlock-all-v120\src\clean.sh
     文件         515  2013-09-18 18:30  unlock-all-v120\src\Makefile
     文件       17414  2013-09-18 18:30  unlock-all-v120\src\Unlocker.cpp
     文件         882  2013-09-18 18:30  unlock-all-v120\src\Unlocker.sln
     文件        3933  2013-09-18 18:30  unlock-all-v120\src\Unlocker.vcxproj
     目录           0  2013-09-18 18:34  unlock-all-v120\tools\
     文件     9879552  2013-08-27 22:52  unlock-all-v120\tools\darwin.iso
     文件         256  2013-08-27 22:52  unlock-all-v120\tools\darwin.iso.sig
     目录           0  2013-09-18 18:30  unlock-all-v120\windows\
     文件         921  2013-09-18 18:30  unlock-all-v120\windows\install.cmd
     文件         911  2013-09-18 18:30  unlock-all-v120\windows\uninstall.cmd
     文件      559104  2013-09-18 18:30  unlock-all-v120\windows\Unlocker.exe

评论

共有 条评论