- gcc
- make
- python
- frida
This project is using Python 3 syntax.
$ pip install frida
make hello
Used for version 1 (
git checkout 1
)
- Compile and run
hello
- Copy the memory address printed by
hello
(e.g.0x55cac66ea6f0
) - Replace the memory address in
explore.js
- Run
python3 explore.py
At this point, the git tag is 1
. (git checkout 1
)
Used for version 2 (
git checkout 2
)
- Compile and run
hello
- Run frida to attach to the process:
frida hello -l explore.js
- Replace the memory address specified in
explore.js
and run withfrida hello -l explore.js
No need to record the f memory location. Run the python script now, instead of frida directly.
$ python explore.py
- Replace memory address in
explore.js
with the address printed by the runninghello
progra, then run the python scriptpython explore.py
- For python3, install frida with
pip3
- If you have permission issues when attempting to attach to the
hello
process, runsudo sysctl kernel.yama.ptrace_scope=0
- To enable ES2015 syntax, use
session.enable_jit()
in the frida python script