8. SCAPY
▸ Packet - scapy.packet.Packet
IP TCP
Field
https://github.com/phaethon/scapy/blob/master/scapy/packet.py
▸ Field - scapy.fields.Field
IP
Field
https://github.com/phaethon/scapy/blob/master/scapy/fields.py
8SCAPY
Packet
Field Field
9. ▸ Transmission Control Protocol [https://www.ietf.org/rfc/rfc793.txt]
Scapy Field
Scapy TCP Padding
Scapy TCP data Payload
9SCAPY
SCAPY TCP / RFC TCP
10. ▸ Packet
MUST
fields_desc :
list Field
Building :
fields_desc Field
Padding CheckSum Build Payload
Dissecting :
Wireshark (Dissector) Dissection Payload
Binding :
Building Dissecting Payload
MAY
Show/Display :
PACKET CLASS
10
※
SCAPY
11. FIELD CLASS
11SCAPY
▸ Field i2m h2i
m: ( )
b"¥x00¥x01¥x02...." ※Python2 str Python3 bytes
i: ( ) Python
str,bytes,int,long,
h: ( ) Scapy
named flag, enum,...
repr: ++( )
repr()
‣ Field
Field