Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The entry point for a mach-o executable can be obtained by using the "otool" command in the terminal.

  1. Open Terminal.

  2. Navigate to the directory where the mach-o executable is located by using the cd command.

  3. Type the following command:

    otool -l <filename>

    Replace <filename> with the name of the mach-o executable.

  4. Search for the LC_MAIN section in the output. The value in the "entryoff" field is the entry point for the executable.

Alternatively, the entry point can also be found using a disassembler tool such as Hopper Disassembler or IDA Pro.