From d9a14daa00e62de637c063f357c38cd86efd7666 Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 30 Apr 2022 17:43:08 +0000 Subject: deploy: f33fbacc6aaa54599458ac3eb375708650656010 --- tools/radare2.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tools/radare2.html') diff --git a/tools/radare2.html b/tools/radare2.html index 3ff0028..2c53707 100644 --- a/tools/radare2.html +++ b/tools/radare2.html @@ -81,7 +81,7 @@ @@ -171,6 +171,22 @@
  > r2 -B <baddr> <exe>         # open <exe> mapped to addr <baddr>
   oob <addr>                    # reopen current file at <baddr>
 
+

Examples

+

Patch file (alter bytes)

+
  > r2 [-w] <file>
+  oo+           # re-open for write if -w was not passed
+  s <addr>      # seek to position
+  wv <data>     # write 4 byte (dword)
+
+

Assemble / Disassmble (rasm2)

+
  rasm2 -L      # list supported archs
+
+  > rasm2 -a x86 'mov eax, 0xdeadbeef'
+  b8efbeadde
+
+  > rasm2 -a x86 -d "b8efbeadde"
+  mov eax, 0xdeadbeef
+
-- cgit v1.2.3