scapy.contrib.tacacs

class scapy.contrib.tacacs.TacacsAccountingReply

Bases: scapy.packet.Packet

来自6.2节的Tacacs会计回复正文https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-6.2

aliastypes
fields_desc
TacacsAccountingReply字段

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

6.1节中的Tacacs会计请求正文https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-6.1

aliastypes
fields_desc
TacacsAccountingRequest字段

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身份验证从第4.3节https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.3的正文继续

aliastypes
fields_desc
TacacsAuthenticationContinue字段

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

来自第4.2节的Tacacs身份验证回复正文https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.2

aliastypes
fields_desc
TacacsAuthenticationReply字段

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身份验证从4.1节开始正文https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.1

aliastypes
fields_desc
TacacsAuthenticationStart字段

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

来自5.2节的Tacacs授权回复正文https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-5.2

aliastypes
fields_desc
TacacsAuthorizationReply字段

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

来自第5.1节的Tacacs授权请求正文https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-5.1

aliastypes
fields_desc
TacacsAuthorizationRequest字段

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

tacacs数据包的超类,以便从第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

来自3.8节的Tacacs标头包https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-3.8

aliastypes
answers(other)
fields_desc
TacacsHeader字段

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

可能的子层: TacacsAuthenticationReplyTacacsAuthenticationStart

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

Bases: scapy.packet.Packet

定义为处理tacacs +授权和计费数据包末尾列出的参数的类.

aliastypes
fields_desc
TacacsPacketArguments字段

data

StrLenField

b''

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

3.7节中的混淆方法https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-3.7