scapy.layers.tls.handshake_sslv2

SSLv2握手字段和逻辑.

class scapy.layers.tls.handshake_sslv2.SSLv2ClientCertificate(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

SSLv2 ClientCertificate.

aliastypes
build(*args, **kargs)
fields_desc
SSLv2ClientCertificate字段

msgtype

ByteEnumField

8

certtype

ByteEnumField

1

certlen

FieldLenField

None

responselen

FieldLenField

None

certdata

_SSLv2CertDataField

b''

responsedata

_TLSSignatureField

None

post_dissection_tls_session_update(msg_str)
tls_session_update(msg_str)
class scapy.layers.tls.handshake_sslv2.SSLv2ClientFinished(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

为了解析ClientFinished,应将确切的消息字符串提供给该类. SSLv2没有提供任何其他方式来了解c_id长度.

aliastypes
build(*args, **kargs)
fields_desc
SSLv2ClientFinished字段

msgtype

ByteEnumField

3

connection_id

XStrField

b''

post_dissection(pkt)
class scapy.layers.tls.handshake_sslv2.SSLv2ClientHello(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

SSLv2 ClientHello.

aliastypes
fields_desc
SSLv2ClientHello字段

msgtype

ByteEnumField

1

version

_TLSVersionField

2

cipherslen

FieldLenField

None

sidlen

FieldLenField

None

challengelen

FieldLenField

None

sid

XStrLenField

b''

ciphers

_SSLv2CipherSuitesField

[458944]

challenge

XStrLenField

b''

tls_session_update(msg_str)
class scapy.layers.tls.handshake_sslv2.SSLv2ClientMasterKey(*args, **kargs)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

SSLv2 ClientMasterKey.

aliastypes
decryptedkey
fields_desc
SSLv2ClientMasterKey字段

msgtype

ByteEnumField

2

cipher

_SSLv2CipherSuiteField

None

clearkeylen

FieldLenField

None

encryptedkeylen

FieldLenField

None

keyarglen

FieldLenField

None

clearkey

XStrLenField

b''

encryptedkey

_SSLv2EncryptedKeyField

b''

keyarg

XStrLenField

b''

post_build(pkt, pay)
pre_dissect(s)
tls_session_update(msg_str)
class scapy.layers.tls.handshake_sslv2.SSLv2Error(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

SSLv2错误.

aliastypes
fields_desc
SSLv2Error字段

msgtype

ByteEnumField

0

code

ShortEnumField

None

class scapy.layers.tls.handshake_sslv2.SSLv2RequestCertificate(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

为了解析RequestCertificate,应将确切的消息字符串提供给该类. 这就是SSLv2定义挑战长度的方式…

aliastypes
fields_desc
SSLv2RequestCertificate字段

msgtype

ByteEnumField

7

authtype

ByteEnumField

1

challenge

XStrField

b''

tls_session_update(msg_str)
class scapy.layers.tls.handshake_sslv2.SSLv2ServerFinished(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

为了解析ServerFinished,应将确切的消息字符串提供给该类. SSLv2没有提供任何其他方式来知道sid长度.

aliastypes
build(*args, **kargs)
fields_desc
SSLv2ServerFinished字段

msgtype

ByteEnumField

6

sid

XStrField

b''

post_dissection_tls_session_update(msg_str)
class scapy.layers.tls.handshake_sslv2.SSLv2ServerHello(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

SSLv2 ServerHello.

aliastypes
fields_desc
SSLv2ServerHello字段

msgtype

ByteEnumField

4

sid_hit

ByteField

0

certtype

ByteEnumField

1

version

_TLSVersionField

2

certlen

FieldLenField

None

cipherslen

FieldLenField

None

connection_idlen

FieldLenField

None

cert

_SSLv2CertDataField

b''

ciphers

_SSLv2CipherSuitesField

[]

connection_id

XStrLenField

b''

tls_session_update(msg_str)

XXX应该在此处执行有关会话ID的某些操作.

class scapy.layers.tls.handshake_sslv2.SSLv2ServerVerify(_pkt='', post_transform=None, _internal=0, _underlayer=None, tls_session=None, **fields)

Bases: scapy.layers.tls.handshake_sslv2._SSLv2Handshake

为了解析ServerVerify,应将确切的消息字符串提供给该类. 这就是SSLv2定义挑战长度的方式…

aliastypes
build(*args, **kargs)
fields_desc
SSLv2ServerVerify字段

msgtype

ByteEnumField

5

challenge

XStrField

b''

post_dissection(pkt)