4 ms·
When do you need man ascii and xxd? I'm a front-end developer so I have no clue about these low-level things but I'm interested and would like to learn.
by Kiro 13y ago
When do you need man ascii and xxd? I'm a front-end developer so I have no clue about these low-level things but I'm interested and would like to learn.
- F30 13y agoThere are a lot of usecases for bot of them, mostly debugging I's say. So I'm gonna tell you what I used them for in the past months: The ASCII table might be useful when you're dealing with encoding problems and want to know e.g. what exactly happened in a broken URL encoding. I used both of them for binary exploitation in the security class I took at university: When utilizing buffer overflows, it's important to get every byte at the right place of your payload. Sometimes, you also need to treat it as a string and that's where ASCII comes in. These are only two specific usecases. As I said, there are a lot more. Development of binary file parsers could be another.
- cmhamill 13y agoThis is a very silly use, but I use `ascii` when I can't distinguish between 0 and O in a font ? `ascii 0`, for example, clears that right up.