scapy.contrib.ikev2
Internet Key Exchange Protocol Version 2 (IKEv2), RFC 7296
- class scapy.contrib.ikev2.ConfigurationAttribute(_pkt, /, *, type=1, length=None, value=None)[源代码]
基类:
Packet- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VALUE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ConfigurationAttributeConfigurationAttribute fields type
1length
Nonevalue
MultipleTypeField(IPField, IP6Field, XStrLenField)b''
- class scapy.contrib.ikev2.EncryptedTrafficSelector(_pkt, /, *, TS_type=9, IP_protocol_ID=None, length=16, res=0, starting_address_FC=0, res2=0, ending_address_FC=0, starting_R_CTL=0, ending_R_CTL=0, starting_type=0, ending_type=0)[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TS TYPE | IP PROTOCOL ID| LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES | STARTING ADDRESS FC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | RES2 | ENDING ADDRESS FC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | STARTING R CTL| ENDING R CTL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STARTING TYPE | ENDING TYPE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. EncryptedTrafficSelectorEncryptedTrafficSelector fields TS_type
9IP_protocol_ID
Nonelength
16res
0starting_address_FC
0res2
0ending_address_FC
0starting_R_CTL
0ending_R_CTL
0starting_type
0ending_type
0
- class scapy.contrib.ikev2.IKEv2(_pkt, /, *, init_SPI=b'', resp_SPI=b'', next_payload=0, version=32, exch_type=0, flags=<Flag 0 ()>, id=0, length=None)[源代码]
基类:
_IKEv2_Packet- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INIT SPI | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESP SPI | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | VERSION | EXCH TYPE | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2IKEv2 fields init_SPI
b''resp_SPI
b''next_payload
0version
32exch_type
0flags
<Flag 0 ()>id
0length
None
- class scapy.contrib.ikev2.IKEv2_AUTH(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, auth_type=None, res2=0, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTH TYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_AUTHIKEv2_AUTH fields next_payload
Noneflags
<Flag 0 ()>length
Noneauth_type
Noneres2
0load
b''
- class scapy.contrib.ikev2.IKEv2_CERT(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, cert_encoding=4, cert_data=None)[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CERT ENCODING | CERT DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_CERTIKEv2_CERT fields next_payload
Noneflags
<Flag 0 ()>length
Nonecert_encoding
4cert_data
MultipleTypeField(PacketLenField, PacketLenField, XStrLenField)b''
- class scapy.contrib.ikev2.IKEv2_CERTREQ(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, cert_encoding=0, cert_authority=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CERT ENCODING | CERT AUTHORITY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_CERTREQIKEv2_CERTREQ fields next_payload
Noneflags
<Flag 0 ()>length
Nonecert_encoding
0cert_authority
b''
- class scapy.contrib.ikev2.IKEv2_CP(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, CFGType=1, res2=0, attributes=[])[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CFGTYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ATTRIBUTES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_CPIKEv2_CP fields next_payload
Noneflags
<Flag 0 ()>length
NoneCFGType
1res2
0attributes
[]
- class scapy.contrib.ikev2.IKEv2_Delete(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, proto=None, SPIsize=None, SPInum=0, SPI=[])[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROTO | SPISIZE | SPINUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_DeleteIKEv2_Delete fields next_payload
Noneflags
<Flag 0 ()>length
Noneproto
NoneSPIsize
NoneSPInum
0SPI
[]
- class scapy.contrib.ikev2.IKEv2_EAP(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_EAPIKEv2_EAP fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_Encrypted(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_EncryptedIKEv2_Encrypted fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_Encrypted_Fragment(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, frag_number=1, frag_total=1, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FRAG NUMBER | FRAG TOTAL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_Encrypted_FragmentIKEv2_Encrypted_Fragment fields next_payload
Noneflags
<Flag 0 ()>length
Nonefrag_number
1frag_total
1load
b''
- class scapy.contrib.ikev2.IKEv2_GSA(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_GSAIKEv2_GSA fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_GSPM(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_GSPMIKEv2_GSPM fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_IDg(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_IDgIKEv2_IDg fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_IDi(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, IDtype=1, res2=0, ID=None)[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IDTYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_IDiIKEv2_IDi fields next_payload
Noneflags
<Flag 0 ()>length
NoneIDtype
1res2
0ID
MultipleTypeField(IPField, IP6Field, XStrLenField)b''
- class scapy.contrib.ikev2.IKEv2_IDr(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, IDtype=1, res2=0, ID=None)[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IDTYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_IDrIKEv2_IDr fields next_payload
Noneflags
<Flag 0 ()>length
NoneIDtype
1res2
0ID
MultipleTypeField(IPField, IP6Field, XStrLenField)b''
- class scapy.contrib.ikev2.IKEv2_KD(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_KDIKEv2_KD fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_KE(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, group=0, res2=0, ke=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GROUP | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | KE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_KEIKEv2_KE fields next_payload
Noneflags
<Flag 0 ()>length
Nonegroup
0res2
0ke
b''
- class scapy.contrib.ikev2.IKEv2_Nonce(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, nonce=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_NonceIKEv2_Nonce fields next_payload
Noneflags
<Flag 0 ()>length
Nonenonce
b''
- class scapy.contrib.ikev2.IKEv2_Notify(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, proto=None, SPIsize=None, type=0, SPI=b'', notify=b'', gw_id_type=1, gw_id_len=None, gw_id=None, nonce=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROTO | SPISIZE | TYPE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPI | NOTIFY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GW ID TYPE | GW ID LEN | GW ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_NotifyIKEv2_Notify fields next_payload
Noneflags
<Flag 0 ()>length
Noneproto
NoneSPIsize
Nonetype
0SPI
b''notify
XStrLenField(Cond)b''gw_id_type
ByteEnumField(Cond)1gw_id_len
FieldLenField(Cond)Nonegw_id
MultipleTypeField(Cond, IPField, IP6Field, StrLenField)b''nonce
XStrLenField(Cond)b''
- class scapy.contrib.ikev2.IKEv2_PS(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_PSIKEv2_PS fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_Payload(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[源代码]
基类:
_IKEv2_Packet- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_PayloadIKEv2_Payload fields next_payload
Noneflags
<Flag 0 ()>length
Noneload
b''
- class scapy.contrib.ikev2.IKEv2_Proposal(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, proposal=1, proto=1, SPIsize=None, trans_nb=None, SPI=b'', trans=<Raw |>)[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROPOSAL | PROTO | SPISIZE | TRANS NB | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPI | TRANS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_ProposalIKEv2_Proposal fields next_payload
Noneflags
<Flag 0 ()>length
Noneproposal
1proto
1SPIsize
Nonetrans_nb
NoneSPI
b''trans
<Raw |>
- class scapy.contrib.ikev2.IKEv2_SA(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, prop=<Raw |>)[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_SAIKEv2_SA fields next_payload
Noneflags
<Flag 0 ()>length
Noneprop
<Raw |>
- class scapy.contrib.ikev2.IKEv2_TSi(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, number_of_TSs=None, res2=0, traffic_selector=[])[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NUMBER OF TSS | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TRAFFIC SELECTOR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_TSiIKEv2_TSi fields next_payload
Noneflags
<Flag 0 ()>length
Nonenumber_of_TSs
Noneres2
0traffic_selector
[]
- class scapy.contrib.ikev2.IKEv2_TSr(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, number_of_TSs=None, res2=0, traffic_selector=[])[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NUMBER OF TSS | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TRAFFIC SELECTOR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_TSrIKEv2_TSr fields next_payload
Noneflags
<Flag 0 ()>length
Nonenumber_of_TSs
Noneres2
0traffic_selector
[]
- class scapy.contrib.ikev2.IKEv2_Transform(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=8, transform_type=None, res2=0, transform_id=None, key_length=2148401152)[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TRANSFORM TYPE| RES2 | TRANSFORM ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | KEY LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_TransformIKEv2_Transform fields next_payload
Noneflags
<Flag 0 ()>length
8transform_type
Noneres2
0transform_id
MultiEnumField(Depends on None)Nonekey_length
IKEv2_Key_Length_Attribute(Cond)2148401152
- class scapy.contrib.ikev2.IKEv2_VendorID(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, vendorID=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEXT PAYLOAD | FLAGS | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VENDORID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_VendorIDIKEv2_VendorID fields next_payload
Noneflags
<Flag 0 ()>length
NonevendorID
b''
- class scapy.contrib.ikev2.IPv4TrafficSelector(_pkt, /, *, TS_type=7, IP_protocol_ID=None, length=16, start_port=0, end_port=65535, starting_address_v4='192.168.0.1', ending_address_v4='192.168.0.255')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TS TYPE | IP PROTOCOL ID| LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | START PORT | END PORT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STARTING ADDRESS V4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ENDING ADDRESS V4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv4TrafficSelectorIPv4TrafficSelector fields TS_type
7IP_protocol_ID
Nonelength
16start_port
0end_port
65535starting_address_v4
'192.168.0.1'ending_address_v4
'192.168.0.255'
- class scapy.contrib.ikev2.IPv6TrafficSelector(_pkt, /, *, TS_type=8, IP_protocol_ID=None, length=20, start_port=0, end_port=65535, starting_address_v6='2001::', ending_address_v6='2001::')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TS TYPE | IP PROTOCOL ID| LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | START PORT | END PORT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STARTING ADDRESS V6 | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ENDING ADDRESS V6 | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6TrafficSelectorIPv6TrafficSelector fields TS_type
8IP_protocol_ID
Nonelength
20start_port
0end_port
65535starting_address_v6
'2001::'ending_address_v6
'2001::'
- class scapy.contrib.ikev2.RawTrafficSelector(_pkt, /, *, TS_type=None, IP_protocol_ID=None, length=None, load=b'')[源代码]
-
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TS TYPE | IP PROTOCOL ID| LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RawTrafficSelectorRawTrafficSelector fields TS_type
NoneIP_protocol_ID
Nonelength
Noneload
b''