Scapy does not have arping
-
When the violin is launched:
from scapy.all import *
def scaner(ip):
scapy.arping(ip)scaner("10.0.2.1")
terminal
Kali Linux
There is a mistake:Errors: Traceback (most recent call last):
File "/home/kali/PycharmProjects/net_scan/net_scan.py", line 8, in <module>
scaner("10.0.2.1")
File "/home/kali/PycharmProjects/net_scan/net_scan.py", line 6, in scaner
scapy.arping(ip)
AttributeError: module 'scapy' has no attribute 'arping'
How do we solve the problem?
-
Reset the package.
Scapy
♪ In the terminal, follow the teams:pip uninstall scapy pip install --pre scapy[complete]
The problem must be solved. And, uh, googling, what is it?
virtualenv
and what they eat. Try to work through a virtual environment.Imports
scapy
A little different. Example of the code:import scapy.all as scapy
def scaner(ip):
scapy.arping(ip)scaner("10.0.2.1")