r/AskReverseEngineering • u/Zubastic • Sep 25 '23
Patching Mach-O files
Hello. I want to patch app for MacOS (2 bytes in it). I googled about 2 or 3 weeks in a row, but 90% information is outdated. So I try to ask question.
So my plan:
- Resigning app (signature invalidated, just change app signature to own dev one)
- Change bytes in app (this is easy one, I know what bytes I want to change).
I used different args for codesign, but no success. I removed signature before resign - no success. Now I am lack of ideas.
So problems:
- My dev signature is invalid for my OS.
- I can't debug app. I used all debuggers, but "sandbox restrictions" error.
- If I modify app with hex editor - it became not valid application with error "the application cann't be opened."
I have no experience with mac software and i make me insane. At google no information about last m1 chips (at them increased security and code signs checks).
Thanks for reading.
1
Upvotes