HINSTANCE hdll; hdll = LoadLibrary(TEXT("D:\\test\\reverse.dll")); if (hdll == NULL) { printf("Load dll Error: %d\n", GetLastError()); return0; } printf("Dll base is %llx\n", hdll);
f func = ((f)((char*)hdll + 0x17A0));
爆破长度:
1 2 3 4 5 6 7 8 9 10
int i; unsignedlonglong result; for (i = 0; i<50; i++) { result = func((longlong)&i, 4); if (result == 0xD31580A28DD8E6C4) { printf("Len is %d\n", i - 9); } }
intmain() { HINSTANCE hdll; hdll = LoadLibrary(TEXT("D:\\test\\reverse.dll")); if (hdll == NULL) { printf("Load dll Error: %d\n", GetLastError()); return0; } printf("Dll base is %llx\n", hdll);
f func = ((f)((char*)hdll + 0x17A0));
int i; unsignedlonglong result; for (i = 0; i<50; i++) { result = func((longlong)&i, 4); if (result == 0xD31580A28DD8E6C4) { printf("Len is %d\n", i - 9); } }