-
Notifications
You must be signed in to change notification settings - Fork 176
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
Not able to run get data when run sysmontap.py. #11
Comments
@rahul-1485
|
Thanks for the reply @YueChen-C after doing the changes you have suggested sudo python3 sysmontap.py is running now. I am facing one more issue the sudo python3 sysmontap.py command works for IOS 14.2 device but not for IOS 12 devices. Error i am getting is - apple@Apples-MBP-2 instrument_demo % sudo python3 sysmontap.py Also i have tested sudo python3 applictionListing.py it is also not working working for IOS 12 Can you please suggest any other changes required for running commands on devices lower than IOS 14. |
Python3.9 plistlib removed plistlib.data. In addition, you can try using execute the command: |
hi @YueChen-C the command sudo chmod 777 /var/ db/lockdown showing error - chmod: Unable to change file mode on /var/db/lockdown: Operation not permitted. |
@rahul-1485 |
Hi @YueChen-C i have tried the latest code but it is still not working for IOS devices less than 14.0 Version. Getting same error apple@Apples-MBP-2 instrument_demo % sudo python3 sysmontap.py Please check. |
This error is unrelated to the iOS version, but rather the python version and was already fixed as @YueChen-C said. It seems you haven't pulled the latest version. Python had a really wierd way to deprecate this API (no deprecation warnings on older versions then 3.9). Its now replaced simply with |
hi @doronz88 i am currently on Python 3.9 version and the and taken the latest code it works fine for IOS 14 devices. But on devices lower than 14.0 the error is same for all Python scripts. apple@Apples-MBP-2 instrument_demo % sudo python3.9 applictionListing.py Also tried to change permission for lockdown folder it says "chmod: Unable to change file mode on /var/db/lockdown: Operation not permitted" |
Latest revision contains a different content on the error line from your backtrace so it seems you aren't on latest version. Try to install it as follows: python3 -m pip install --user -U -e . The |
hi @doronz88 i got below error with your command - apple@Apples-MBP-2 ~ % python3 -m pip install --user -U -e Usage: -e option requires 1 argument |
You forgot the |
hi @doronz88 thanks for help it is working now i have one query when we run python3 applictionListing.py it shows app list and then when we run python3 sysmontap.py it shows the process and it's data. But how do we know the data belongs to particular app. Let suppose i want my know about data of safari app "python3 sysmontap.py" command shows listing but it not shows for which app data belongs too. Can you please suggest how to associate particular app process with data. Is there any parameter for it. |
You can trigger the selector named |
Hi @doronz88 when we run "sudo python3 sysmontap.py" we get data of all the process is there any command to get data only for the particular process id. Let suppose if we want to see the data of a particular process only associated with an app. |
This script doesn't allow this. I've implemented this feature in my own tool: You can run: pymobiledevice3 developer sysmon processes -a pid=some_pid You can filter on any field you desire. |
When i run sysmontap.py with command sudo python3 sysmontap.py i am getting below error.
2021-04-16 00:27:24,464 - lockdown.py[line:94] - WARNING: [Errno 1] Operation not permitted: '/var/db/lockdown/cd872c4dcfb573af88d218267581aa05b580d046.plist'
not supported: {'$version': 100000, '$archiver': 'NSKeyedArchiver', '$top': {'root': uid(1)}, '$objects': ['$null', '_channelCanceled:']}
Traceback (most recent call last):
File "/Users/Rahul/Downloads/py-ios-device-main/demo/instrument_demo/sysmontap.py", line 53, in
addresses, port, psk = rpc.start_wireless()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ios_device/servers/Instrument.py", line 60, in start_wireless
print("remove", self.call(channel, "removeDaemonFromService").parsed)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ios_device/servers/DTXSever.py", line 352, in call
ret = self._call(True, channel_id, selector, *auxiliaries)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ios_device/servers/DTXSever.py", line 368, in _call
raise RuntimeWarning("rpc service died")
RuntimeWarning: rpc service died
Please check @YueChen-C.
The text was updated successfully, but these errors were encountered: