Here are some few commands to edit an hexadecimal file using vi:
vi file.hex
#now editing in vi
[esc] :%!xxd
#now editing file.hex in hex
#find some innocuous string or rcsid
#change the values on the hex side
[esc] :%!xxd -r
[esc] :wq!
#Now have a look on the file just created
hexdump file.hex
Wednesday, March 19, 2008
Hex Edit using VI
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment