Search This Blog

Wednesday, March 16, 2011

Using vim as a hex editor

Switch to hex mode
Open a file in vim, hit escape and type:
:%!xxd

to exit from hex mode
hit escape again and type:
:%!xxd -r

Search Hex using vim
\%xff or [\xff]

Search 44
\%x34\%x34 or [\x34][\x34]

No comments:

Post a Comment