I know we can edit opcodes in radare2's visual mode using
But is there any way to edit instructions directly in visual mode?
In my case, the instruction is:
And I want change it to:
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.Sign up to join this community
This is called assembling - the reverse of "disassembling".
You can do so with the command
wa (presumably, "write assembly"). It can be found in the Radare2 cheat sheet:
wa jnz 0x400d24