scapy.contrib.ikev2

class scapy.contrib.ikev2.EncryptedTrafficSelector

Bases: scapy.contrib.ikev2.TrafficSelector

aliastypes
fields_desc
EncryptedTrafficSelector fields

TS_type

ByteEnumField

9

IP_protocol_ID

ByteEnumField

None

length

ShortField

16

res

ByteField

0

starting_address_FC

X3BytesField

0

res2

ByteField

0

ending_address_FC

X3BytesField

0

starting_R_CTL

ByteField

0

ending_R_CTL

ByteField

0

starting_type

ByteField

0

ending_type

ByteField

0

class scapy.contrib.ikev2.IKEv2

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
answers(other)
fields_desc
IKEv2 fields

init_SPI

StrFixedLenField

b''

resp_SPI

StrFixedLenField

b''

next_payload

ByteEnumField

0

version

XByteField

32

exch_type

ByteEnumField

0

flags

FlagsField (8 bits)

<Flag 0 ()>

id

IntField

0

length

IntField

None

guess_payload_class(payload)
post_build(p, pay)
class scapy.contrib.ikev2.IKEv2_Key_Length_Attribute(name)

Bases: scapy.fields.IntField

h2i(pkt, x)
i2h(pkt, x)
class scapy.contrib.ikev2.IKEv2_class

Bases: scapy.packet.Packet

aliastypes
guess_payload_class(payload)
class scapy.contrib.ikev2.IKEv2_payload

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload fields

next_payload

ByteEnumField

None

flags

FlagsField (8 bits)

<Flag 0 ()>

length

FieldLenField

None

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_AUTH

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_AUTH fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

auth_type

ByteEnumField

None

res2

X3BytesField

0

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_CERT

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
class scapy.contrib.ikev2.IKEv2_payload_CERTREQ

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_CERTREQ fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

cert_type

ByteEnumField

0

cert_data

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_CERT_CRL

Bases: scapy.contrib.ikev2.IKEv2_payload_CERT

aliastypes
fields_desc
IKEv2_payload_CERT_CRL fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

cert_type

ByteEnumField

7

x509CRL

PacketLenField

<X509_CRL  tbsCertList=<X509_TBSCertList  signature=<X509_AlgorithmIdentifier  |> issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] |> signatureAlgorithm=<X509_AlgorithmIdentifier  |> |>

class scapy.contrib.ikev2.IKEv2_payload_CERT_CRT

Bases: scapy.contrib.ikev2.IKEv2_payload_CERT

aliastypes
fields_desc
IKEv2_payload_CERT_CRT fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

cert_type

ByteEnumField

4

x509Cert

PacketLenField

<X509_Cert  tbsCertificate=<X509_TBSCertificate  signature=<X509_AlgorithmIdentifier  |> issuer=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' value=<ASN1_PRINTABLE_STRING['Scapy Default Issuer']> |>] |>] validity=<X509_Validity  |> subject=[<X509_RDN  rdn=[<X509_AttributeTypeAndValue  |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.10' value=<ASN1_PRINTABLE_STRING['Scapy, Inc.']> |>] |>, <X509_RDN  rdn=[<X509_AttributeTypeAndValue  type='2.5.4.3' 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

Bases: scapy.contrib.ikev2.IKEv2_payload_CERT

aliastypes
fields_desc
IKEv2_payload_CERT_STR fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

cert_type

ByteEnumField

0

cert_data

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_Delete

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_Delete fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

vendorID

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_Encrypted

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_Encrypted fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_Encrypted_Fragment

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_Encrypted_Fragment fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

frag_number

ShortField

1

frag_total

ShortField

1

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_IDi

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_IDi fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

IDtype

ByteEnumField

1

ProtoID

ByteEnumField

0

Port

ShortEnumField

0

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_IDr

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_IDr fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

IDtype

ByteEnumField

1

ProtoID

ByteEnumField

0

Port

ShortEnumField

0

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_KE

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_KE fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

group

ShortEnumField

0

res2

ShortField

0

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_Nonce

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_Nonce fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_Notify

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_Notify fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

proto

ByteEnumField

None

SPIsize

FieldLenField

None

type

ShortEnumField

0

SPI

StrLenField

b''

load

StrLenField

b''

class scapy.contrib.ikev2.IKEv2_payload_Proposal

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_Proposal fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

proposal

ByteField

1

proto

ByteEnumField

1

SPIsize

FieldLenField

None

trans_nb

ByteField

None

SPI

StrLenField

b''

trans

PacketLenField

<Raw  |>

class scapy.contrib.ikev2.IKEv2_payload_SA

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_SA fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

prop

PacketLenField

<Raw  |>

class scapy.contrib.ikev2.IKEv2_payload_TSi

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_TSi fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

number_of_TSs

ByteField

0

res2

X3BytesField

0

traffic_selector

PacketListField

[]

class scapy.contrib.ikev2.IKEv2_payload_TSr

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_TSr fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

number_of_TSs

ByteField

0

res2

X3BytesField

0

traffic_selector

PacketListField

[]

class scapy.contrib.ikev2.IKEv2_payload_Transform

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_Transform fields

next_payload

ByteEnumField

None

res

ByteField

0

length

ShortField

8

transform_type

ByteEnumField

None

res2

ByteField

0

transform_id

MultiEnumField (Depends on transform_type)

None

key_length

IKEv2_Key_Length_Attribute (Cond)

2148401152

class scapy.contrib.ikev2.IKEv2_payload_VendorID

Bases: scapy.contrib.ikev2.IKEv2_class

aliastypes
fields_desc
IKEv2_payload_VendorID fields

next_payload

ByteEnumField

None

res

ByteField

0

length

FieldLenField

None

vendorID

StrLenField

b''

class scapy.contrib.ikev2.IPv4TrafficSelector

Bases: scapy.contrib.ikev2.TrafficSelector

aliastypes
fields_desc
IPv4TrafficSelector fields

TS_type

ByteEnumField

7

IP_protocol_ID

ByteEnumField

None

length

ShortField

16

start_port

ShortField

0

end_port

ShortField

65535

starting_address_v4

IPField

'192.168.0.1'

ending_address_v4

IPField

'192.168.0.255'

class scapy.contrib.ikev2.IPv6TrafficSelector

Bases: scapy.contrib.ikev2.TrafficSelector

aliastypes
fields_desc
IPv6TrafficSelector fields

TS_type

ByteEnumField

8

IP_protocol_ID

ByteEnumField

None

length

ShortField

20

start_port

ShortField

0

end_port

ShortField

65535

starting_address_v6

IP6Field

'2001::'

ending_address_v6

IP6Field

'2001::'

class scapy.contrib.ikev2.RawTrafficSelector

Bases: scapy.contrib.ikev2.TrafficSelector

aliastypes
fields_desc
RawTrafficSelector fields

TS_type

ByteEnumField

None

IP_protocol_ID

ByteEnumField

None

length

FieldLenField

None

load

PacketField

b''

class scapy.contrib.ikev2.TrafficSelector

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
scapy.contrib.ikev2.ikev2scan(ip, **kwargs)

Send a IKEv2 SA to an IP and wait for answers.