Scapy and Python Part 2 - Reading PCAPs

Опубликовано: 26 Ноябрь 2020
на канале: danscourses
36,554
465

In Part, we create a pcap file and load it into Scapy with the rdpcap() function. Once loaded into Scapy you can examine the pcap with Scapy's built in commands/functions.

Scapy Part 1 - Install, Run, Sniff:    • Scapy and Python Part 1 (HD) - Instal...  
Scapy Part 3 - Crafting Packets:    • Scapy and Python Part 3 - Crafting Cu...  

#read pcaps
scapy
p = rdpcap("example.pcap")
p
len(p)
pkt = p[1000]
pkt
type(pkt)
dir(pkt)
lsc()
hexdump(pkt)
ls(pkt)
pkt.summary()
pkt.show()