aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2025-04-13 21:30:54 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2025-04-13 21:30:54 +0200
commit5742a07bd78e0b815fe6f04eb48e47152e842a7b (patch)
tree0f509505488b2b32c3ee615dfafee016b1338a4f
parent773d9b46ee3b1b88a94e69f42ea42654c63c48ec (diff)
downloadnotes-5742a07bd78e0b815fe6f04eb48e47152e842a7b.tar.gz
notes-5742a07bd78e0b815fe6f04eb48e47152e842a7b.zip
xxd: patch binary file in hex mode
-rw-r--r--src/binary/xxd.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/binary/xxd.md b/src/binary/xxd.md
index cd76f14..8ff7a37 100644
--- a/src/binary/xxd.md
+++ b/src/binary/xxd.md
@@ -34,3 +34,10 @@
>> };
>> unsigned int _proc_self_fd_11_len = 4;
```
+
+## Patching binary file by hand in hex mode
+```markdown
+ xxd /bin/ls > ls.hex
+ # edit binary file in hex format (ascii)
+ xxd -r ls.hex > ls
+```