I want to perform a search in radare2 for an ASM pattern of the type
pop, mov, mov
that is three consecutive instructions: the first beginning with pop, the second beginning with mov and the third also.
There is a related issue of Radare2 (https://github.com/radareorg/radare2/issues/13322) and says "itss alrady implemented in /c" but /c
is now needed for Search for crypto materials.
I'm using radare2 4.5.0 on Linux.
This can be achieved with
/ad
(tested with version 4.5.0 and 5.0.1):Note: the quotes (") around the command are necessary as radare2 also uses the semicolon for chaining of commands.
For reference (radare2 5.0.1):