Closed tghosth closed 7 years ago
Nevermind, looks like you need to add Darwin CC Tools
to the dependencies list...
oh wow, ok I didn't know device/dependency_installer
existed. Currently investigating!
Please updated the wiki documentation and tell people that: a) they will need to run the module device/dependency_installer Also update the error messages of that module, as it currently says:
[D] [REMOTE CMD] Remote Command: which apt-get
[!] Prerequisite Not Found: apt-get
------------------------------------------------------------
Traceback (most recent call last):
File "/opt/needle/needle/core/framework/module.py", line 117, in do_run
self.module_run()
File "/opt/needle/needle/modules/device/dependency_installer.py", line 161, in module_run
self._check_prerequisites()
File "/opt/needle/needle/modules/device/dependency_installer.py", line 119, in _check_prerequisites
raise Exception('Please install the requirements listed in the README file')
Exception: Please install the requirements listed in the README file
------------------------------------------------------------
[!] Exception: Please install the requirements listed in the README file
But there is no such thing as a dependencies mentioned in the README
Same for Core Utilities:
[D] [REMOTE CMD] Remote Command: dpkg --get-selections | grep -v "deinstall" | cut -f1
------------------------------------------------------------
Traceback (most recent call last):
File "/opt/needle/needle/core/framework/module.py", line 117, in do_run
self.module_run()
File "/opt/needle/needle/modules/device/dependency_installer.py", line 168, in module_run
self._refresh_package_list()
File "/opt/needle/needle/modules/device/dependency_installer.py", line 125, in _refresh_package_list
out = self.device.remote_op.command_blocking(cmd, internal=True)
File "/opt/needle/needle/core/device/remote_operations.py", line 94, in command_blocking
out, err = self._device._exec_command_ssh(cmd, internal)
File "/opt/needle/needle/core/utils/utils.py", line 196, in wrapper
return func(obj, *args, **kwargs)
File "/opt/needle/needle/core/device/device.py", line 128, in _exec_command_ssh
raise Exception(err_str)
Exception: sh: cut: command not found
------------------------------------------------------------
[!] Exception: sh: cut: command not found
And even after running the dependency installer, it said it will install [] and then everything is still missing.
So I had to install lipo and other tools from Cydia directly. I needed the following packages:
The module binary/reversing/strings seems to be using awk, which didn't install with Core Utils strangely... and also ps is missing etc. But now at least most modules run fine.
Then I also got a "[!] IOError: [Errno 2] No such file or directory: '~/.needle/tmp/plist'", so I had to "mkdir ~/.needle/tmp"
Hi!
Don't know if it helps but you can find awk
with Cydia by installing Gawk
.
:sunflower:
@floyd-fuh hi, have you install lipo from Cydia? I believe there is way to install it on iPhone 5, but it is a arm32 device. Because I don't see lipo in Cydia.
@humanUnit sorry, this was too long ago and that device is long gone, I simply can't remember :-/
@humanUnit on my iPad 4 (32 bit) jailbroken with h3lix, I manage to install lipo by installing the package "Darwin CC Tools" from coolstar repo in Cydia.
@ThePirateWhoSmellsOfSunflowers thanks!
I was having similar issues to @floyd-fuh with:
it said it will install [] and then everything is still missing.
But it turns out I just needed to set ALL (or any specific dependency I needed) to true. Not sure if it is the same problem, but thought it worth mentioning!
[!] Prerequisite Not Found: apt-get [!] Exception: Please install the requirements listed in the project WIKI
Issue
Running a module, e.g. metadata, doesn't work. It gives an error related to lipo. Do you have any idea why that would not be on the device or where to get it from?
needle error logs
Ensure verbose and debug mode are enabled:
Environment
Needle Version
Device iOS Version
10.2