scapy.layers.tls.record_sslv2

SSLv2 Record.

class scapy.layers.tls.record_sslv2.SSLv2(_pkt, /, *, len=None, padlen=None, mac=b'', msg=[], pad=b'')[源代码]

基类:TLS

The encrypted_data is the encrypted version of mac+msg+pad.

aliastypes
do_dissect_payload(s)[源代码]
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |     PADLEN    |      MAC      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |              MSG              |      PAD      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                            Fig. SSLv2                            
SSLv2 fields

len

_SSLv2LengthField

None

padlen

_SSLv2PadLenField

None

mac

_TLSMACField

b''

msg

_SSLv2MsgListField

[]

pad

_SSLv2PadField

b''

post_build(pkt, pay)[源代码]
post_dissect(s)[源代码]

SSLv2 may force us to commit the write connState here.

pre_dissect(s)[源代码]
protected_record
with_padding