scapy 是python三方库,是发包,改包,分析包的工具,可用来进行fuzz测试或者学习网络协议 https://github.com/Larryxi/Scapy_zh-cn 网络四层: 链路,网络,传输,应用
from scapy.all import *
ls()
lsc()
help(IP)
https://thepacketgeek.com/importing-packets-from-trace-files/
localhost:~ packetgeek$ scapy
Welcome to Scapy (2.2.0)
>>> packets = rdpcap('IBGP_adjacency.cap')
>>> packets
<IBGP_adjacency.cap: TCP:17 UDP:0 ICMP:0 Other:0>