We iterate through the ncommands and once we find LC_MAIN we build a new entry_point_command pointer structure and we feed in the object_file which is the binary loaded, the offset and the size. After this, it is just a matter of printing the entryoff member of the entry_point_...
Recently, I bumped into a tool calledAsciinema, that allows recording and playback of terminal sessions. This differs from videos in that the terminal session’s input and output is recorded in a textual form, allowing you to e.g. copy-paste commands during playback. In order to try out ...