How can I remove the code signature from a binary so that I can patch it without the binary refusing to run afterwards?
Needless to say, I'm not the original creator of the binary, nor I have the certs that were used to sign the binary.
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.Sign up to join this community
First two should work the same. The
codesign flag is undocumented and so YMMV (A user reported in a comment the
codesign produced a corrupt executable).
You should use any of them with caution and backup the application before using them.