scapy.layers.smbserver

SMB 1 / 2 Server Automaton

class scapy.layers.smbserver.NTLM_SMB_Server(self, debug: int = 0, store: int = 1, **kargs: Any)[源代码]

基类:NTLM_Server, Automaton

AUTHENTICATED(*args: ATMT, **kargs: Any) NewStateRequested[源代码]
BEGIN(*args: ATMT, **kargs: Any) NewStateRequested[源代码]
END(*args: ATMT, **kargs: Any) NewStateRequested[源代码]
NEGOTIATED(*args: ATMT, **kargs: Any) NewStateRequested[源代码]
RECEIVED_SETUP_ANDX_REQUEST(*args: ATMT, **kargs: Any) NewStateRequested[源代码]
actions: Dict[str, List[_StateWrapper]] = {'receive_packet_echo': [<function NTLM_SMB_Server.pass_packet>], 'receive_setup_andx_request': [<function NTLM_SMB_Server.on_setup_andx_request>], 'received_negotiate': [<function NTLM_SMB_Server.on_negotiate>], 'received_negotiate_smb2': [<function NTLM_SMB_Server.on_negotiate_smb2>], 'received_negotiate_smb2_begin': [<function NTLM_SMB_Server.on_negotiate_smb2_begin>], 'should_end': [], 'wait_for_next_request': []}
breakpoints: Set[_StateWrapper]
cls[源代码]

NBTSession 的别名

conditions: Dict[str, List[_StateWrapper]] = {'AUTHENTICATED': [<function NTLM_SMB_Server.should_end>], 'BEGIN': [], 'END': [], 'NEGOTIATED': [], 'RECEIVED_SETUP_ANDX_REQUEST': [<function NTLM_SMB_Server.wait_for_next_request>]}
initial_states: List[_StateWrapper] = [<function ATMT.state.<locals>.deco.<locals>._state_wrapper>]
intercepted_packet: None | Packet
interception_points: Set[_StateWrapper]
ioevents: Dict[str, List[_StateWrapper]] = {'AUTHENTICATED': [], 'BEGIN': [], 'END': [], 'NEGOTIATED': [], 'RECEIVED_SETUP_ANDX_REQUEST': []}
ionames: List[str] = []
iosupersockets: List[SuperSocket] = []
on_negotiate(pkt)[源代码]
on_negotiate_smb2(pkt)[源代码]
on_negotiate_smb2_begin(pkt)[源代码]
on_setup_andx_request(pkt)[源代码]
packets: PacketList
pass_packet(pkt)[源代码]
port = 445
receive_packet_echo(pkt)[源代码]
receive_setup_andx_request(pkt)[源代码]
received_negotiate(pkt)[源代码]
received_negotiate_smb2(pkt)[源代码]
received_negotiate_smb2_begin(pkt)[源代码]
recv_conditions: Dict[str, List[_StateWrapper]] = {'AUTHENTICATED': [<function NTLM_SMB_Server.receive_packet_echo>], 'BEGIN': [<function NTLM_SMB_Server.received_negotiate>, <function NTLM_SMB_Server.received_negotiate_smb2_begin>], 'END': [], 'NEGOTIATED': [<function NTLM_SMB_Server.received_negotiate_smb2>, <function NTLM_SMB_Server.receive_setup_andx_request>], 'RECEIVED_SETUP_ANDX_REQUEST': []}
send(pkt)[源代码]
should_end()[源代码]
states: Dict[str, _StateWrapper] = {'AUTHENTICATED': <function ATMT.state.<locals>.deco.<locals>._state_wrapper>, 'BEGIN': <function ATMT.state.<locals>.deco.<locals>._state_wrapper>, 'END': <function ATMT.state.<locals>.deco.<locals>._state_wrapper>, 'NEGOTIATED': <function ATMT.state.<locals>.deco.<locals>._state_wrapper>, 'RECEIVED_SETUP_ANDX_REQUEST': <function ATMT.state.<locals>.deco.<locals>._state_wrapper>}
stop_states: List[_StateWrapper] = []
threadid: int | None
timeout: Dict[str, _TimerList] = {'AUTHENTICATED': [], 'BEGIN': [], 'END': [], 'NEGOTIATED': [], 'RECEIVED_SETUP_ANDX_REQUEST': []}
update_smbheader(pkt)[源代码]
wait_for_next_request()[源代码]