sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.33k stars 840 forks source link

[bug] Resign App changes to the provision file BID #461

Closed rcM0D closed 3 years ago

rcM0D commented 3 years ago

Hi All, Great work on this project!. I'm experiencing some problems while patching an IPA, I don't know where I am lacking.

Here it goes so, after running objection patchipa to my app. It successfully resign the application but when I install it, the Bundle ID of the resign app changes to the Provisioning file.

To Reproduce Steps to reproduce the behavior:

  1. Objection patchipa -s "nameipa" -c 123456

    Screen Shot 2021-05-15 at 7 28 26 AM
  2. Then I install using ideviceinstaller -i resigned.ipa.

    Screen Shot 2021-05-15 at 7 31 35 AM

So As you can see on the screenshot the resigned app changes to the provision file.

**Environment

Any help will do! Again Great tool!

leonjza commented 3 years ago

If you are using a free Apple account, see https://github.com/nowsecure/node-applesign/issues/113, with the resulting patch to objection here https://github.com/sensepost/objection/commit/bb33bce3ca9c36482951081e3d3721645f963124 (note the new --bundle-id flag also mentioned in the latest release notes for objection 1.11.0 here.

rcM0D commented 3 years ago

Hi @leonjza yes, I'm using a free apple account, I tried putting -b BIDname, then try to install it. It says "The executable was signed with invalid entitlements". It seems that the free apple account really has a problem.