DEFCON30, Mayhem CTF. We were given a file full of random bytes. The flag was in there somewhere. It was too random to be encrypted, there wasn't any structure. `file` didn't return anything, truly just a bag of bytes. I had decided to install `hexyl` as an alternative option to some of the other hex editors installed o my linux machine. All the bytes were colored grey. I scrolled the file and noticed a blip of yello…
Your hex editor should color-code bytes
91–100 of 165 posts
Re: Your hex editor should color-code bytes
#92https://github.com/0xfalafel/hextazy
Some nice features are:
- robust undo
- insertions (not just overwriting)
- inspect the value of selected bytes
- search
I have also recently discover this other project that is pretty cool: https://github.com/mentebinaria/dz6
Re: Your hex editor should color-code bytes
#93DEFCON30, Mayhem CTF. We were given a file full of random bytes. The flag was in there somewhere. It was too random to be encrypted, there wasn't any structure. `file` didn't return anything, truly just a bag of bytes. I had decided to install `hexyl` as an alternative option to some of the other hex editors installed o my linux machine. All the bytes were colored grey. I scrolled the file and noticed a blip of yello…
Re: Your hex editor should color-code bytes
#94Earlier quoted context omitted.
> It was too random to be encrypted That's a rather odd remark.
You would still expect some amount of file structure, ex byte headers or something at the beginning/end of file. no?
Re: Your hex editor should color-code bytes
#95Emacs's hexl-mode does this, incidentally, though annoyingly by default it makes all faces the same color. I never understood why it defines the faces but then doesn't customize them.
What exactly does it do? I'm looking at hexl-mode sources in my Emacs, and I see it defining only two faces - hexl-address-region and hexl-ascii-region.
Re: Your hex editor should color-code bytes
#96Earlier quoted context omitted.
> It was too random to be encrypted That's a rather odd remark.
You would still expect some amount of file structure, ex byte headers or something at the beginning/end of file. no?
Re: Your hex editor should color-code bytes
#97Re: Your hex editor should color-code bytes
#98Earlier quoted context omitted.
Yes. https://docs.werwolv.net/imhex#screenshots
as far as i can tell, no it does not. it only desaturates 00 in particular. the other colors you see in the screenshots come from matched formats/patterns. it does not do direct coloring based on byte value.
Re: Your hex editor should color-code bytes
#99For anyone who regularly has to look at/analyze binary files, i highly recommend ImHex [1]. Its a hex editor built with imgui and has a lot of built in tools. Imo the best feature is the data structure editor. You can write a data type definition similar to C and it overlays it on the hexdump and parses it in a structured way while you type. It also has a node based editor. 1: https://github.com/WerWolv/ImHex
Re: Your hex editor should color-code bytes
#100DEFCON30, Mayhem CTF. We were given a file full of random bytes. The flag was in there somewhere. It was too random to be encrypted, there wasn't any structure. `file` didn't return anything, truly just a bag of bytes. I had decided to install `hexyl` as an alternative option to some of the other hex editors installed o my linux machine. All the bytes were colored grey. I scrolled the file and noticed a blip of yello…
Wouldn't strings(1) have worked for this?