DolphinQuan
DolphinQuan

Reputation: 33

Modifying iOS Binary with IDA and Repackaging as IPA

I'm new to reverse engineering and could use some guidance from the community. I'm trying to modify a string in an iOS binary using IDA Pro and then repackage it into an IPA file for installation on my iPhone. Here's my setup and the steps I've taken so far:

Environment:

Steps:

  1. I changed the IPA file extension to .zip and extracted it, revealing the Payload folder.
  2. Within the extracted files, I right-clicked to show package contents, extracted the binary, and loaded it into IDA.
  3. I switched to the Strings window by going to View -> Open subviews -> strings.
  4. I searched for the string I wanted to modify, such as "xiaohongshu".
  5. I double-clicked to enter Hex View.

enter image description here

  1. I right-clicked to enter Edit mode and changed the string to the desired text, like "wwwwhongshu", then right-clicked to apply the change.

enter image description here

  1. I exported the changes by going to Edit -> Patch program -> Apply patches to into file.
  2. I replaced the original binary in the package from step 2 with the modified binary.
  3. I repackaged the contents into an IPA file using the command: zip -r newapp.ipa Payload
  4. I installed the newapp.ipa on my iPhone using iTools.

However, when I try to open the newly installed app, it crashes. I'm not sure what's going wrong. I thought that since my phone is jailbroken and I've installed appSync, I shouldn't need to worry about signing issues. Any help would be greatly appreciated!

Thank you in advance for your assistance.

Best regards, darren

Upvotes: 1

Views: 397

Answers (0)

Related Questions