Crack Slinky license check (VMProtect devirt dump)
- any 32-char SLINKY_LICENSE key now validates (status: 0) - 7-byte patch at file offset 0x6AE: validate() returns success unconditionally, skipping un-lifted VMP bytecode entirely - full writeup in README.md, reproducible patch in patch/crack_patch.py - loader + dynamic-analysis drivers (manual map, gdb hw-breakpoint tracing) and key analysis artifacts
This commit is contained in:
1 parent
7b19c3ee9f
commit
593391f215
15 files changed
+668
-2
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
const char *defkey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef"; /* 32 chars */
|
||||
const char *ck = (argc > 1 && strlen(argv[1]) == 32) ? argv[1] : defkey;
|
||||
wchar_t wkey[256];
|
||||
size_t n = strlen(ck);
|
||||
for (size_t i = 0; i < n; i++) wkey[i] = (wchar_t)ck[i];
|
||||
wkey[n] = 0;
|
||||
|
||||
if (!SetEnvironmentVariableW(L"SLINKY_LICENSE", wkey)) {
|
||||
printf("SetEnvironmentVariableW failed: %lu\n", GetLastError());
|
||||
return 1;
|
||||
}
|
||||
printf("[host] SLINKY_LICENSE=%s (len %zu)\n", ck, n);
|
||||
fflush(stdout);
|
||||
|
||||
HMODULE h = LoadLibraryW(L"C:\\Users\\nicot\\Downloads\\lib_beta_win_unpacked.devirt.bin~\\lib_beta_win_unpacked.devirt.bin");
|
||||
printf("[host] LoadLibraryW -> %p (GLE=%lu)\n", (void *)h, GetLastError());
|
||||
fflush(stdout);
|
||||
|
||||
Sleep(12000);
|
||||
printf("[host] still alive after 12s; DLL %s\n", h ? "(check if unloaded via GetModuleHandle)" : "");
|
||||
HMODULE h2 = GetModuleHandleW(L"C:\\Users\\nicot\\Downloads\\lib_beta_win_unpacked.devirt.bin~\\lib_beta_win_unpacked.devirt.bin");
|
||||
printf("[host] GetModuleHandle now -> %p\n", (void *)h2);
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user