scapy.contrib.wireguard

WireGuard模块实现WireGuard网络隧道协议. 基于白皮书: https//www.wireguard.com/papers/wireguard.pdf

class scapy.contrib.wireguard.Wireguard

Bases: scapy.packet.Packet

仅包含消息类型的包装器.

aliastypes
fields_desc
线卫领域

message_type

ByteEnumField

1

reserved_zero

ThreeBytesField

0

payload_guess

可能的子层: WireguardCookieReplyWireguardInitiationWireguardResponseWireguardTransport

class scapy.contrib.wireguard.WireguardCookieReply

Bases: scapy.packet.Packet

aliastypes
fields_desc
WireguardCookieReply字段

receiver_index

XLEIntField

0

nonce

XStrFixedLenField

0

encrypted_cookie

XStrFixedLenField

0

class scapy.contrib.wireguard.WireguardInitiation

Bases: scapy.packet.Packet

aliastypes
fields_desc
WireguardInitiation字段

sender_index

XLEIntField

0

unencrypted_ephemeral

XStrFixedLenField

0

encrypted_static

XStrFixedLenField

0

encrypted_timestamp

XStrFixedLenField

0

mac1

XStrFixedLenField

0

mac2

XStrFixedLenField

0

class scapy.contrib.wireguard.WireguardResponse

Bases: scapy.packet.Packet

aliastypes
fields_desc
WireguardResponse字段

sender_index

XLEIntField

0

receiver_index

XLEIntField

0

unencrypted_ephemeral

XStrFixedLenField

0

encrypted_nothing

XStrFixedLenField

0

mac1

XStrFixedLenField

0

mac2

XStrFixedLenField

0

class scapy.contrib.wireguard.WireguardTransport

Bases: scapy.packet.Packet

aliastypes
fields_desc
WireguardTransport字段

receiver_index

XLEIntField

0

counter

XLELongField

0

encrypted_encapsulated_packet

XStrField

None