Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad AugAssignAdd NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad Index Num AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad AugAssignAdd NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad AugAssignAdd NameStore NameLoad Assign NameStore ListLoad If CompareNotEq Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad Index Num AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Return TupleLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr IfExp CompareEq Call NameLoad AttributeLoad NameLoad attr Num Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults BinOpAdd Str Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str BinOpAdd Str SubscriptLoad NameLoad Slice Num Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num NameLoad AttributeLoad NameLoad attr Return TupleLoad Call NameLoad NameLoad BinOpAdd NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Slice Num decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd Str BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Str comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str BinOpAdd Str SubscriptLoad NameLoad Slice Num Index Num Assign NameStore SubscriptLoad NameLoad Slice Num BinOpAdd Num NameLoad If CompareNotEq Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return TupleLoad NameLoad BinOpAdd NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Slice Num NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults BinOpAdd Str Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults BinOpAdd Str Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults BinOpAdd Str Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad AugAssignAdd NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad Index Num AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad Index Num AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad Index Num AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Assign NameStore ListLoad If CompareNotEq NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad Index Num AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Return TupleLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str IfExp CompareEq Call NameLoad AttributeLoad NameLoad attr Num Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body ClassDef bases NameLoad body Assign NameStore DictComp Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Slice Num Num If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num BinOpAdd Num NameLoad If CompareNotEq NameLoad Call NameLoad NameLoad body Raise Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return TupleLoad Call NameLoad NameLoad NameLoad BinOpAdd NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Copyright 2014 Google Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 nogotofail.mitm.util Constants nogotofail.mitm.util.tls.types parse nogotofail.mitm.util.tls.types Cipher Extension Version Random CompressionMethod nogotofail.mitm.util.tls.types TlsNotEnoughDataError N/A base64 N/A struct ServerHelloDone N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A from_stream N/A N/A body N/A N/A N/A N/A N/A ServerHelloDone 0 N/A staticmethod to_bytes N/A N/A self N/A N/A N/A N/A N/A ServerHello N/A object N/A __init__ N/A N/A self version random session_id cipher compression_method extensions N/A N/A N/A N/A self version version N/A N/A self random random N/A N/A self session_id session_id N/A N/A self cipher cipher N/A N/A self compression_method compression_method N/A N/A self extension_list extensions N/A N/A self extensions N/A N/A ext name ext N/A ext extensions N/A from_stream N/A N/A body N/A N/A N/A Parse a Server Hello record from body.

        Body should start with the byte representation of an RFC 5246
        struct Server Hello.
        Returns a ServerHello and the number of bytes read from body

        Throws a struct.error or IndexError if there is not enough data to parse
        properly.
         N/A N/A version index N/A N/A Version from_stream body N/A N/A random read_amt N/A N/A Random from_stream N/A body N/A index N/A index read_amt N/A sessionid_length N/A N/A N/A struct unpack_from B body index N/A 0 N/A index 1 N/A N/A session_id read_amt N/A N/A parse parse_tls_list N/A body N/A index sessionid_length N/A parse parse_opaque N/A index read_amt N/A N/A cipher read_amt N/A N/A Cipher from_stream N/A body N/A index N/A index read_amt N/A N/A method read_amt N/A N/A CompressionMethod from_stream N/A body N/A index N/A index read_amt N/A extensions N/A N/A N/A N/A len body index N/A N/A extensions_length N/A N/A N/A struct unpack_from !H body index N/A 0 N/A index 2 N/A N/A extensions read_amt N/A N/A parse parse_tls_list N/A body N/A index extensions_length N/A Extension from_stream N/A index read_amt N/A N/A N/A ServerHello version random session_id cipher method extensions index N/A staticmethod to_bytes N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self version to_bytes N/A N/A N/A self random to_bytes N/A N/A parse to_tls_list N/A self session_id N/A parse to_opaque B N/A N/A N/A self cipher to_bytes N/A N/A N/A self compression_method to_bytes N/A N/A N/A len N/A self extension_list 0 N/A N/A parse to_tls_list N/A self extension_list N/A Extension to_bytes !H N/A __str__ N/A N/A self N/A N/A N/A extensions N/A N/A join N/A map N/A N/A N/A s N/A N/A N/A str s N/A self extension_list N/A session_id N/A N/A Server Hello
%s
%s
Session id:%s
Cipher: %s
Compression Method: %s
Extensions:
%s
 N/A N/A self version N/A self random N/A self session_id N/A self cipher N/A self compression_method extensions N/A N/A Certificate N/A object N/A N/A Tls Certificate Handshake message(See RFC 5246)
     N/A certificates None __init__ N/A N/A self certificates N/A N/A N/A N/A self certificates certificates N/A from_stream N/A N/A body N/A N/A N/A num_certificates N/A N/A N/A struct unpack_from !I N/A N/A body N/A 3 N/A 0 N/A N/A certificates read_amt N/A N/A parse parse_tls_list N/A body N/A 3 num_certificates N/A Certificate _parse_certificate N/A N/A N/A Certificate certificates N/A read_amt 3 N/A staticmethod to_bytes N/A N/A self N/A N/A N/A N/A N/A N/A parse to_tls_list N/A self certificates N/A Certificate _write_certificate !I N/A 1 N/A __str__ N/A N/A self N/A N/A N/A N/A N/A Certificate:
 N/A Number of certs: %d
 N/A len N/A self certificates N/A N/A join N/A N/A 	Certificate %d: %s N/A i N/A N/A cert encode hex N/A N/A i cert N/A enumerate N/A self certificates N/A _parse_certificate N/A N/A buf N/A N/A N/A length N/A N/A N/A struct unpack_from !I N/A N/A buf N/A 3 N/A 0 N/A data N/A buf N/A 3 N/A 3 length N/A N/A N/A len data length N/A N/A N/A ValueError Not enough data to parse certificate N/A N/A data N/A length 3 N/A staticmethod _write_certificate N/A N/A certificate_bytes N/A N/A N/A N/A N/A N/A N/A struct pack !I N/A len certificate_bytes N/A 1 certificate_bytes N/A staticmethod N/A ClientHello N/A object N/A __init__ N/A N/A self version random session_id ciphers compression_methods extensions N/A N/A N/A N/A self version version N/A N/A self random random N/A N/A self session_id session_id N/A N/A self ciphers ciphers N/A N/A self compression_methods compression_methods N/A N/A self extension_list extensions N/A N/A self extensions N/A N/A ext type ext N/A ext extensions N/A __str__ N/A N/A self N/A N/A N/A extensions N/A N/A join N/A map N/A N/A N/A s N/A N/A N/A str s N/A self extension_list N/A ciphers N/A N/A join N/A map N/A N/A N/A s N/A N/A N/A str s N/A self ciphers N/A methods N/A N/A join N/A map N/A N/A N/A s N/A N/A N/A str s N/A self compression_methods N/A session_id N/A N/A Client Hello
