Skip to content

Instantly share code, notes, and snippets.

@sharpicx
Last active February 26, 2024 16:29
Show Gist options
  • Save sharpicx/b90ecf63a36587091c7fe2452d919e99 to your computer and use it in GitHub Desktop.
Save sharpicx/b90ecf63a36587091c7fe2452d919e99 to your computer and use it in GitHub Desktop.
chall v2 - my company
Java.perform(function () {
var _class = Java.use("com.xxxxxx.xxxxxxxx.MainActivity");
var _class2 = Java.use("b.b.a.a.a");
var _isEmulator = _class.isEmulator;
var _root = _class2.l;
_isEmulator.implementation = function () {
return false;
};
_root.implementation = function () {
return false;
};
let C1190c = Java.use("c.a.b.b.c");
C1190c["b"].implementation = function (bArr) {
console.log(`C1190c.m213b is called: bArr=${bArr}`);
let result = this["b"](bArr);
let sb = "";
let charArray = result.split("");
for (let i = 0; i < charArray.length - 1; i += 2) {
sb += String.fromCharCode(
parseInt(charArray[i], 16) * 16 + parseInt(charArray[i + 1], 16),
);
}
console.log(sb);
return sb;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment