MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / find

Function find

Il2cppHook/_Ufunc.js:1242–1253  ·  view source on GitHub ↗
(pattern, callback)

Source from the content-addressed store, hash-verified

1240 return ptr("0x" + resultStr);
1241 }
1242 function find(pattern, callback) {
1243 LOG("Start Find Pattern '" + pattern + "'\nWatting ......", LogColor.C96);
1244 let addrArray = Process.enumerateRanges("r--");
1245 addrArray.forEach((item) => {
1246 Memory.scan(item.base, item.size, pattern, {
1247 onMatch: function (address, size) {
1248 callback(pattern, address, size);
1249 },
1250 onComplete: function () { }
1251 });
1252 });
1253 }
1254 function getPkgName() {
1255 let retStr = "";
1256 Java.perform(() => retStr = Java.use('android.app.ActivityThread').currentApplication().getApplicationContext().getPackageName());

Callers 1

_Ufunc.jsFile · 0.70

Calls 1

LOGFunction · 0.70

Tested by

no test coverage detected