-
Notifications
You must be signed in to change notification settings - Fork 213
Installation
vfsfitvnm edited this page Jun 25, 2023
·
6 revisions
This is a Frida TypeScript module, so it follows any other TypeScript (npm
) project:
playground
├── index.ts
├── package.json
└── tsconfig.json
This is how it should looke like:
index.ts
This is where you write the code. More info here.
import "frida-il2cpp-bridge";
Il2Cpp.perform(() => {
// code here
});
packages.json
This is where you can declare scripts (commands to execute) and dependencies.
frida-compile
packs and transpile a multi file project with its dependencies into a single plain JavaScript file
(its name is _.js
here).
Learn more about packages.json
here.
{
"name": "playground",
"main": "index.ts",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "frida-compile -o _.js -w index.ts",
"attach": "run() { frida -U \"$1\" -l _.js --runtime=v8; }; run",
"spawn": "run() { frida -U -f \"$1\" -l _.js --no-pause --runtime=v8; }; run",
"app0-spawn": "npm run spawn com.example.application0",
"app1": "npm run \"Application1 Name\"",
"app1-spawn": "npm run spawn com.example.application1"
},
"devDependencies": {
"@types/frida-gum": "^18.3.1",
"frida-compile": "^16.2.2",
"frida-il2cpp-bridge": "*"
}
}
tsconfig.json
You can just copy and paste this.
Learn more about tsconfig.json
here.
{
"compilerOptions": {
"target": "esnext",
"lib": [ "es2022" ],
"experimentalDecorators": true,
"module": "esnext",
"allowJs": false,
"noEmit": false,
"esModuleInterop": false,
"moduleResolution": "nodenext",
"strict": true,
"sourceMap": true
},
"files": [ "index.ts" ]
}
If you just want to add this module to an already existing project:
$ npm install --save-dev frida-il2cpp-bridge
You need to add "moduleResolution": "node"
or in your tsconfig.json
under compilerOptions
.