18 lines
857 B
JavaScript
18 lines
857 B
JavaScript
function main() {
|
|
const mainModule = Process.mainModule;
|
|
const baseAddress = mainModule.base;
|
|
console.log(`[*] Found main module "${mainModule.name}" at base: ${baseAddress}`);
|
|
const verificationFuncAddr = baseAddress.add(0x197f0);
|
|
console.log(`[*] Applying 'Total Replacement' to function at: ${verificationFuncAddr}`);
|
|
try {
|
|
Interceptor.replace(verificationFuncAddr, new NativeCallback(function() {
|
|
console.log(`\n[+] Total Replacement: Verification function at ${verificationFuncAddr} called.`);
|
|
console.log('[*] Total Replacement: Bypassing and returning 1 (true).');
|
|
return 1;
|
|
}, 'int', []));
|
|
console.log('[+] Total Replacement: Patch is active.');
|
|
} catch (e) {
|
|
console.log(`[!] Total Replacement: Error replacing function: ${e.message}`);
|
|
}
|
|
}
|
|
main(); |