Closed eddynaka closed 3 years ago
Hi Eddy, What do you mean by retrieving a command line? The arguments? Those are generally tied to a given execution, not to the binary per se.
As for the second question: nope, this is not safe in general. Segment can contain a lot different data, strings can only be part of it. To extract strings from a binary file, you can use strings
program.
HI @konrad-kruczynski , for an ELF binary, if we load it correctly, we can see the command line that generated the binary. My question is: is it possible to do the same in the mach-o?
Ok, that command line. I don't have any knowledge about that though.
I'm closing the issue now, please reopen if necessary.
Hi,
I have been trying to read a mach-o binary.
Looking at the tests, I got the segments, for example, and I understood how to fetch the data inside it. But there are things that I couldn't locate:
Just to let you know, I generated a sample using the following command in a Mac:
thank you!