mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 18:27:18 +00:00
28 lines
457 B
Plaintext
28 lines
457 B
Plaintext
RAPATCH
|
|
=======
|
|
|
|
Rapatch is a human friendly text format to apply patches
|
|
to binary files.
|
|
|
|
Patch format
|
|
============
|
|
|
|
^# -> comments
|
|
. -> execute command
|
|
! -> execute command
|
|
OFFSET { code block }
|
|
OFFSET "string"
|
|
OFFSET 01020304
|
|
OFFSET : assembly
|
|
+ {code}|"str"|0210|: asm
|
|
|
|
Example scripts
|
|
---------------
|
|
This script will run the '?e ..' command in r2 and then
|
|
write the string 'Hello' at 0x200 offset
|
|
|
|
# rapatch example
|
|
:?e hello world
|
|
0x200 "Hello"
|
|
|