/ Search for bytes, regexps, patterns, ..
Usage: /[!bf] [arg]Search stuff (see 'e??search' for options)
Use io.va for searching in non virtual addressing spaces
Tips
- To search for hexadecimal representation of a string, prepend the string with a
\x. For example,/ \xELFwill search for the hexadecimal represenation of ELF / foo\x00🚀 search for string 'foo\0' asciinema/j foo\x00🚀 search for string 'foo\0' (json output) asciinema/! ffsearch for first occurrence not matching, command modifier/!x 00inverse hexa search (find first byte != 0x00)/+ /bin/sh🚀 construct the string with chunks asciinema//repeat last search/a jmp eaxassemble opcode and search its bytes-
🚀 Example:
/a jmp eaxasciinema -
/bsearch backwards, command modifier, followed by other command -
/Bsearch recognized RBin headers -
/ce rsp,rbpsearch for esil expressions matching -
/d 101112search for a deltified sequence of bytes /e /E.F/isearch/match regular expression/E esil-exproffset matching given esil expressions %%= here/fsearch forwards, command modifier, followed by other command/g[g] [from]find all graph paths A to B (/gg follow jumps, see search.count and anal.depth)/F file [off] [sz]search contents of file with offset and size/h[t] [hash] [len]find block matching this hash. See /#?/i foo🚀 search for string 'foo' ignoring case asciinema/m[j] magicfilesearch for matching magic file (use blocksize)-
🚀 Use this to search for magic headers inside the binary. Similar to foremost. Example (pcap): asciinema
-
Use
/mto look for magic signatures at every offset. This can be defined withsearch.in./mcan be used to identify files in memory as an example. /meDoesnt really do anything 😕/Msearch for known filesystems and mount them automatically/o [n]show offset of n instructions backward/p patternsize🚀 search for pattern of given size asciinema/P patternsize🚀 search similar blocks asciinema
-
-
/r[erwx][?] sym.printfanalyze opcode reference an offset (/re for esil) -
/R [grepopcode]search for matching ROP gadgets, semicolon-separated -
/v[j1248] valuelook for ancfg.bigendian32bit value /V[j1248] min maxlook for ancfg.bigendian32bit value in range/w foosearch for wide string 'f\0o\0o\0'-
/wi foosearch for wide string ignoring case 'f\0o\0o\0' -
/z min maxsearch for strings of given size