@@ Run a for loop
Repeat a command over a list of offsets
Tips
- Example:
wx 90 @@ /x80. This will replace all hex 80 with hex 90 - Use
@@as a replacement for a for i in x loop (iterator). Example:axt @@ str.*will look for xref of all strings and return thier offsets.
x @@ sym.*run 'x' over all flags matching 'sym.' in current flagspacex @@dbt[abs]run 'x' command on every backtrace address, bp or spx @@.filerun 'x' over the offsets specified in the file (one offset per line)x @@=off1 off2 ..manual list of offsets-
🚀
x@@=Run query over multiple offsets asciinema x @@/x 9090temporary set cmd.hit to run a command on each search result-
⭐
@@/Can be used to search and replace something. Usage in this case isw mystring_replace @@/ mystring_to_search x @@k sdbqueryrun 'x' on all offsets returned by that sdbqueryx @@trun 'x' on all threads (see dp)x @@brun 'x' on all basic blocks of current function (see afb)x @@irun 'x' on all instructions of the current function (see pdr)x @@iSrun 'x' on all sections adjusting blocksizex @@frun 'x' on all functions (see aflq)x @@f:writerun 'x' on all functions matching write in the namex @@s:from to steprun 'x' on all offsets from, to incrementing by stepx @@c:cmdthe same as @@=`` without the backticksx @@=pdf~call[0]run 'x' at every call offset of the current function-
🚀⭐
@@=can be used to loop over the output of a command and run another command against it. asciinema
search and replace