mirror of
https://github.com/sensepost/objection.git
synced 2026-10-11 22:29:51 +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.
objection agent
This directory contains the source code for the agent used within objection. These sources are compiled and shipped with a distribution of objection, and live in /objection/agent.js in its compiled state.
For more information, such as development environment setup instructions, please refer to the project wiki here.