- April 8, 2020 at 1:27 pm #33430
Following the lecture “Using Scapy To Create an ARP Request”, when I run the program I get this return:
ARP who has ?? says ??
import scapy.all as scapy
arp_request = scapy.ARP(pdst=ip)
1. the alternative function code:
arp_request = scapy.ARP()
2. reinstalling scapy
3. Installing the COMPLETE version of scapy
$ pip install –pre scapy[complete] -> didn’t work, but the pip3 method did:
pip3 install –pre scapy[complete]
4. running the program with python3
5. I thought maybe python can’t print it out because the return is not a string, so, out of despair, I tried “””print(str(arp_request.summary()))””” – but that didn’t help either.
Nothing helped, still getting the same result. (“ARP who has ?? says ??”)
Any further suggestions would be highly appreciated 🙂April 8, 2020 at 1:32 pm #33431
i just realized that feeding the function just a single IP works.
So instead of using the range:
works as expected.
How can I translate this functionality to use IP ranges?April 9, 2020 at 4:40 pm #33512Zaid SabihModerator
Please try the following fix and it should allow you to search for ranges as shown in the lecture
pip uninstall scapy
pip install scapy==2.4.0
pip3 install scapy==2.4.0April 9, 2020 at 7:45 pm #33525
RESOLVED, thank you very much!
version 2.4.2 works as wellApril 9, 2020 at 8:08 pm #33527
…but so may other features still don’t, that I’ve decided to roll back to 2.4.0, as you suggested 🙂
Just wanted to share in case others experience similar issues.
Thanks again!April 13, 2020 at 4:08 pm #33858Zaid SabihModerator
You’re welcome, I’m glad I could help 🙂April 27, 2020 at 1:52 am #35044LaurentParticipant
Hi, I had the same issue. The above fix worked. Thank you for that.
However, I wanted to ask what version of scapy was installed earlier and whether we upgraded it to a newer version or rolled back to an older one. If it is an older version, does it mean we will run into problems when python will update?April 27, 2020 at 4:33 pm #35107Vashisht BoodhunParticipant
Actualy when we tested the new version, it didn’t work as expected that’s why we suggest to use the older version of scaoy.
- You must be logged in to reply to this topic.