scapy.contrib.tacacs

class scapy.contrib.tacacs.TacacsAccountingReply

Bases: scapy.packet.Packet

Tacacs accounting reply body from section 6.2 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-6.2

aliastypes
fields_desc
TacacsAccountingReply fields

server_msg_len

FieldLenField

None

data_len

FieldLenField

None

status

ByteEnumField

None

server_msg

StrLenField

b''

data

StrLenField

b''

class scapy.contrib.tacacs.TacacsAccountingRequest

Bases: scapy.packet.Packet

Tacacs accounting request body from section 6.1 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-6.1

aliastypes
fields_desc
TacacsAccountingRequest fields

flags

ByteEnumField

0

authen_method

ByteEnumField

0

priv_lvl

ByteEnumField

1

authen_type

ByteEnumField

1

authen_service

ByteEnumField

1

user_len

FieldLenField

None

port_len

FieldLenField

None

rem_addr_len

FieldLenField

None

arg_cnt

FieldLenField

None

arg_len_list

FieldListField

[]

user

StrLenField

b''

port

StrLenField

b''

rem_addr

StrLenField

b''

guess_payload_class(pay)
class scapy.contrib.tacacs.TacacsAuthenticationContinue

Bases: scapy.packet.Packet

Tacacs authentication continue body from section 4.3 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.3

aliastypes
fields_desc
TacacsAuthenticationContinue fields

user_msg_len

FieldLenField

None

data_len

FieldLenField

None

flags

ByteEnumField

1

user_msg

StrLenField

b''

data

StrLenField

b''

class scapy.contrib.tacacs.TacacsAuthenticationReply

Bases: scapy.packet.Packet

Tacacs authentication reply body from section 4.2 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.2

aliastypes
fields_desc
TacacsAuthenticationReply fields

status

ByteEnumField

1

flags

ByteEnumField

0

server_msg_len

FieldLenField

None

data_len

FieldLenField

None

server_msg

StrLenField

b''

data

StrLenField

b''

class scapy.contrib.tacacs.TacacsAuthenticationStart

Bases: scapy.packet.Packet

Tacacs authentication start body from section 4.1 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.1

aliastypes
fields_desc
TacacsAuthenticationStart fields

action

ByteEnumField

1

priv_lvl

ByteEnumField

1

authen_type

ByteEnumField

1

authen_service

ByteEnumField

1

user_len

FieldLenField

None

port_len

FieldLenField

None

rem_addr_len

FieldLenField

None

data_len

FieldLenField

None

user

StrLenField (Cond)

b''

port

StrLenField

b''

rem_addr

StrLenField

b''

data

StrLenField

b''

class scapy.contrib.tacacs.TacacsAuthorizationReply

Bases: scapy.packet.Packet

Tacacs authorization reply body from section 5.2 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-5.2

aliastypes
fields_desc
TacacsAuthorizationReply fields

status

ByteEnumField

0

arg_cnt

FieldLenField

None

server_msg_len

FieldLenField

None

data_len

FieldLenField

None

arg_len_list

FieldListField

[]

server_msg

StrLenField

b''

data

StrLenField

b''

guess_payload_class(pay)
class scapy.contrib.tacacs.TacacsAuthorizationRequest

Bases: scapy.packet.Packet

Tacacs authorization request body from section 5.1 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-5.1

aliastypes
fields_desc
TacacsAuthorizationRequest fields

authen_method

ByteEnumField

0

priv_lvl

ByteEnumField

1

authen_type

ByteEnumField

1

authen_service

ByteEnumField

1

user_len

FieldLenField

None

port_len

FieldLenField

None

rem_addr_len

FieldLenField

None

arg_cnt

FieldLenField

None

arg_len_list

FieldListField

[]

user

StrLenField

b''

port

StrLenField

b''

rem_addr

StrLenField

b''

guess_payload_class(pay)
class scapy.contrib.tacacs.TacacsClientPacket

Bases: scapy.packet.Packet

Super class for tacacs packet in order to get them unencrypted Obfuscation methodology from section 3.7 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-3.7

aliastypes
post_dissect(pay)
class scapy.contrib.tacacs.TacacsHeader

Bases: scapy.contrib.tacacs.TacacsClientPacket

Tacacs Header packet from section 3.8 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-3.8

aliastypes
answers(other)
fields_desc
TacacsHeader fields

version

ByteEnumField

192

type

ByteEnumField

1

seq

ByteField

1

flags

ByteEnumField

0

session_id

IntField

0

length

IntField

None

guess_payload_class(payload)
hashret()
payload_guess

Possible sublayers: TacacsAuthenticationReply, TacacsAuthenticationStart

post_build(p, pay)
class scapy.contrib.tacacs.TacacsPacketArguments

Bases: scapy.packet.Packet

Class defined to handle the arguments listed at the end of tacacs+ Authorization and Accounting packets.

aliastypes
fields_desc
TacacsPacketArguments fields

data

StrLenField

b''

guess_payload_class(pay)
pre_dissect(s)
scapy.contrib.tacacs.obfuscate(pay, secret, session_id, version, seq)

Obfuscation methodology from section 3.7 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-3.7