scapy.contrib.ikev2
Internet Key Exchange Protocol Version 2 (IKEv2), RFC 7296
- class scapy.contrib.ikev2.ConfigurationAttribute(_pkt, /, *, type=1, length=None, value=None)[source]
Bases:
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. ConfigurationAttribute
type
1
length
None
value
MultipleTypeField
(IPField, IP6Field, StrLenField)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)[source]
Bases:
TrafficSelector
- 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. EncryptedTrafficSelector
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
- 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)[source]
Bases:
IKEv2_class
- 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. IKEv2
init_SPI
b''
resp_SPI
b''
next_payload
0
version
32
exch_type
0
flags
<Flag 0 ()>
id
0
length
None
- class scapy.contrib.ikev2.IKEv2_payload(_pkt, /, *, next_payload=None, flags=<Flag 0 ()>, length=None, load=b'')[source]
Bases:
IKEv2_class
- 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_payload
next_payload
None
flags
<Flag 0 ()>
length
None
load
b''
- class scapy.contrib.ikev2.IKEv2_payload_AUTH(_pkt, /, *, next_payload=None, res=0, length=None, auth_type=None, res2=0, load=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTH TYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_AUTH
next_payload
None
res
0
length
None
auth_type
None
res2
0
load
b''
- class scapy.contrib.ikev2.IKEv2_payload_CERT(_pkt, /)[source]
Bases:
IKEv2_class
- aliastypes
- class scapy.contrib.ikev2.IKEv2_payload_CERTREQ(_pkt, /, *, next_payload=None, res=0, length=None, cert_type=0, cert_data=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CERT TYPE | CERT DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_CERTREQ
next_payload
None
res
0
length
None
cert_type
0
cert_data
b''
- class scapy.contrib.ikev2.IKEv2_payload_CERT_CRL(_pkt, /, *, next_payload=None, res=0, length=None, cert_type=7, x509CRL=<X509_CRL tbsCertList=<X509_TBSCertList signature=<X509_AlgorithmIdentifier |> issuer=[<X509_RDN rdn=[<X509_AttributeTypeAndValue |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] |> signatureAlgorithm=<X509_AlgorithmIdentifier |> |>)[source]
Bases:
IKEv2_payload_CERT
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CERT TYPE | X509CRL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_CERT_CRL
next_payload
None
res
0
length
None
cert_type
7
x509CRL
<X509_CRL tbsCertList=<X509_TBSCertList signature=<X509_AlgorithmIdentifier |> issuer=[<X509_RDN rdn=[<X509_AttributeTypeAndValue |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] |> signatureAlgorithm=<X509_AlgorithmIdentifier |> |>
- class scapy.contrib.ikev2.IKEv2_payload_CERT_CRT(_pkt, /, *, next_payload=None, res=0, length=None, cert_type=4, x509Cert=<X509_Cert tbsCertificate=<X509_TBSCertificate signature=<X509_AlgorithmIdentifier |> issuer=[<X509_RDN rdn=[<X509_AttributeTypeAndValue |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] validity=<X509_Validity |> subject=[<X509_RDN rdn=[<X509_AttributeTypeAndValue |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Subject']> |>] |>] subjectPublicKeyInfo=<X509_SubjectPublicKeyInfo signatureAlgorithm=<X509_AlgorithmIdentifier |> |> extensions=[<X509_Extension extnValue=<X509_ExtBasicConstraints |> |>] |> signatureAlgorithm=<X509_AlgorithmIdentifier |> |>)[source]
Bases:
IKEv2_payload_CERT
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CERT TYPE | X509CERT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_CERT_CRT
next_payload
None
res
0
length
None
cert_type
4
x509Cert
<X509_Cert tbsCertificate=<X509_TBSCertificate signature=<X509_AlgorithmIdentifier |> issuer=[<X509_RDN rdn=[<X509_AttributeTypeAndValue |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] validity=<X509_Validity |> subject=[<X509_RDN rdn=[<X509_AttributeTypeAndValue |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['organizationName']> value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN rdn=[<X509_AttributeTypeAndValue type=<ASN1_OID['commonName']> value=<ASN1_PRINTABLE_STRING['Scapy Default Subject']> |>] |>] subjectPublicKeyInfo=<X509_SubjectPublicKeyInfo signatureAlgorithm=<X509_AlgorithmIdentifier |> |> extensions=[<X509_Extension extnValue=<X509_ExtBasicConstraints |> |>] |> signatureAlgorithm=<X509_AlgorithmIdentifier |> |>
- class scapy.contrib.ikev2.IKEv2_payload_CERT_STR(_pkt, /, *, next_payload=None, res=0, length=None, cert_type=0, cert_data=b'')[source]
Bases:
IKEv2_payload_CERT
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CERT TYPE | CERT DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_CERT_STR
next_payload
None
res
0
length
None
cert_type
0
cert_data
b''
- class scapy.contrib.ikev2.IKEv2_payload_CP(_pkt, /, *, next_payload=None, res=0, length=None, CFGType=1, res2=0, attributes=[])[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CFGTYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ATTRIBUTES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_CP
next_payload
None
res
0
length
None
CFGType
1
res2
0
attributes
[]
- class scapy.contrib.ikev2.IKEv2_payload_Delete(_pkt, /, *, next_payload=None, res=0, length=None, vendorID=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VENDORID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_Delete
next_payload
None
res
0
length
None
vendorID
b''
- class scapy.contrib.ikev2.IKEv2_payload_Encrypted(_pkt, /, *, next_payload=None, res=0, length=None, load=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_Encrypted
next_payload
None
res
0
length
None
load
b''
- class scapy.contrib.ikev2.IKEv2_payload_Encrypted_Fragment(_pkt, /, *, next_payload=None, res=0, length=None, frag_number=1, frag_total=1, load=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FRAG NUMBER | FRAG TOTAL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_Encrypted_Fragment
next_payload
None
res
0
length
None
frag_number
1
frag_total
1
load
b''
- class scapy.contrib.ikev2.IKEv2_payload_IDi(_pkt, /, *, next_payload=None, res=0, length=None, IDtype=1, res2=0, ID=None)[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IDTYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_IDi
next_payload
None
res
0
length
None
IDtype
1
res2
0
ID
MultipleTypeField
(IPField, IP6Field, StrLenField)b''
- class scapy.contrib.ikev2.IKEv2_payload_IDr(_pkt, /, *, next_payload=None, res=0, length=None, IDtype=1, res2=0, ID=None)[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IDTYPE | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_IDr
next_payload
None
res
0
length
None
IDtype
1
res2
0
ID
MultipleTypeField
(IPField, IP6Field, StrLenField)b''
- class scapy.contrib.ikev2.IKEv2_payload_KE(_pkt, /, *, next_payload=None, res=0, length=None, group=0, res2=0, load=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GROUP | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_KE
next_payload
None
res
0
length
None
group
0
res2
0
load
b''
- class scapy.contrib.ikev2.IKEv2_payload_Nonce(_pkt, /, *, next_payload=None, res=0, length=None, load=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_Nonce
next_payload
None
res
0
length
None
load
b''
- class scapy.contrib.ikev2.IKEv2_payload_Notify(_pkt, /, *, next_payload=None, res=0, length=None, proto=None, SPIsize=None, type=0, SPI=b'', load=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROTO | SPISIZE | TYPE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPI | LOAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_Notify
next_payload
None
res
0
length
None
proto
None
SPIsize
None
type
0
SPI
b''
load
b''
- class scapy.contrib.ikev2.IKEv2_payload_Proposal(_pkt, /, *, next_payload=None, res=0, length=None, proposal=1, proto=1, SPIsize=None, trans_nb=None, SPI=b'', trans=<Raw |>)[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROPOSAL | PROTO | SPISIZE | TRANS NB | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPI | TRANS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_Proposal
next_payload
None
res
0
length
None
proposal
1
proto
1
SPIsize
None
trans_nb
None
SPI
b''
trans
<Raw |>
- class scapy.contrib.ikev2.IKEv2_payload_SA(_pkt, /, *, next_payload=None, res=0, length=None, prop=<Raw |>)[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_SA
next_payload
None
res
0
length
None
prop
<Raw |>
- class scapy.contrib.ikev2.IKEv2_payload_TSi(_pkt, /, *, next_payload=None, res=0, length=None, number_of_TSs=None, res2=0, traffic_selector=[])[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NUMBER OF TSS | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TRAFFIC SELECTOR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_TSi
next_payload
None
res
0
length
None
number_of_TSs
None
res2
0
traffic_selector
[]
- class scapy.contrib.ikev2.IKEv2_payload_TSr(_pkt, /, *, next_payload=None, res=0, length=None, number_of_TSs=None, res2=0, traffic_selector=[])[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NUMBER OF TSS | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | TRAFFIC SELECTOR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_TSr
next_payload
None
res
0
length
None
number_of_TSs
None
res2
0
traffic_selector
[]
- class scapy.contrib.ikev2.IKEv2_payload_Transform(_pkt, /, *, next_payload=None, res=0, length=8, transform_type=None, res2=0, transform_id=None, key_length=2148401152)[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TRANSFORM TYPE| RES2 | TRANSFORM ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | KEY LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_Transform
next_payload
None
res
0
length
8
transform_type
None
res2
0
transform_id
MultiEnumField
(Depends on None)None
key_length
IKEv2_Key_Length_Attribute
(Cond)2148401152
- class scapy.contrib.ikev2.IKEv2_payload_VendorID(_pkt, /, *, next_payload=None, res=0, length=None, vendorID=b'')[source]
Bases:
IKEv2_class
- 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 | RES | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VENDORID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IKEv2_payload_VendorID
next_payload
None
res
0
length
None
vendorID
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')[source]
Bases:
TrafficSelector
- 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. IPv4TrafficSelector
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'
- 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::')[source]
Bases:
TrafficSelector
- 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. IPv6TrafficSelector
TS_type
8
IP_protocol_ID
None
length
20
start_port
0
end_port
65535
starting_address_v6
'2001::'
ending_address_v6
'2001::'
- class scapy.contrib.ikev2.NAT_KEEPALIVE(_pkt, /, *, nat_keepalive=255)[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.ikev2.NON_ESP(_pkt, /, *, non_esp=0)[source]
Bases:
Packet
- aliastypes
- class scapy.contrib.ikev2.RawTrafficSelector(_pkt, /, *, TS_type=None, IP_protocol_ID=None, length=None, load=b'')[source]
Bases:
TrafficSelector
- 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. RawTrafficSelector
TS_type
None
IP_protocol_ID
None
length
None
load
b''