### Compile and Install r2frida Source: https://github.com/nowsecure/r2frida/blob/master/README.md Compile r2frida from source and install it. This involves cloning the repository, running make, and then performing a user installation. ```sh $ git clone https://github.com/nowsecure/r2frida.git $ cd r2frida $ make $ make user-install ``` -------------------------------- ### Install r2frida-objection Plugin Source: https://github.com/nowsecure/r2frida/blob/master/plugins/objection/README.md Install the r2frida-objection plugin locally using make or via the r2pm package manager. ```bash make user-install ``` ```bash r2pm -ci r2frida-objection ``` -------------------------------- ### Install r2frida using r2pm Source: https://github.com/nowsecure/r2frida/wiki/Introduction Use the r2 package manager to install the r2frida plugin. ```bash r2pm -ci r2frida ``` -------------------------------- ### Spawn and Launch a New Process Source: https://github.com/nowsecure/r2frida/blob/master/doc/fortunes.txt Start a new process. Use 'spawn' to create it and wait, or 'launch' to create and immediately resume execution. ```shell r2 frida://spawn/program ``` ```shell r2 frida://launch/program ``` -------------------------------- ### Launch an app Source: https://github.com/nowsecure/r2frida/wiki/Introduction Launch an application, resuming it after spawning. This is useful for starting an application and immediately beginning analysis. You can specify the device ID or omit it. ```bash r2 frida://launch/usb/device-id/bundle-id ``` ```bash r2 frida://launch/usb//bundle-id ``` -------------------------------- ### Build r2frida Agent Source: https://github.com/nowsecure/r2frida/blob/master/AGENTS.md Use this command for the initial build of the r2frida agent. Ensure you have the necessary dependencies installed. ```shell ./configure && make -j && make user-install ``` -------------------------------- ### Output Target Information in r2 Format (:i*) Source: https://context7.com/nowsecure/r2frida/llms.txt Get target process information formatted as r2 configuration commands, useful for importing settings. ```r2 :i* ``` -------------------------------- ### List Apps on First USB Device with r2frida Source: https://context7.com/nowsecure/r2frida/llms.txt List all installed applications on the first detected USB device (typically for iOS or Android). ```bash r2 frida://launch/usb// ``` -------------------------------- ### Search for Potential Whitebox Cryptography Implementations Source: https://github.com/nowsecure/r2frida/wiki/random This example demonstrates searching for the string 'whitebox', which might indicate the presence of whitebox cryptography implementations. ```shell [0x00000000]> =!/ whitebox Searching 8 bytes in [0x0000007fa558c000-0x0000007fa558f000] Searching 8 bytes in [0x0000007feee1a000-0x0000007fef619000] hits: 7 0x7f6cf4481d hit1_0 whitebox_damagePKhPhi_Z15whitebox_repairPhS_i_Z16CryptoPP_ 0x7f6cf44837 hit1_1 whitebox_repairPhS_i_Z16CryptoPP_GenKeysSs_Z16gen_random_b 0x7f6f27c81d hit1_2 whitebox_damagePKhPhi_Z15whitebox_repairPhS_i_Z16CryptoPP_ 0x7f6f27c837 hit1_3 whitebox_repairPhS_i_Z16CryptoPP_GenKeysSs_Z16gen_random_b 0x7f6f8fd4f9 hit1_4 whiteboxed_key_gen.cG[fzM~=)j-#wTOL$C9 0x7f6fa185f0 hit1_5 whiteboxed_key_gen.c=j;h58Z=!^X).ln| 0x7f7dcb7552 hit1_6 whitebox ``` -------------------------------- ### Configure r2frida Settings Source: https://context7.com/nowsecure/r2frida/llms.txt Use ':e' to list all configuration options. Use ':e