ARP missing from the module scapy

吃可爱长大的小学妹 提交于 2021-02-07 10:15:24

问题


i am trying to use scapy in python while i try to import the scapy import scapy its just fine but the line scapy.ARP() causes a

Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'ARP'

a dir(scapy) produces '['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']' what might be the problem here ? do i need to install the packages separately if yes how to do it ?


回答1:


got it , from the version v.2 onward the it should be used as from scapy.all import *



来源:https://stackoverflow.com/questions/4339745/arp-missing-from-the-module-scapy

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!