diff --git a/tldr/frida b/tldr/frida new file mode 100644 index 00000000..6e2b8a95 --- /dev/null +++ b/tldr/frida @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# frida + +> A dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers. +> More information: . + +- Start the interactive shell (REPL) attached to a running process: + +`frida {{process_name}}` + +- Start the interactive shell attached to a process over USB: + +`frida {{[-U|--usb]}} {{process_name}}` + +- Attach to a running process by its PID: + +`frida {{[-p|--attach-pid]}} {{pid}}` + +- Load a JavaScript script into a process: + +`frida {{[-l|--load]}} {{path/to/script.js}} {{process_name}}` + +- Load a script from Frida Codeshare : + +`frida {{[-c|--codeshare]}} {{script_name}} {{process_name}}` diff --git a/tldr/frida-ps b/tldr/frida-ps new file mode 100644 index 00000000..c55ba48a --- /dev/null +++ b/tldr/frida-ps @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# frida-ps + +> List processes on a local or remote device. +> More information: . + +- List all running processes on the local machine: + +`frida-ps` + +- List all running processes on a USB-connected device: + +`frida-ps {{[-U|--usb]}}` + +- List all running applications on a USB-connected device: + +`frida-ps {{[-U|--usb]}} {{[-a|--applications]}}` + +- List all installed applications on a USB-connected device: + +`frida-ps {{[-U|--usb]}} {{[-i|--installed]}}` + +- List processes on a specific device: + +`frida-ps {{[-D|--device]}} {{device_id}}` diff --git a/tldr/frida-trace b/tldr/frida-trace new file mode 100644 index 00000000..c91b2c86 --- /dev/null +++ b/tldr/frida-trace @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# frida-trace + +> Dynamically trace function calls. +> More information: . + +- Trace all functions matching a pattern in a process: + +`frida-trace {{[-i|--include]}} "{{wildcard}}" {{process_name}}` + +- Trace a specific function in a process: + +`frida-trace {{[-i|--include]}} "{{function_name}}" {{process_name}}` + +- Trace all functions in a specific module: + +`frida-trace {{[-I|--include-module]}} "{{module_name}}" {{process_name}}` + +- Trace a function on a USB-connected device: + +`frida-trace {{[-U|--usb]}} {{[-i|--include]}} "{{function_name}}" {{process_name}}` + +- Spawn a process and trace a function: + +`frida-trace {{[-f|--file]}} {{path/to/executable}} {{[-i|--include]}} "{{function_name}}"` diff --git a/tldr/mp4decrypt b/tldr/mp4decrypt new file mode 100644 index 00000000..82ca57d5 --- /dev/null +++ b/tldr/mp4decrypt @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# mp4decrypt + +> Decrypt an MP4 file. +> Part of the Bento4 tools. +> More information: . + +- Decrypt a file using a specific key (key ID in hex, key in hex): + +`mp4decrypt --key {{key_id_hex}}:{{key_hex}} {{path/to/input_file.mp4}} {{path/to/output_file.mp4}}` + +- Decrypt a file using a specific key for a track ID (track ID in decimal, key in hex): + +`mp4decrypt --key {{track_id}}:{{key_hex}} {{path/to/input_file.mp4}} {{path/to/output_file.mp4}}` + +- Decrypt a file using multiple keys while displaying the progress of the decryption: + +`mp4decrypt --key {{key_id_1}}:{{key_1}} --key {{key_id_2}}:{{key_2}} --show-progress {{path/to/input_file.mp4}} {{path/to/output_file.mp4}}`