Closed diptilenka closed 3 years ago
And also if i running Objection explore and it showing
objection explore
Using USB device `iPhone`
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/objection", line 33, in <module>
sys.exit(load_entry_point('objection', 'console_scripts', 'objection')())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/xxxx/Documents/ObjectionTool/objection/objection/console/cli.py", line 114, in explore
agent.inject()
File "/Users/xxxx/Documents/ObjectionTool/objection/objection/utils/agent.py", line 202, in inject
session = self.get_session()
File "/Users/xxxxx/Documents/ObjectionTool/objection/objection/utils/agent.py", line 166, in get_session
self.spawned_pid = self.device.spawn(state_connection.gadget_name)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/frida/core.py", line 140, in spawn
return self._impl.spawn(program, argv, envp, env, cwd, stdio, aux_options)
**frida.InvalidArgumentError: unable to find app with bundle identifier “Gadget”**
And i f i run objection -g com.hackerdipti.democode explore
Using USB device `iPhone`
Unable to connect to the frida server: failed to get the task for process 466
Another question is does the identifier i have created should be matched same as per the original iPA?
@leonjza Plz have a look into it. am struggling to open patched app
I think I might have a clue here... maybe try to follow the below steps if you are using a developer account & MacBook:
I think I might have a clue here... maybe try to follow the below steps if you are using a developer account & MacBook:
- Use objection as objection patchipa -s -c [codesign] --skip-cleanup
- Objection will give a temp folder name which has two IPA's :
- [This IPA is only Frida injected and "NOT" codesigned]
- <ipa name - frida-codesigned> [This IPA is frida injected "AND" codesigned]
- Using the IPA file, sign it using iOS App Signer with "unchecking" the flag "No get-task-allow"
- Now unzip and use iOS-deply as usual.
You are absolutely correct , now am able to open that app. Could you plz tell me how it changed compared to last behaviour . I think it solve my problem.
First of all, there's smthing wrong with node-applesign module which is used to sign the patched IPA. Hence I recommended you to use iOS App Signer. The other thing is that the error message that you get suggests that another process (in this case Frida) is unable to hook to the patched application. This is actually a protection mechanism (set in the entitlement, referenced via get-task-allow) which disallows users to debug applications. If you were to upload your application for distribution over app store, this has to be turned on. However, in our case we want to instrument and hence attach to the application. Hence, unchecking the box 'No get-task-allow' in iOS App Signer.
This is similar to #434 where some changes are needed. Closing this in favour of that ticket.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
After https://github.com/sensepost/objection/wiki/Patching-iOS-Applications Then running the patched ios applications
ios-deploy --bundle Payload/*.app --debug -W --debug
Similar issues Please link the issues in this repository that is similar to yours.
For example: #358, #229 etc.
Expected behavior A clear and concise description of what you expected to happen.
Evidence / Logs / Screenshots Any output from objection, such as stack traces or errors that occurred. Be sure to run objection with the
--debug
flag so that errors from the agent are verbose enough to debug. For example:Environment (please complete the following information):
Application If possible, please attach the target application where you can reproduce this bug to the issue.
Additional context ios-deploy version :- 1.11.3