-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use unquote to convert spaces. Fixes #151. #162
Conversation
Since the information is passed back and forth through JSON with the agent it is URL-Encoded and therefore it needs to be removed when passing the string to an local_operation/remote_operation path command.
* 'develop' of github:mwrlabs/needle: [FIX] Remove infinite loop from decorator, which attempts to restore a connection with the device if it fails Specify type CONSOLE [CORE] Version checking, to ensure the latest version of Needle is being used [MODULE] Frida Script: hook all methods of the specified class [MODULE] Frida Script: hook all methods of the specified class [FIX] Search PID for apps with a space in their name [V1.1.0] Update version and changelog
Ah, I had not seen that PR since it didn't reference the issue. @marco-lancini, is there an example of the other special characters available publicly within an application? If not I will work on creating a test ipa for the issue and amend it to my proposed fix. |
* 'develop' of github:mwrlabs/needle: [CORE] Non-interactive mode [CORE] New command line interface
thank you @ccsplit, that would help a lot! |
* 'develop' of github:mwrlabs/needle: [FIX] Improve exception detection [FIX] Re-added support on iOS for: storage/data/keychain_dump, binary/reversing/strings, binary/reversing/class_dump [CORE] Add support for binary thinning Better logging [FIX] Metadata parsing for app extensions [FIX] Metadata parsing for app extensions
@marco-lancini, I believe the accent/backquote I've been using ios-testapp-specialchars when testing this issue if you want to take a look. Here is a gist of the current changes I've been working around with, I've also created a branch |
Hi @ccsplit, thanks for your effort! Could you just commit everything to this PR, so I can review it in one go? |
Added a preliminary way to handle issues with special characters within the iOS Application name.
@@ -195,6 +200,13 @@ def wrapper(obj, *args, **kwargs): | |||
self.actual_tries += 1 | |||
exception = e | |||
device.printer.error(exception) | |||
if str(e).find('`') > -1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An attempt at trying to resolve issues with accents/backquotes. Currently this does not work, and will actually cause #161 to occur more frequently during the re-attempts. Also once it gets into that state it will error when trying to disconnect and clean up the device causing needle to hang. In which you will need to use kill <needlePID>
to stop it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about accented characters like: É?
@marco-lancini, I've added the changes I had when working through the accent/backquote issue to the PR. |
Hi @ccsplit, I tried your proposed fix, but when I try to analyze an app which has the following character in its name (
|
@marco-lancini, does this occur prior to my change as well? If so you would need to use |
I've been banging my head on this for quite a while now. Even encodings doesn't seem to solve the issue. Any help would be massively appreciated! |
I'll take a look once and see what I can figure out. |
@marco-lancini, It looks like this is similar to #80 and/or #118. With |
Can I confirm that I just need to change Example App.app to 'Example App.app'.decode('utf-8'). |
Since the information is passed back and forth through JSON with the agent
it is URL-Encoded and therefore it needs to be removed when passing the
string to an local_operation/remote_operation path command.
Fixed
Bug fixes proposed in this pull request: