[英]getting source ip scapy
I am running Ubuntu of VirtualBox (windows host 10 host). 我正在运行VirtualBox的Ubuntu(Windows主机10主机)。 I have installed PyCharm and Scapy package.
我已经安装了PyCharm和Scapy软件包。
I have written a code to print the source IP in packet p 我写了一个代码来打印数据包p中的源IP
print p[IP].src
However, I get a red line under the word IP and an error unresolved reference. 但是,我在IP字下有一条红线,并且有一个未解决的错误参考。 But when I run the script it works perfectly meaning the reference was resolved.
但是,当我运行脚本时,它可以正常工作,意味着引用已解决。
I have imported scapy 我已经进口鱼鳞
from scapy.all import *
What do I need to install/import to get rid of this error? 我需要安装/导入什么才能摆脱此错误?
Thank you, Or 谢谢,或者
试试看
print p.getlayer(IP).src
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.