Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f93d1a353 | ||
|
|
f742770311 |
@@ -0,0 +1,4 @@
|
||||
/bin/
|
||||
/tmp/
|
||||
*.o
|
||||
*.gch
|
||||
@@ -0,0 +1,70 @@
|
||||
# 在 Linux 上编译 VMProtect(Console / Core / SDK / Runtime)
|
||||
|
||||
本文件记录在 **Debian 13 + clang 19** 上把本仓库的 Linux 目标(`-target x86_64-linux-gnu`)编译通过所需的最小改动。
|
||||
所有改动已在 `linux-build` 分支上,直接按下面顺序构建即可,不再需要手工补参数。
|
||||
|
||||
## 依赖
|
||||
|
||||
```bash
|
||||
apt-get install -y clang make libssl-dev zlib1g-dev
|
||||
```
|
||||
|
||||
`third-party/libffi/libffi64.a` 是仓库自带预编译库,直接用。
|
||||
|
||||
## 构建顺序(必须按这个顺序,后者依赖前者的产物)
|
||||
|
||||
```bash
|
||||
cd core/invariant && make -f lin_invariant_core64.mak CFG_DIR=release # → bin/64/invariant_core.a
|
||||
cd ../../core && make -f lin_core64.mak CFG_DIR=release # → bin/64/release/core.a(约 70MB)
|
||||
cd ../sdk && make -f lin_sdk64.mak CFG_DIR=release # → bin/libVMProtectSDK64.so
|
||||
cd ../VMProtectCon && make -f lin_console64.mak CFG_DIR=release # → bin/64/release/vmprotect_con
|
||||
```
|
||||
|
||||
运行:
|
||||
|
||||
```bash
|
||||
LD_LIBRARY_PATH=$PWD/bin ./bin/64/release/vmprotect_con
|
||||
# VMProtect Professional v 3.5.1 (build 1024)
|
||||
# Usage: vmprotect_con File [Output File] [-pf Project File] [-sf Script File] [-wm Watermark] [-we]
|
||||
```
|
||||
|
||||
加壳(一份 CLI 同时吃 PE / ELF / Mach-O,取决于是哪种文件):
|
||||
|
||||
```bash
|
||||
/vmprotect_con input.bin output.bin [-pf project.vmp] [-sf script.lua]
|
||||
```
|
||||
|
||||
## 为 Linux 编译修掉的 10 个问题
|
||||
|
||||
| # | 文件 | 问题 | 处理 |
|
||||
|---|------|------|------|
|
||||
| 1 | `core/precompiled.h` | 无条件 `#include <sys/sysctl.h>`(macOS 头) | 用 `#ifdef __APPLE__` 包住 |
|
||||
| 2 | `lin_common.mak` | `-Werror` 撞 clang19 的 deprecated 警告(`auto_ptr`/`RSA_*`) | 去掉 `-Werror` |
|
||||
| 3 | `runtime/crypto.h` | 自定义 `__rdtsc()` 与 clang 内建同名不同返回类型 | 改名 `vmp_rdtsc` + `#define __rdtsc() vmp_rdtsc()` |
|
||||
| 4 | `core/core.cc` | `OutputDebugStringA` 是 Win32 API | `#ifdef _WIN32` 条件编译 |
|
||||
| 5 | `core/core.cc` | OpenSSL 3 里 `rsa_st` 是残缺类型,`r->n/e/d` 编译失败 | 改 `RSA_get0_key(r, &n, &e, &d)` |
|
||||
| 6 | `runtime/precompiled.h`、`core/intel.cc`、`core/processors.cc` | `#include <intrin.h>`(MSVC 头) | Linux 走 `#include <x86intrin.h>` |
|
||||
| 7 | `core/objects.cc` | 用了 `va_start/va_end` 但缺 `<cstdarg>` | 补 include(PCH 里也补一份) |
|
||||
| 8 | `core/pefile.cc` | MSVC union 写法 `data.u.UnwindData` / `tls.u.Characteristics` | 改成 `data.UnwindInfoAddress` / `tls.Characteristics` |
|
||||
| 9 | 各 `*.mak` | 默认目标指向 `clean`,`make -f xxx.mak` 会清空产物 | `lin_common.mak` 加 `.DEFAULT_GOAL := all` |
|
||||
| 10 | `VMProtectCon/lin_console.mak` | 链接静态 `libcrypto.a` 牵出 zlib/zstd;预编译 libffi 是非 PIE;`strlcpy` 与 glibc 2.38+ 重名 | 改 `-lcrypto -lz`、加 `-no-pie`、加 `-Wl,--allow-multiple-definition` |
|
||||
|
||||
## 已验证的能力边界(源码写死,非配置)
|
||||
|
||||
- **ELF**:`core/elffile.cc` 只接受 `EM_386 / EM_486 / EM_X86_64`,其它 CPU 返回 `osUnsupportedCPU`
|
||||
- **Mach-O**:x86 / x86_64
|
||||
- **PE**:x86 / x64,含 .NET(`core/dotnetfile.cc`)
|
||||
- **不支持**:ARM / AArch64、Android APK/DEX、iOS arm64
|
||||
|
||||
## 授权提示(重要)
|
||||
|
||||
本仓库是商业软件的源码副本。`vmprotect_con` 在**未注册**状态下打出的产物,运行时会直接报:
|
||||
|
||||
```
|
||||
This application is protected with unregistered version of VMProtect
|
||||
and cannot be executed on this computer.
|
||||
```
|
||||
|
||||
也就是说:**流程能跑通,产物不能用于交付**。要让加壳产物真正可用,需要厂商签发的序列号(
|
||||
`VMProtectSetSerialNumber` / `-wm` 之外的授权流程由厂商控制)。使用前请确认你拥有对应授权,
|
||||
本文件只覆盖「让它在这台 Linux 上编译并跑起来」,不涉及授权校验。
|
||||
@@ -130,8 +130,10 @@ AboutDialog::AboutDialog(QWidget *parent)
|
||||
line2->setObjectName("bootHSeparator");
|
||||
line2->setFixedHeight(1);
|
||||
|
||||
QLabel *copyright = new QLabel(QString::fromLatin1(Core::copyright()), this);
|
||||
const char *copyright_text = Core::copyright();
|
||||
QLabel *copyright = new QLabel(QString::fromLatin1(copyright_text), this);
|
||||
copyright->setObjectName("copyright");
|
||||
copyright->setVisible(copyright_text && *copyright_text);
|
||||
|
||||
QFrame *bottom = new QFrame(this);
|
||||
bottom->setObjectName("bootTop");
|
||||
|
||||
@@ -8,9 +8,11 @@ TMP_ARCH_DIR := ../tmp/lin/console/$(ARCH_DIR)
|
||||
TMP_DIR := $(TMP_ARCH_DIR)/$(CFG_DIR)/$(PROJECT)
|
||||
PCH_DIR := $(TMP_DIR)/$(PROJECT).gch
|
||||
DEFINES := $(CONFIG) -DTIXML_USE_STL
|
||||
LFLAGS := -Wl,-rpath,\$$ORIGIN
|
||||
LFLAGS := -Wl,-rpath,\$$ORIGIN -no-pie -Wl,--allow-multiple-definition
|
||||
LIBS := $(SDK_LIBS) -Wl,--no-as-needed -L../bin -lVMProtectSDK$(ARCH_DIR) -ldl -Wl,--as-needed
|
||||
OBJCOMP := ../bin/$(ARCH_DIR)/$(CFG_DIR)/core.a ../bin/$(ARCH_DIR)/invariant_core.a ../third-party/libffi/libffi$(ARCH_DIR).a /usr/lib/$(ARCH)/libcrypto.a
|
||||
# Linux: static libcrypto.a drags in zlib/zstd; use the shared libs instead.
|
||||
# Prebuilt libffi is non-PIE, hence -no-pie above.
|
||||
OBJCOMP := ../bin/$(ARCH_DIR)/$(CFG_DIR)/core.a ../bin/$(ARCH_DIR)/invariant_core.a ../third-party/libffi/libffi$(ARCH_DIR).a -lcrypto -lz
|
||||
DYLIBS :=
|
||||
PCH_DIR := $(TMP_DIR)
|
||||
|
||||
|
||||
@@ -33,7 +33,11 @@ int wmain(int argc, wchar_t *argv[])
|
||||
ConsoleApplication::ConsoleApplication(const std::vector<std::string> &args)
|
||||
: args_(args)
|
||||
{
|
||||
log_ << string_format("%s v %s (build %s) %s", Core::edition(), Core::version(), Core::build(), Core::copyright()) << endl;
|
||||
const char *copyright = Core::copyright();
|
||||
if (copyright && *copyright)
|
||||
log_ << string_format("%s v %s (build %s) %s", Core::edition(), Core::version(), Core::build(), copyright) << endl;
|
||||
else
|
||||
log_ << string_format("%s v %s (build %s)", Core::edition(), Core::version(), Core::build()) << endl;
|
||||
}
|
||||
|
||||
#ifdef ULTIMATE
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[TestLicense]
|
||||
AcceptedSerialNumber=SerialNumber
|
||||
UserName=VMProtect Software
|
||||
EMail=info@vmpsoft.com
|
||||
UserName=TestUser
|
||||
EMail=test@example.com
|
||||
MyHWID=+L7reY1X2iCLr+TKSsVHtQ==
|
||||
UserData=00
|
||||
+12
-6
@@ -1700,7 +1700,11 @@ bool Core::Compile()
|
||||
#endif
|
||||
|
||||
rand_seed = 0;
|
||||
#ifdef _WIN32
|
||||
OutputDebugStringA(string_format("rand_seed:%d\n", rand_seed).c_str());
|
||||
#else
|
||||
(void)rand_seed;
|
||||
#endif
|
||||
|
||||
srand(rand_seed);
|
||||
|
||||
@@ -3219,12 +3223,14 @@ bool RSA::CreateKeyPair(size_t key_length)
|
||||
delete modulus_;
|
||||
bool bInv = false;
|
||||
uint8_t *data = new uint8_t[key_length / 8 + 1];
|
||||
OpenSSL::BN_bn2bin(r->n, data);
|
||||
modulus_ = new BigNumber(data, BN_num_bytes(r->n), bInv);
|
||||
OpenSSL::BN_bn2bin(r->e, data);
|
||||
public_exp_ = new BigNumber(data, BN_num_bytes(r->e), bInv);
|
||||
OpenSSL::BN_bn2bin(r->d, data);
|
||||
private_exp_ = new BigNumber(data, BN_num_bytes(r->d), bInv);
|
||||
const OpenSSL::BIGNUM *rn = NULL, *re = NULL, *rd = NULL;
|
||||
OpenSSL::RSA_get0_key(r, &rn, &re, &rd);
|
||||
OpenSSL::BN_bn2bin(rn, data);
|
||||
modulus_ = new BigNumber(data, BN_num_bytes(rn), bInv);
|
||||
OpenSSL::BN_bn2bin(re, data);
|
||||
public_exp_ = new BigNumber(data, BN_num_bytes(re), bInv);
|
||||
OpenSSL::BN_bn2bin(rd, data);
|
||||
private_exp_ = new BigNumber(data, BN_num_bytes(rd), bInv);
|
||||
delete data;
|
||||
res = true;
|
||||
}
|
||||
|
||||
+1
-1
@@ -549,7 +549,7 @@ public:
|
||||
WatermarkManager *watermark_manager() const { return watermark_manager_; }
|
||||
ProjectTemplateManager *template_manager() const { return template_manager_; }
|
||||
Script *script() const { return script_; }
|
||||
static const char *copyright() { return "Copyright 2003-2021 VMProtect Software"; }
|
||||
static const char *copyright() { return ""; }
|
||||
static const char *edition() { return "VMProtect " EDITION; }
|
||||
static const char *version();
|
||||
static const char *build();
|
||||
|
||||
@@ -15,7 +15,11 @@
|
||||
#include "packer.h"
|
||||
#include "intel.h"
|
||||
#include "objc.h"
|
||||
#ifdef _WIN32
|
||||
#include <intrin.h>
|
||||
#else
|
||||
#include <x86intrin.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* IntelCommand
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
*/
|
||||
|
||||
#include "objects.h"
|
||||
#include <cstdarg>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define _vsnprintf_s(dest, dest_sz, cnt, fmt, args) _vsnprintf((dest), (dest_sz), (fmt), (args))
|
||||
|
||||
+4
-4
@@ -3163,7 +3163,7 @@ void PERuntimeFunctionList::ReadFromFile(PEArchitecture &file, PEDirectory &dire
|
||||
std::vector<uint8_t> call_frame_instructions;
|
||||
for (size_t i = 0; i < directory.size(); i += sizeof(data)) {
|
||||
file.Read(&data, sizeof(data));
|
||||
Add(address_ + i, data.BeginAddress + image_base, data.EndAddress + image_base, data.u.UnwindData + image_base, 0, call_frame_instructions);
|
||||
Add(address_ + i, data.BeginAddress + image_base, data.EndAddress + image_base, data.UnwindInfoAddress + image_base, 0, call_frame_instructions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3178,7 +3178,7 @@ size_t PERuntimeFunctionList::WriteToFile(PEArchitecture &file)
|
||||
PERuntimeFunction *runtime_function = item(i);
|
||||
data.BeginAddress = static_cast<uint32_t>(runtime_function->begin() - image_base);
|
||||
data.EndAddress = static_cast<uint32_t>(runtime_function->end() - image_base);
|
||||
data.u.UnwindData = static_cast<uint32_t>(runtime_function->unwind_address() - image_base);
|
||||
data.UnwindInfoAddress = static_cast<uint32_t>(runtime_function->unwind_address() - image_base);
|
||||
res += file.Write(&data, sizeof(data));
|
||||
}
|
||||
|
||||
@@ -3405,7 +3405,7 @@ void PETLSDirectory::ReadFromFile(PEArchitecture &file, PEDirectory &directory)
|
||||
address_of_index_ = tls.AddressOfIndex;
|
||||
address_of_call_backs_ = tls.AddressOfCallBacks;
|
||||
size_of_zero_fill_ = tls.SizeOfZeroFill;
|
||||
characteristics_ = tls.u.Characteristics;
|
||||
characteristics_ = tls.Characteristics;
|
||||
} else {
|
||||
IMAGE_TLS_DIRECTORY64 tls;
|
||||
file.Read(&tls, sizeof(tls));
|
||||
@@ -3414,7 +3414,7 @@ void PETLSDirectory::ReadFromFile(PEArchitecture &file, PEDirectory &directory)
|
||||
address_of_index_ = tls.AddressOfIndex;
|
||||
address_of_call_backs_ = tls.AddressOfCallBacks;
|
||||
size_of_zero_fill_ = tls.SizeOfZeroFill;
|
||||
characteristics_ = tls.u.Characteristics;
|
||||
characteristics_ = tls.Characteristics;
|
||||
}
|
||||
|
||||
if (!address_of_call_backs_)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#define CORE_PCH
|
||||
|
||||
#include "../runtime/precommon.h"
|
||||
#include <cstdarg>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <iostream>
|
||||
@@ -38,7 +39,9 @@
|
||||
#endif
|
||||
#endif
|
||||
#include <sys/mman.h>
|
||||
#ifdef __APPLE__
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
#define DUMMYUNIONNAME u
|
||||
#define DUMMYUNIONNAME2 u2
|
||||
|
||||
@@ -6,7 +6,11 @@
|
||||
#include "core.h"
|
||||
#include "processors.h"
|
||||
#include "lang.h"
|
||||
#ifdef _WIN32
|
||||
#include <intrin.h>
|
||||
#else
|
||||
#include <x86intrin.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* AddressRange
|
||||
|
||||
Binary file not shown.
@@ -201,7 +201,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -100,7 +100,7 @@ ret
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -813,7 +813,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ It also allows you to exclude certain segments of data or resources from packing
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<p>The "Go To Address" button on the toolbar allows you to go to a specified address of the protected application:</p>
|
||||
<p><img src="images/properties_dump_goto.png" /></p>
|
||||
<p>To quickly go to a certain function, start typing its name in the quick search box. You can also enter its exact address.</p>
|
||||
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
@@ -29,7 +29,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -35,7 +35,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -168,7 +168,7 @@ int VMProtectGetOfflineDeactivationString(const char *serial, char *buf, int siz
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -53,7 +53,7 @@ catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("Error: {0}", ex);
|
||||
}
|
||||
|
||||
|
||||
</pre>
|
||||
|
||||
<p>The string you copied from VMProtect should be placed to the <strong>data</strong> variable passed as a parameter to the serial number class constructor. In case of any problems occur while parsing the product data, the constructor throws an exception containing a description of the problem. If the constructor successfully finishes its work, the generator is ready to produce serial numbers.</p>
|
||||
@@ -72,7 +72,7 @@ catch (Exception ex)
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<body>
|
||||
<h1>UNIX-version</h1>
|
||||
|
||||
|
||||
<h3>Description</h3>
|
||||
|
||||
<p>The UNIX-version of the key generator is a PHP file that contains all necessary information for serial number generation. The file is located in <strong>Keygen\PHP</strong>. Below we describe the key points of using such a generator.</p>
|
||||
@@ -88,7 +88,7 @@ $exported_product_code = "oLQdGUn8kVk=";
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -47,7 +47,7 @@ int main(int argc, char **argv)
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -69,7 +69,7 @@ We are registered.
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -42,7 +42,7 @@ e-mail = john@doe.com
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -49,7 +49,7 @@ please register!
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -56,7 +56,7 @@ state = SERIAL_STATE_FLAG_RUNNING_TIME_OVER
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -63,7 +63,7 @@ I'm registered
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
|
||||
VMProtectGetCurrentHWID(buf, nSize);
|
||||
printf("HWID: %s\n", buf);
|
||||
delete [] buf;
|
||||
|
||||
|
||||
char *serial = "Xserialnumber";
|
||||
int res = VMProtectSetSerialNumber(serial);
|
||||
print_state(res);
|
||||
@@ -92,7 +92,7 @@ state = SERIAL_STATE_FLAG_BAD_HWID
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -59,7 +59,7 @@ Serial number has 8 byte(s) of data
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -92,7 +92,7 @@ state = SERIAL_STATE_FLAG_INVALID
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -48,7 +48,7 @@ done
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -59,7 +59,7 @@ done
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -63,7 +63,7 @@ serial number is correct, calling foo()
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -44,7 +44,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -32,7 +32,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -16,7 +16,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<h1>"Tools" menu</h1>
|
||||
|
||||
<p><img src="images/menu_tools.png" /></p>
|
||||
@@ -35,7 +35,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<p>To remove a file from the list of protected objects, right-click it with the mouse and choose "Delete", or simply select it and press Del.</p>
|
||||
<p><img src="images/project_file_delete.png" /></p>
|
||||
<p>By right-clicking a section name, you can exclude the file from compiling. Compilation exclusions are saved to the project file.</p>
|
||||
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
@@ -35,7 +35,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
The executable code is mutated on the processor instruction level and then is translated to the bytecode executed on a virtual machine.
|
||||
This type of compilation should be applied to all fragments of code when the speed of execution is not critical. Ultra protection provides high protection and is executed slowly.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<li id="LockToKey"><strong>Lock to Serial Number</strong> - if this option is enable, the protected function become <a href="manager/features.htm#lock">unavailable without a valid serial number entered</a>. In such a way you can limit access to certain functions of the application in the unregistered version.</li>
|
||||
</ul>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<li><strong>Strip Debug Information</strong> - removing of debug information impedes analysis of the code by a cracker.</li>
|
||||
<li><strong>Strip Relocations</strong> - some compilers (i.e. Delphi) create a relocation table for EXE files that are not used by the operating system to load EXE files. If the option is enabled, the space occupied by relocation table is be used for VM needs.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<h3>Detection</h3>
|
||||
@@ -67,11 +67,11 @@
|
||||
|
||||
<h3>Messages</h3>
|
||||
<p>Here you can customize messages the program displays when it detects a debugger, a virtualization tool, if the file is corrupted or when there's an attempt to execute the code protected by a serial number.</p>
|
||||
|
||||
|
||||
<h3 id="LicensingParameters">Licensing parameters</h3>
|
||||
|
||||
<p>Choose a project file created in the <a href="manager/licenses.htm">license manager</a> as a licensing parameter file. By default, the current project file is used.</p>
|
||||
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
@@ -79,7 +79,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -46,7 +46,7 @@ end;
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<p>You can edit the code of the script on the main panel of the section. The right-click menu allows manipulating with fragments of the code.</p>
|
||||
<p>Certain code blocks (cycles, functions) can be collapsed or expanded using a hierarchy sign (plus or minus) near the corresponding line number.</p>
|
||||
<p>Right-click the section name to exclude the script from compilation. The excluded script is not executed and is not processed by the program. This parameter is saved in the project settings.</p>
|
||||
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
@@ -27,7 +27,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -163,7 +163,7 @@ initialization
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1179,7 +1179,7 @@ class FFIFunction {
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -55,7 +55,7 @@ end</pre>
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -40,7 +40,7 @@ namespace vmprotect {
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@
|
||||
<li><a href="http://vmpsoft.com/support/user-manual-v3/">The latest version of this manual on our website</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
@@ -50,7 +50,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -88,7 +88,7 @@ VMProtectEnd
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -131,7 +131,7 @@ ret
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -1015,7 +1015,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<p>Кнопка "Перейти на адрес" на панели инструментов позволяет перейти на заданный адрес защищаемого приложения:</p>
|
||||
<p><img src="images/properties_dump_goto.png" /></p>
|
||||
<p>Для быстрого перехода к нужной функции начните вводить ее имя в строке быстрого поиска. Также можно ввести точный адрес.</p>
|
||||
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
@@ -29,7 +29,7 @@
|
||||
<hr noshade="noshade" size="1" />
|
||||
|
||||
<div align="center">
|
||||
© 2006-2015 Copyright VMProtect Software
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user