Frida: Difference between revisions
imported>Mic92 No edit summary |
imported>Mic92 NUR first! |
||
| Line 1: | Line 1: | ||
[https://www.frida.re Frida] is a dynamic binary instrumentation framework. | [https://www.frida.re Frida] is a dynamic binary instrumentation framework. | ||
== | == Using the Mic92's NUR package == | ||
The project provides pre-compiled binaries that almost work out of the box (when installed via <code> pip install frida</code>) | |||
Setup [https://github.com/nix-community/NUR NUR] as described. | |||
Then install frida from Mic92's repository: | |||
<syntaxHighlight lang=console> | |||
$ nix-shell -p nur.repos.mic92.frida-tools | |||
nix-shell> frida-trace -i "recv*" firefox | |||
</syntaxHighlight> | |||
The python bindings are available via <code>nur.repos.mic92.python3Packages.frida</code> | |||
== Using frida's own binaries == | |||
The project provides pre-compiled binaries that almost work out of the box (when installed via <code> pip install frida-tools</code>) | |||
However at runtime it unpacks a helper called <code>frida-helper-64</code> that uses <code>/lib64/ld-linux-x86-64.so.2</code> as its link-loader. | However at runtime it unpacks a helper called <code>frida-helper-64</code> that uses <code>/lib64/ld-linux-x86-64.so.2</code> as its link-loader. | ||
The error message will be similar to this one: | The error message will be similar to this one: | ||
| Line 19: | Line 31: | ||
/nix/store/83lrbvbmxrgv7iz49mgd42yvhi473xp6-glibc-2.27/lib/ld-linux-x86-64.so.2 => /nix/store/83lrbvbmxrgv7iz49mgd42yvhi473xp6-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007fa78b289000) | /nix/store/83lrbvbmxrgv7iz49mgd42yvhi473xp6-glibc-2.27/lib/ld-linux-x86-64.so.2 => /nix/store/83lrbvbmxrgv7iz49mgd42yvhi473xp6-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007fa78b289000) | ||
$ ln -s /nix/store/83lrbvbmxrgv7iz49mgd42yvhi473xp6-glibc-2.27/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 | $ ln -s /nix/store/83lrbvbmxrgv7iz49mgd42yvhi473xp6-glibc-2.27/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 | ||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 83: | Line 85: | ||
$ pip install dist/frida-*.whl | $ pip install dist/frida-*.whl | ||
</syntaxHighlight> | </syntaxHighlight> | ||