Write byte at address (hexedit/modify binary from the command line)

前端 未结 8 874
轻奢々
轻奢々 2020-12-02 12:25

Is there any straightforward way to modify a binary from the commandline? Let\'s say I know that my binary contains 1234abcd and i want to change it to 12FFabcd or FFFFabcd

8条回答
  •  醉酒成梦
    2020-12-02 12:45

    xxd tool, which comes with vim (and thus is quite likely to be available) allows to hex dump a binary file and construct a new binary file from a modified hex dump.

提交回复
热议问题