UNPKG

frida-il2cpp-bridge-my

Version:

(my:Support IOS)Frida module to dump, manipulate and hijack any IL2CPP application at runtime with a high level of abstraction.

32 lines (31 loc) 991 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.platformNotSupported = exports.inform = exports.warn = exports.ok = exports.raise = void 0; const NAME = "il2cpp"; const RED = `\x1b[31m[${NAME}]\x1b[0m`; const GREEN = `\x1b[32m[${NAME}]\x1b[0m`; const YELLOW = `\x1b[33m[${NAME}]\x1b[0m`; const BLUE = `\x1b[34m[${NAME}]\x1b[0m`; const MAGENTA = `\x1b[35m[${NAME}]\x1b[0m`; function raise(message) { const error = new Error(message); error.stack = error.stack?.replace("Error:", RED); throw error; } exports.raise = raise; function ok(message) { console.log(GREEN + " " + message); } exports.ok = ok; function warn(message) { console.log(YELLOW + " " + message); } exports.warn = warn; function inform(message) { console.log(BLUE + " " + message); } exports.inform = inform; function platformNotSupported() { raise(`Platform "${Process.platform}" is not supported yet.`); } exports.platformNotSupported = platformNotSupported;