Installation
Getting Frida installed and ready-to-go should only take a few minutes. If it ever becomes a pain in the ass, please file an issue (or submit a pull request) describing the issue you encountered and how we might make the process easier.
Requirements for Frida’s CLI tools
Installing Frida’s CLI tools is easy and straight-forward, but there are a few requirements you’ll need to make sure your system has before you start.
- Python – latest 3.x is highly recommended
- Windows, macOS, or GNU/Linux
Install with pip
The best way to install Frida’s CLI tools is via PyPI:
If you have problems installing Frida, check out the troubleshooting page or report an issue so the Frida community can improve the experience for everyone.
Install manually
You can also grab other binaries from Frida’s GitHub releases page.
Testing your installation
Start a process we can inject into:
Just let it sit and wait for input. On Windows you might want to use
notepad.exe
.
Note that this example won’t work on macOS El Capitan and later, as it rejects
such attempts for system binaries. See here
for more details. However, if you copy the cat
binary to e.g., /tmp/cat
then
run that instead the example should work:
In another terminal, make a file example.py with the following contents:
If you are on GNU/Linux, issue:
to enable ptracing non-child processes.
At this point, we are ready to take Frida for a spin! Run the example.py script and watch the magic:
The output should be something similar to this (depending on your platform and library versions):