Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个二进制文件,我想用其他值替换A2地址处的值,比如说。DEADBEEFA1
A2
DEADBEEF
A1
我该怎么做dd?如果有其他工具可以做到这一点,请提出建议。但我计划在 iPhone 上执行此操作,因此我只能使用最基本的 Unix 工具。
dd
printf '\xa1' | dd conv=notrunc of=somefile bs=1 seek=$((0xdeadbeef))