scapy.layers.gssapi

Generic Security Services (GSS) API

Implements parts of - GSSAPI: RFC2743 - GSSAPI SPNEGO: RFC4178 > RFC2478

class scapy.layers.gssapi.ASN1F_SNMP_GSSAPI_APPLICATION(*seq, **kwargs)[source]

Bases: scapy.asn1fields.ASN1F_SEQUENCE

ASN1_tag = <ASN1Tag APPLICATION[96]>
class scapy.layers.gssapi.ASN1_Class_GSSAPI[source]

Bases: scapy.asn1.asn1.ASN1_Class_UNIVERSAL

ANY = <ASN1Tag ANY[0]>
APPLICATION = <ASN1Tag APPLICATION[96]>
BIT_STRING = <ASN1Tag BIT_STRING[3]>
BMP_STRING = <ASN1Tag BMP_STRING[30]>
BOOLEAN = <ASN1Tag BOOLEAN[1]>
CHAR_STRING = <ASN1Tag CHAR_STRING[29]>
COUNTER32 = <ASN1Tag COUNTER32[65]>
EMBEDDED_PDF = <ASN1Tag EMBEDDED_PDF[11]>
ENUMERATED = <ASN1Tag ENUMERATED[10]>
ERROR = <ASN1Tag ERROR[-3]>
EXTERNAL = <ASN1Tag EXTERNAL[8]>
GAUGE32 = <ASN1Tag GAUGE32[66]>
GENERALIZED_TIME = <ASN1Tag GENERALIZED_TIME[24]>
GENERAL_STRING = <ASN1Tag GENERAL_STRING[27]>
GRAPHIC_STRING = <ASN1Tag GRAPHIC_STRING[25]>
IA5_STRING = <ASN1Tag IA5_STRING[22]>
INTEGER = <ASN1Tag INTEGER[2]>
IPADDRESS = <ASN1Tag IPADDRESS[64]>
ISO646_STRING = <ASN1Tag ISO646_STRING[26]>
NONE = <ASN1Tag NONE[-1]>
NULL = <ASN1Tag NULL[5]>
NUMERIC_STRING = <ASN1Tag NUMERIC_STRING[18]>
OBJECT_DESCRIPTOR = <ASN1Tag OBJECT_DESCRIPTOR[7]>
OID = <ASN1Tag OID[6]>
PRINTABLE_STRING = <ASN1Tag PRINTABLE_STRING[19]>
RAW = <ASN1Tag RAW[-2]>
REAL = <ASN1Tag REAL[9]>
RELATIVE_OID = <ASN1Tag RELATIVE_OID[13]>
SEQUENCE = <ASN1Tag SEQUENCE[48]>
SET = <ASN1Tag SET[49]>
STRING = <ASN1Tag STRING[4]>
T61_STRING = <ASN1Tag T61_STRING[20]>
TIME_TICKS = <ASN1Tag TIME_TICKS[67]>
UNIVERSAL_STRING = <ASN1Tag UNIVERSAL_STRING[28]>
UTC_TIME = <ASN1Tag UTC_TIME[23]>
UTF8_STRING = <ASN1Tag UTF8_STRING[12]>
VIDEOTEX_STRING = <ASN1Tag VIDEOTEX_STRING[21]>
name = 'GSSAPI'
class scapy.layers.gssapi.ASN1_GSSAPI_APPLICATION(val)[source]

Bases: scapy.asn1.asn1.ASN1_SEQUENCE

tag = <ASN1Tag APPLICATION[96]>
class scapy.layers.gssapi.BERcodec_GSSAPI_APPLICATION(*args, **kwds)[source]

Bases: scapy.asn1.ber.BERcodec_SEQUENCE

tag = <ASN1Tag APPLICATION[96]>
class scapy.layers.gssapi.GSSAPI_BLOB(_pkt, /, *, MechType=<ASN1_OID['SPNEGO - Simple Protected Negotiation']>, innerContextToken=<SPNEGO_negToken  token=<SPNEGO_negTokenInit  mechToken=<SPNEGO_Token  |> mechListMIC=<SPNEGO_MechListMIC  |> |> |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SNMP_GSSAPI_APPLICATION(<scapy.asn1fields.ASN1F_OID object>, <scapy.asn1fields.ASN1F_PACKET object>)>
aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[source]
fields_desc
GSSAPI_BLOB fields

MechType

ASN1F_OID

<ASN1_OID['SPNEGO - Simple Protected Negotiation']>

innerContextToken

ASN1F_PACKET

<SPNEGO_negToken  token=<SPNEGO_negTokenInit  mechToken=<SPNEGO_Token  |> mechListMIC=<SPNEGO_MechListMIC  |> |> |>

class scapy.layers.gssapi.SPNEGO_MechListMIC(_pkt, /, *, value=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
SPNEGO_MechListMIC fields

value

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.gssapi.SPNEGO_MechType(_pkt, /, *, oid=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_OID object>
aliastypes
fields_desc
SPNEGO_MechType fields

oid

ASN1F_OID

None

class scapy.layers.gssapi.SPNEGO_MechTypes(_pkt, /, *, mechTypes=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE_OF mechTypes>
aliastypes
fields_desc
SPNEGO_MechTypes fields

mechTypes

ASN1F_SEQUENCE_OF

None

class scapy.layers.gssapi.SPNEGO_Token(_pkt, /, *, value=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.layers.gssapi._SPNEGO_Token_Field object>
aliastypes
fields_desc
SPNEGO_Token fields

value

_SPNEGO_Token_Field

None

class scapy.layers.gssapi.SPNEGO_negToken(_pkt, /, *, token=<SPNEGO_negTokenInit  mechToken=<SPNEGO_Token  |> mechListMIC=<SPNEGO_MechListMIC  |> |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
SPNEGO_negToken fields

token

ASN1F_CHOICE

<SPNEGO_negTokenInit  mechToken=<SPNEGO_Token  |> mechListMIC=<SPNEGO_MechListMIC  |> |>

class scapy.layers.gssapi.SPNEGO_negTokenInit(_pkt, /, *, mechTypes=None, reqFlags=None, mechToken=<SPNEGO_Token  |>, mechListMIC=<SPNEGO_MechListMIC  |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>,)>
aliastypes
fields_desc
SPNEGO_negTokenInit fields

mechTypes

ASN1F_SEQUENCE_OF

None

reqFlags

ASN1F_FLAGS

None

mechToken

ASN1F_PACKET

<SPNEGO_Token  |>

mechListMIC

ASN1F_PACKET

<SPNEGO_MechListMIC  |>

class scapy.layers.gssapi.SPNEGO_negTokenResp(_pkt, /, *, negResult=0x0 <ASN1_ENUMERATED[0]>, supportedMech=<SPNEGO_MechType  |>, responseToken=<SPNEGO_Token  |>, mechListMIC=<SPNEGO_MechListMIC  |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>,)>
aliastypes
fields_desc
SPNEGO_negTokenResp fields

negResult

ASN1F_ENUMERATED

0x0 <ASN1_ENUMERATED[0]>

supportedMech

ASN1F_PACKET

<SPNEGO_MechType  |>

responseToken

ASN1F_PACKET

<SPNEGO_Token  |>

mechListMIC

ASN1F_PACKET

<SPNEGO_MechListMIC  |>