scapy.contrib.tacacs
TACACS
Based on tacacs+ v6 draft https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06
- class scapy.contrib.tacacs.TacacsAccountingReply(_pkt, /, *, server_msg_len=None, data_len=None, status=None, server_msg=b'', data=b'')[源代码]
基类:
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(_pkt, /, *, flags=0, authen_method=0, priv_lvl=1, authen_type=1, authen_service=1, user_len=None, port_len=None, rem_addr_len=None, arg_cnt=None, arg_len_list=[], user=b'', port=b'', rem_addr=b'')[源代码]
基类:
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''
- class scapy.contrib.tacacs.TacacsAuthenticationContinue(_pkt, /, *, user_msg_len=None, data_len=None, flags=1, user_msg=b'', data=b'')[源代码]
基类:
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(_pkt, /, *, status=1, flags=0, server_msg_len=None, data_len=None, server_msg=b'', data=b'')[源代码]
基类:
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(_pkt, /, *, action=1, priv_lvl=1, authen_type=1, authen_service=1, user_len=None, port_len=None, rem_addr_len=None, data_len=None, user=b'', port=b'', rem_addr=b'', data=b'')[源代码]
基类:
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(_pkt, /, *, status=0, arg_cnt=None, server_msg_len=None, data_len=None, arg_len_list=[], server_msg=b'', data=b'')[源代码]
基类:
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''
- class scapy.contrib.tacacs.TacacsAuthorizationRequest(_pkt, /, *, authen_method=0, priv_lvl=1, authen_type=1, authen_service=1, user_len=None, port_len=None, rem_addr_len=None, arg_cnt=None, arg_len_list=[], user=b'', port=b'', rem_addr=b'')[源代码]
基类:
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''
- class scapy.contrib.tacacs.TacacsClientPacket(_pkt, /)[源代码]
基类:
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
- class scapy.contrib.tacacs.TacacsHeader(_pkt, /, *, version=192, type=1, seq=1, flags=0, session_id=0, length=None)[源代码]
-
Tacacs Header packet from section 3.8 https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06#section-3.8
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VERSION | TYPE | SEQ | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. TacacsHeaderTacacsHeader fields version
192type
1seq
1flags
0session_id
0length
None
- payload_guess
Possible sublayers:
TacacsAuthenticationReply,TacacsAuthenticationStart
- class scapy.contrib.tacacs.TacacsPacketArguments(_pkt, /, *, data=b'')[源代码]
基类:
PacketClass defined to handle the arguments listed at the end of tacacs+ Authorization and Accounting packets.
- aliastypes
- 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