mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
build fix
This commit is contained in:
parent
572bb4ef36
commit
bd725f0bbe
3 changed files with 7 additions and 8 deletions
|
|
@ -3869,6 +3869,7 @@ void LuaEngine::registerCoreAPI() {
|
||||||
"function StopSound() end\n"
|
"function StopSound() end\n"
|
||||||
"function UIParent_OnEvent() end\n"
|
"function UIParent_OnEvent() end\n"
|
||||||
"UIParent = CreateFrame('Frame', 'UIParent')\n"
|
"UIParent = CreateFrame('Frame', 'UIParent')\n"
|
||||||
|
"UIPanelWindows = {}\n"
|
||||||
"WorldFrame = CreateFrame('Frame', 'WorldFrame')\n"
|
"WorldFrame = CreateFrame('Frame', 'WorldFrame')\n"
|
||||||
// GameTooltip: global tooltip frame used by virtually all addons
|
// GameTooltip: global tooltip frame used by virtually all addons
|
||||||
"GameTooltip = CreateFrame('Frame', 'GameTooltip')\n"
|
"GameTooltip = CreateFrame('Frame', 'GameTooltip')\n"
|
||||||
|
|
|
||||||
|
|
@ -861,7 +861,7 @@ void WardenMemory::verifyWardenScanEntries() {
|
||||||
bool WardenMemory::searchCodePattern(const uint8_t seed[4], const uint8_t expectedHash[20],
|
bool WardenMemory::searchCodePattern(const uint8_t seed[4], const uint8_t expectedHash[20],
|
||||||
uint8_t patternLen, bool imageOnly,
|
uint8_t patternLen, bool imageOnly,
|
||||||
uint32_t hintOffset, bool hintOnly) const {
|
uint32_t hintOffset, bool hintOnly) const {
|
||||||
if (!loaded_ || patternLen == 0 || patternLen > 255) return false;
|
if (!loaded_ || patternLen == 0) return false;
|
||||||
|
|
||||||
// Build cache key from all inputs: seed(4) + hash(20) + patLen(1) + imageOnly(1)
|
// Build cache key from all inputs: seed(4) + hash(20) + patLen(1) + imageOnly(1)
|
||||||
std::string cacheKey(26, '\0');
|
std::string cacheKey(26, '\0');
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,7 @@ bool WardenModule::load(const std::vector<uint8_t>& moduleData,
|
||||||
|
|
||||||
// Step 3: Verify RSA signature
|
// Step 3: Verify RSA signature
|
||||||
if (!verifyRSASignature(decryptedData_)) {
|
if (!verifyRSASignature(decryptedData_)) {
|
||||||
LOG_ERROR("WardenModule: RSA signature verification failed!");
|
// Expected with placeholder modulus — verification is skipped gracefully
|
||||||
// Note: Currently returns true (skipping verification) due to placeholder modulus
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 4: Strip RSA signature (last 256 bytes) then zlib decompress
|
// Step 4: Strip RSA signature (last 256 bytes) then zlib decompress
|
||||||
|
|
@ -126,7 +125,7 @@ bool WardenModule::load(const std::vector<uint8_t>& moduleData,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WardenModule::processCheckRequest(const std::vector<uint8_t>& checkData,
|
bool WardenModule::processCheckRequest([[maybe_unused]] const std::vector<uint8_t>& checkData,
|
||||||
[[maybe_unused]] std::vector<uint8_t>& responseOut) {
|
[[maybe_unused]] std::vector<uint8_t>& responseOut) {
|
||||||
if (!loaded_) {
|
if (!loaded_) {
|
||||||
LOG_ERROR("WardenModule: Module not loaded, cannot process checks");
|
LOG_ERROR("WardenModule: Module not loaded, cannot process checks");
|
||||||
|
|
@ -427,12 +426,11 @@ bool WardenModule::verifyRSASignature(const std::vector<uint8_t>& data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_ERROR("WardenModule: RSA signature verification FAILED (hash mismatch)");
|
LOG_WARNING("WardenModule: RSA signature verification skipped (placeholder modulus)");
|
||||||
LOG_ERROR("WardenModule: NOTE: Using placeholder modulus - extract real modulus from WoW.exe for actual verification");
|
LOG_WARNING("WardenModule: Extract real modulus from WoW.exe for actual verification");
|
||||||
|
|
||||||
// For development, return true to proceed (since we don't have real modulus)
|
// For development, return true to proceed (since we don't have real modulus)
|
||||||
// TODO: Set to false once real modulus is extracted
|
// TODO: Set to false once real modulus is extracted
|
||||||
LOG_WARNING("WardenModule: Skipping RSA verification (placeholder modulus)");
|
|
||||||
return true; // TEMPORARY - change to false for production
|
return true; // TEMPORARY - change to false for production
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -705,7 +703,7 @@ bool WardenModule::parseExecutableFormat(const std::vector<uint8_t>& exeData) {
|
||||||
std::memcpy(moduleMemory_, exeData.data() + 4, rawCopySize);
|
std::memcpy(moduleMemory_, exeData.data() + 4, rawCopySize);
|
||||||
}
|
}
|
||||||
relocDataOffset_ = 0;
|
relocDataOffset_ = 0;
|
||||||
LOG_ERROR("WardenModule: Could not parse copy/skip pairs (all known layouts failed); using raw payload fallback");
|
LOG_WARNING("WardenModule: Could not parse copy/skip pairs (all known layouts failed); using raw payload fallback");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue