Frida Commands
The commands here can be found using \? or =! when a binary is loaded using frida by r2 frida:///path/to/binary or pip
\?Show this help\?VShow target Frida version\/[j] <string|hexpairs>Search hex/string pattern in memory ranges (see search.in=?)\/w[j] stringSearch wide string\/v[1248][j] valueSearch for a value honoringe cfg.bigendianof given width\iShow target information\ii[*]List imports\ilList libraries\is[*] <lib>List exports/entrypoints of lib\isa[*] (<lib>) <sym>Show address of symbol\ic <class>List Objective-C classes or methods of \<class>\ip <protocol>List Objective-C protocols or methods of \<protocol>\fd[*j] <address>Inverse symbol resolution\dd[-][fd] ([newfd])List, dup2 or close filedescriptors\dm[.|j|*]Show memory regions\dma <size>Allocate \<size> bytes on the heap, address is returned\dmas <string>Allocate a string inited with \<string> on the heap\dmad <addr> <size>Allocate \<size> bytes on the heap, copy contents from \<addr>\dmalList live heap allocations created with dma[s]\dma- (<addr>...)Kill the allocations at(or all of them without param) \dmp <addr> <size> <perms>Change page at \<address> with \<size>, protection \<perms> (rwx)\dpShow current pid\dptShow threads\drShow thread registers (see dpt)\env [k[=v]]Get/set environment variable\dl libnameDlopen a library\dl2 libname [main]Inject library using Frida's >= 8.2 new API\dt <addr> ..Trace list of addresses\dt-Clear all tracing\dtr <addr> (<regs>...)Trace register values-
\dtf <addr> [fmt]Trace address with format (^ixzO) (see dtf?)Usage: dtf [format] || dtf [addr] [fmt] ^ = trace onEnter instead of onExit + = show backtrace on trace x = show hexadecimal argument i = show decimal argument z = show pointer to string O = show pointer to ObjC object -
\dtSf[*j] [sym|addr]Trace address or symbol using the stalker (Frida >= 10.3.13) \dtS[*j] secondsTrace all threads for given seconds using the stalker\di[0,1,-1] [addr]Intercept and replace return value of address\dx [hexpairs]Inject code and execute it (TODO)\dxc [sym|addr] [args..]Call the target symbol with given args\e[?] [a[=b]]List/get/set config evaluable vars\. scriptRun script\<space> code..Evaluate Cycript code\eval code..Evaluate Javascript code in agent side\dcContinue