macho_edit | Command line utility for modifying Mach | Reverse Engineering library
kandi X-RAY | macho_edit Summary
kandi X-RAY | macho_edit Summary
Command line utility for modifying [Mach-O] binaries in various ways. To remove the code signature it is enough to delete the LC_CODE_SIGNATURE load command and fixup the mach header’s ncmds and sizeofcmds, assuming it is the last load command.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of macho_edit
macho_edit Key Features
macho_edit Examples and Code Snippets
Community Discussions
Trending Discussions on macho_edit
QUESTION
(See Updates at end of this post)
For $reasons, I need to codesign an old Director projector that we can no longer re-publish (no access to original source code or to Director).
I'm doing this because when run without being signed, the app now opens a Finder window with a prompt saying "Where is..." asking for a file that's one of the embedded projector resources.
But... If I cd
into the Projector.app
contents (it's not really called that, but you get the idea) and find the projector binary inside Contents/MacOS/
and run this binary from terminal, the app launches and runs fine, once it's decompressed the (presumably) attached archive at the end of the binary...
ANSWER
Answered 2018-Feb-28 at 11:00DIrector uses a scheme widely used on Windows called "Overload". I attaches some data at the end of the physical file, but beyond the size of the executable image. This approach is not supported with Mach-O files. The physical image has to end with the last byte covered by the LINKEDIT segment, and even the order of items inside the LINKEDIT segment is well defined. Reason for this was prebinding in the past, now it is codesigning.
The appended data is the initial DIR/DXR Directory wants to load first. I guess this has been fixed later by adding the DIR/DXR into the application bundle. But I am not anymore into Director, so I am not sure about this.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install macho_edit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page