Is it possible to edit and recompile an iOS Binary?

前端 未结 1 2060
[愿得一人]
[愿得一人] 2021-02-07 15:27

I have decided to ask this question here after a lot of time spending with Google. But I couldn\'t able to get the answer for my question yet. Here follows the details:

相关标签:
1条回答
  • 2021-02-07 16:33

    Usually, you don't "re-compile" it. Just feed the file to IDA, look for strings, function calls or whatever you are looking for and then use a hex editor or similar to edit the file on assembly level. In most cases it's enough to simply change a conditional jump into an unconditional jump or a nop (no operation). If you want to change return values, you have to put a little more effort into it, but in my experience you either edit the char sequence right inside the binary file, if it's specified as a constant or initial value - or you just write a completely new function and "copy" the assembler code of it into the original file. You just have to make sure your new function does not take more space than the original - or everything's getting a lot more complex. I hope that's what you were asking for, otherwise just tell us which app you are talking about and we can look deeper into it :)

    0 讨论(0)
提交回复
热议问题