mirror of
https://github.com/sensepost/objection.git
synced 2026-10-12 02:22:18 +00:00
Unfortunately, NPM 12 adds a new feature, where it will silently skip
running post-install scripts, without telling you, unless you
explicitly configure it otherwise for every individual dependency.
As a result, if you checkout Objection onto a machine running NPM 12,
and run "npm install" in the agent directory, then it will error out
with:
Error: Could not locate the bindings file.
Which happens because the npm install runs the prepare script in the
agent package.json, which runs the build script, which invokes
frida-compile, which expects for its frida dependency to have been
actually installed properly.
Unfortunately, the npm install output makes absolutely no mention of
the fact that a post-install script was silently skipped. Even in the
debug logfile that it tells you about in the command output. I don't
know why this is the case. If you npm install frida just by itself,
then it does print a warning explaining the problem, but not if it's a
dependency.
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"name": "objection",
|
|
"version": "0.0.0",
|
|
"description": "Runtime Mobile Exploration",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"prepare": "npm run build",
|
|
"build": "frida-compile src/index.ts -o ../objection/agent.js -T none",
|
|
"watch": "frida-compile src/index.ts -o ../objection/agent.js -w",
|
|
"lint": "tslint -c tslint.json 'src/**/*.ts'"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/sensepost/objection.git"
|
|
},
|
|
"keywords": [
|
|
"frida",
|
|
"runtime",
|
|
"mobile",
|
|
"security",
|
|
"objection"
|
|
],
|
|
"author": "Leon Jacobs",
|
|
"license": "GPL-3.0",
|
|
"bugs": {
|
|
"url": "https://github.com/sensepost/objection/issues"
|
|
},
|
|
"homepage": "https://github.com/sensepost/objection#readme",
|
|
"dependencies": {
|
|
"frida-fs": "^7.0.0",
|
|
"frida-java-bridge": "^7",
|
|
"frida-objc-bridge": "^8",
|
|
"frida-screenshot": "^6",
|
|
"macho-ts": "^0.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/frida-gum": "^19",
|
|
"@types/node": "^24",
|
|
"frida-compile": "^19",
|
|
"tslint": "^6"
|
|
},
|
|
"allowScripts": {
|
|
"[email protected]": true
|
|
}
|
|
}
|