💾 Archived View for radare.org › book › visual_mode › visual_assembler.gmi captured on 2023-11-04 at 11:46:04. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Visual Assembler

You can use Visual Mode to assemble code using `A`.

For example let's replace the `push` by a `jmp`:

Before[1]

1: Before

Notice the preview of the disassembly and arrows:

After[1]

1: After

You need to open the file in writing mode (`r2 -w` or `oo+`) in order to patch the file.

You can also use the cache mode: `e io.cache = true` and `wc?`.

Remember that patching files in debug mode only patch the memory not the file.