-
Notifications
You must be signed in to change notification settings - Fork 286
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
Errors running modules targeting an application with a space character in the name #151
Comments
ccsplit
added a commit
to ccsplit/needle
that referenced
this issue
May 8, 2017
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.
marco-lancini
added a commit
that referenced
this issue
May 22, 2017
Use unquote to convert spaces. Fixes #151.
In v1.3.2 I get a similar error.
|
Same for me. In the latest version I am still getting the same. |
Pulling: '/private/var/containers/Bundle/Application/DCCCD482-C14A-4DBC-8BDF-F3F5B4640A3A/TESTNAME UAT.app'"'"'/Info.plist' -> /var/root/.needle/tmp/plist Is this still a problem? |
Hi,
It is no longer a problem.
…On Wed, 11 Sep 2019 at 18:49, poldenais ***@***.***> wrote:
Pulling:
'/private/var/containers/Bundle/Application/DCCCD482-C14A-4DBC-8BDF-F3F5B4640A3A/TESTNAME
UAT.app'"'"'/Info.plist' -> /var/root/.needle/tmp/plist
Is this still a problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#151>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJLG3YSRP7BAD4OUWUYNELQJDELDANCNFSM4DHJMYFA>
.
|
Im getting the following so was just wondering: IOError: [Errno 2] No such file or directory: '/var/root/.needle/tmp/plist' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
It seems that needle does not properly handle spaces in the name of the application when dealing with filepaths.
Expected behaviour
Needle should use the backlash '\' escape character to escape out spaces in the filepath.
Actual behaviour
Needle uses HTML encoding, inserting '%20' for spaces in the name of an application.
Steps to reproduce
needle error logs
Ensure verbose and debug mode are enabled:
It might be difficult to tell from above (I am forced to remove the application name), but the application has a space in the name. Needle is trying to access the app filepath, shown as
/private/var/containers/Bundle/Application/D4EE87E5-FBDD-49D2-B33A-8898FF27E257/<redacted>%20<redacted>.app
. However, the space should not be encoded, it should be escaped like this:/private/var/containers/Bundle/Application/D4EE87E5-FBDD-49D2-B33A-8898FF27E257/<redacted>\ <redacted>.app
.A non-redacted example would be
/private/var/containers/Bundle/Application/D4EE87E5-FBDD-49D2-B33A-8898FF27E257/My%20Application%20Name.app
. This should be handled by needle as/private/var/containers/Bundle/Application/D4EE87E5-FBDD-49D2-B33A-8898FF27E257/My\ Application\ Name.app
.Let me know if this is still confusing, and I can try to explain further.
Environment
Workstation Operating System
Kali Linux 2.0 Rolling
Python Version
Python 2.7.13
Device iOS Version
iOS 10.2
The text was updated successfully, but these errors were encountered: