m
/ class c
/ field f
/ instance lfs
/ lfp
b
/ bt
/ nop function n
/ detachAll and clean cache D
B/BF/BN
for commonly used functions, modify function return value setFunctionXXX
, setActive
to set gameobject activeA(ptr,(args)=>{},(ret)=>{})
findMethods
/ findClasses
and call function callFunction
/ findExport
to find exports functionshowMethodInfo
help us to Simply get the details of an Il2cppMethod*, and getting the details of a game object useshowGameObject
PrintHierarchy
/ type hierarchy showTypeParent
showAsm
with frida and method information, seeHexA
means hexdumpbreakWithStack
More symbol parsing for il2cpp, breakWithArgs
just show argsHookOnPointerClick
/ HookSetActive
/ B_Button
/ HookPlayerPrefs
soon ...showComponents
alias PrintHierarchyWithComponents
is also introduced !not alway work!$ npm install il2cpp-hooker -g
then you can use like this :point_down:
$ fat
2. frida spawn app of ${PackageName}
```sh
$ fat ${PackageName}
Command line options
$ fat -h
_ _ ______ _ _
| | |(_____ \ | | | |
| | | ____) )____ ____ ____ _____| |__ ___ ___ | | _ _____ ____
| | | / ____// ___) _ \| _ (_____) _ \ / _ \ / _ \| |_/ ) ___ |/ ___)
| | || (____( (___| |_| | |_| | | | | | |_| | |_| | _ (| ____| |
|_|_|\______)____) __/| __/ |_| |_|\___/ \___/|_| \_)_____)_|
|_| |_|
Usage: fat [options] <package-name?>
Options: -h, --help Print usage information. -r, --runtime [engine] Specify the JS engine (qjs, v8). Default: v8 -t, --timeout [ms] Specify the time in milliseconds before calling the function. -f, --functions [name] Specify the functions to call on startup. example: -f getApkInfo(); -l, --log [path] Specify the path to save the log. -c, --vscode Open project with vscode. -v, --version Print version information.
Report bugs to: axhlzy axhlzy@live.cn (https://github.com/axhlzy/Il2CppHookScripts/)
-------
[<img src="https://github.com/codespaces/badge.svg" title="Open in Github Codespace">](https://codespaces.new/axhlzy/Il2CppHookScripts)
#### Compile
```sh
$ git clone https://github.com/axhlzy/Il2CppHookScripts.git
$ cd Il2cppHook/
$ npm install
$ npm run build & npm run compress
OR
$ npm run watch
$ frida -U -f com.xxx.xxx -l ../_Ufunc.js
OR
$ frida -FU -l ../_Ufunc.js
frida --codeshare axhlzy/il2cpphookscripts -U -f ${PackageName}
Requires Scientific Internet Access
[!NOTE] The npm package may not be updated in time, so you may consider using
fat -c
to open the project and use thegithub action
Artifacts to replace _Ufunc.js file. :hushed:
OR
open with vscode and search globalthis.
to find more useage
Buy the author a cup of coffee (^_^)