How to view sections & addresses of .bin and .hex files in Linux?

How to view sections & addresses of .bin and .hex files in Linux?

I have started reversing a binary. I dumped the contents as hex using xxd into a file I made with extension .hex, then used objdump to disassemble that .hex file into assembly code, and put this into a .txt file.

Is there a way using terminal to view sections & addresses of .bin and .hex files in Linux? - This would help me in the reversing of the binary / hex data in the files.

I have come across the size command, but this cannot handle .bin or .hex files - File format not recognised

答案1

You can use vim's :%!xxd command to view a file in a hex editor-like mode. While it's far from the best thing out there for editing binary files, it's certainly suitable for browsing a hex file and jumping to specific addresses. If you use this mode, do note that the file is still being edited as if it were a text file; I would recommend another solution for editing.

相关内容