scapy.contrib.tacacs¶
-
class
scapy.contrib.tacacs.TacacsAccountingReply(*args, **kargs)¶ Bases:
scapy.packet.PacketTacacs accounting reply body from section 6.2 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-6.2
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SERVER MSG LEN | DATA LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STATUS | SERVER MSG | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. TacacsAccountingReplyTacacsAccountingReply fields¶ server_msg_len
Nonedata_len
Nonestatus
Noneserver_msg
b''data
b''
-
-
class
scapy.contrib.tacacs.TacacsAccountingRequest(*args, **kargs)¶ Bases:
scapy.packet.PacketTacacs accounting request body from section 6.1 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-6.1
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FLAGS | AUTHEN METHOD | PRIV LVL | AUTHEN TYPE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTHEN SERVICE| USER LEN | PORT LEN | REM ADDR LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ARG CNT | ARG LEN LIST | USER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PORT | REM ADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. TacacsAccountingRequestTacacsAccountingRequest fields¶ flags
0authen_method
0priv_lvl
1authen_type
1authen_service
1user_len
Noneport_len
Nonerem_addr_len
Nonearg_cnt
Nonearg_len_list
[]user
b''port
b''rem_addr
b''
-
guess_payload_class(pay)¶
-
-
class
scapy.contrib.tacacs.TacacsAuthenticationContinue(*args, **kargs)¶ Bases:
scapy.packet.PacketTacacs authentication continue body from section 4.3 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.3
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | USER MSG LEN | DATA LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FLAGS | USER MSG | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. TacacsAuthenticationContinueTacacsAuthenticationContinue fields¶ user_msg_len
Nonedata_len
Noneflags
1user_msg
b''data
b''
-
-
class
scapy.contrib.tacacs.TacacsAuthenticationReply(*args, **kargs)¶ Bases:
scapy.packet.PacketTacacs authentication reply body from section 4.2 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.2
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STATUS | FLAGS | SERVER MSG LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA LEN | SERVER MSG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TacacsAuthenticationReplyTacacsAuthenticationReply fields¶ status
1flags
0server_msg_len
Nonedata_len
Noneserver_msg
b''data
b''
-
-
class
scapy.contrib.tacacs.TacacsAuthenticationStart(*args, **kargs)¶ Bases:
scapy.packet.PacketTacacs authentication start body from section 4.1 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-4.1
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ACTION | PRIV LVL | AUTHEN TYPE | AUTHEN SERVICE| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | USER LEN | PORT LEN | REM ADDR LEN | DATA LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | USER | PORT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | REM ADDR | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TacacsAuthenticationStartTacacsAuthenticationStart fields¶ action
1priv_lvl
1authen_type
1authen_service
1user_len
Noneport_len
Nonerem_addr_len
Nonedata_len
Noneuser
StrLenField(Cond)b''port
b''rem_addr
b''data
b''
-
-
class
scapy.contrib.tacacs.TacacsAuthorizationReply(*args, **kargs)¶ Bases:
scapy.packet.PacketTacacs authorization reply body from section 5.2 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-5.2
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STATUS | ARG CNT | SERVER MSG LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA LEN | ARG LEN LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SERVER MSG | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TacacsAuthorizationReplyTacacsAuthorizationReply fields¶ status
0arg_cnt
Noneserver_msg_len
Nonedata_len
Nonearg_len_list
[]server_msg
b''data
b''
-
guess_payload_class(pay)¶
-
-
class
scapy.contrib.tacacs.TacacsAuthorizationRequest(*args, **kargs)¶ Bases:
scapy.packet.PacketTacacs authorization request body from section 5.1 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-5.1
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTHEN METHOD | PRIV LVL | AUTHEN TYPE | AUTHEN SERVICE| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | USER LEN | PORT LEN | REM ADDR LEN | ARG CNT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ARG LEN LIST | USER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PORT | REM ADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TacacsAuthorizationRequestTacacsAuthorizationRequest fields¶ authen_method
0priv_lvl
1authen_type
1authen_service
1user_len
Noneport_len
Nonerem_addr_len
Nonearg_cnt
Nonearg_len_list
[]user
b''port
b''rem_addr
b''
-
guess_payload_class(pay)¶
-
-
class
scapy.contrib.tacacs.TacacsClientPacket(*args, **kargs)¶ Bases:
scapy.packet.PacketSuper 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(*args, **kargs)¶ Bases:
scapy.contrib.tacacs.TacacsClientPacketTacacs Header packet from section 3.8 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-3.8
-
aliastypes¶
-
answers(other)¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VERSION | TYPE | SEQ | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TacacsHeaderTacacsHeader fields¶ version
192type
1seq
1flags
0session_id
0length
None
-
guess_payload_class(payload)¶
-
hashret()¶
-
payload_guess¶ Possible sublayers:
TacacsAuthenticationReply,TacacsAuthenticationStart
-
post_build(p, pay)¶
-
-
class
scapy.contrib.tacacs.TacacsPacketArguments(*args, **kargs)¶ Bases:
scapy.packet.PacketClass defined to handle the arguments listed at the end of tacacs+ Authorization and Accounting packets.
-
aliastypes¶
-
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TacacsPacketArgumentsTacacsPacketArguments fields¶ data
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