Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
How can I install Scapy?
-
I came across this before but didnt make test the change because Im on an iPad running stash. Ill give it a shot and see what happens. Thanks!
-
I added this to the
../windows/__init.py__
file and there was no change. I then added it to the__init.py__
file in the arch folder and that changed the error from LOOPBACK_NAME to consts...stash: <type 'exceptions.ImportError'>: No module named consts
Any other ideas? Thanks in advance
-
I posted a GitHub issue... https://github.com/secdev/scapy/issues/598
-
@ccc Thank you!
-
Pythonista does not support modules like subprocess. Hence I think that you may not be able to run this on pythonista.
I am able to install it but it gives error while running (not able to start the interactive session).
-
@abcabc Interesting. So how are people actually using scapy then? Just running it from a script? Seems odd that there is no interactive shell to test on..
-
@inzel Can you please respond to https://github.com/secdev/scapy/issues/598 by posting a full stack trace there?
-
@abcabc Not at all, that was an old windows bug...
-
@inzel Scapy is a very complete program. There are tons of usages:
- using the scapy shell (based on the python
code.interact
shell) - directly from a script (it's easily importable)
It does not support IOS devices, neither pythonista. It works on Mac though...
Indeed the code integration is quite complex: for instance we need to detect the networking routes on the device, using a different way for every OS (we have a custom support for linux, windows, Mac...), as it's not supported in Python.
If we want to support IOS, there will be a lot of edits to do.
I would like to know if we will be able to support python on IOS one day, so if someone could answer those questions if would be great:
- Does pythonista supports RAW sockets ?
- Are there different networking interfaces ? Are they all detectable/accessable ?
- Does pythonista/IOS supports IPv6 ?
- Is it still impossible to get the device's MAC ? (pretty sure it was so in the past)
Thanks for reading.
- using the scapy shell (based on the python
-
I don’t think this is feasible with iOS. I tried running
socket.socket(s.AF_INET,s.SOCK_RAW,s.IPPROTO_ICMP)
as part of an experimental host scanner and got operation not permitted. It might work on a rooted device but I’m not going to do that.
Cheers
-
Hey guys im new to this, can someone please make a very simple way of installing scapy, that would be awsome
thank you very much -
It is all quite simple. Scapy requires libpcap or equivalent. While libpcap.dylib exists on iOS, you cannot access any devices (operation not permitted), therefore, you cannot use scapy on iOS.
This is due to Apple restrictions ..likely it could be made to work on a jailbroken device