%s
%s
Session id:%s
Ciphers:
%s
Compression Methods:
%s
Extensions:
%s
 N/A N/A self version N/A self random N/A self session_id ciphers methods extensions N/A from_stream N/A N/A body N/A N/A N/A Parse a Client Hello record from body.

        Body should start with the byte representation of an RFC 5246
        struct ClientHello
        Returns a ClientHello and the number of bytes read from body

        Throws a struct.error or IndexError if there is not enough data to parse
        properly.
         N/A N/A version index N/A N/A Version from_stream body N/A N/A random read_amt N/A N/A Random from_stream N/A body N/A index N/A index read_amt N/A sessionid_length N/A N/A N/A struct unpack_from B body index N/A 0 N/A index 1 N/A N/A session_id read_amt N/A N/A parse parse_tls_list N/A body N/A index sessionid_length N/A parse parse_opaque N/A index read_amt N/A cipher_length N/A N/A N/A struct unpack_from !H body index N/A 0 N/A index 2 N/A N/A ciphers read_amt N/A N/A parse parse_tls_list N/A body N/A index cipher_length N/A Cipher from_stream N/A index read_amt N/A compression_length N/A N/A N/A struct unpack_from B body index N/A 0 N/A index 1 N/A N/A compression_methods read_amt N/A N/A parse parse_tls_list N/A body N/A index compression_length N/A CompressionMethod from_stream N/A index read_amt N/A extensions N/A N/A N/A index N/A len body N/A N/A extensions_length N/A N/A N/A struct unpack_from !H body index N/A 0 N/A index 2 N/A N/A extensions read_amt N/A N/A parse parse_tls_list N/A body N/A index extensions_length N/A Extension from_stream N/A index read_amt N/A N/A N/A ClientHello version random session_id ciphers compression_methods extensions index N/A staticmethod to_bytes N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self version to_bytes N/A N/A N/A self random to_bytes N/A N/A parse to_tls_list N/A self session_id N/A parse to_opaque B N/A N/A parse to_tls_list N/A self ciphers N/A Cipher to_bytes !H N/A N/A parse to_tls_list N/A self compression_methods N/A CompressionMethod to_bytes B N/A N/A N/A len N/A self extension_list 0 N/A N/A parse to_tls_list N/A self extension_list N/A Extension to_bytes !H N/A N/A OpaqueMessage N/A object N/A __init__ N/A N/A self body N/A N/A N/A N/A self body body N/A from_stream N/A N/A body N/A N/A N/A N/A N/A OpaqueMessage body N/A len body N/A staticmethod to_bytes N/A N/A self N/A N/A N/A N/A self body N/A N/A N/A name_map N/A 0 1 2 11 12 13 14 15 16 20 hello_request client_hello server_hello certificate server_key_exchange certificate_request server_hello_done certificate_verify client_key_exchange finished HandshakeMessage N/A object N/A TYPE N/A Constants N/A N/A _constants N/A N/A N/A name upper value N/A N/A value name N/A N/A name_map items N/A N/A type_map N/A N/A TYPE CLIENT_HELLO N/A TYPE SERVER_HELLO N/A TYPE CERTIFICATE N/A TYPE SERVER_HELLO_DONE ClientHello ServerHello Certificate ServerHelloDone __init__ N/A N/A self type obj N/A N/A N/A N/A self obj obj N/A N/A self type type N/A from_stream N/A N/A body N/A N/A N/A N/A msg_type length N/A N/A struct unpack !BI N/A N/A N/A body N/A 0 N/A body N/A 1 4 N/A N/A msg_type name_map N/A N/A N/A ValueError N/A Unknown HanshakeMessage type %d msg_type N/A body N/A body N/A 4 N/A 4 length N/A N/A length N/A len body N/A N/A N/A TlsNotEnoughDataError N/A type N/A N/A N/A HandshakeMessage type_map get msg_type OpaqueMessage N/A N/A obj size N/A N/A type from_stream body N/A N/A N/A len body size N/A N/A N/A ValueError Read mismatch N/A N/A N/A HandshakeMessage msg_type obj N/A length 4 N/A staticmethod to_bytes N/A N/A self N/A N/A N/A obj_bytes N/A N/A N/A self obj to_bytes N/A N/A N/A N/A N/A struct pack B N/A self type N/A N/A N/A struct pack !I N/A len obj_bytes N/A 1 obj_bytes N/A __str__ N/A N/A self N/A N/A N/A N/A HandshakeMessage %s (%d) N/A N/A N/A name_map get N/A self type N/A self type N/A N/A