#2712 - Commit before merging in changes on dev

This commit is contained in:
Charlie Crane
2024-07-19 11:17:54 +01:00
parent 51d29c3ab9
commit 2104a7ec7d
2 changed files with 40 additions and 5 deletions

View File

@@ -56,6 +56,15 @@ class SSHConnectionMessage(IntEnum):
SSH_MSG_CHANNEL_CLOSE = 87
"""Closes the channel."""
class SSHUserCredentials(DataPacket):
"""Hold Username and Password in SSH Packets"""
username: str = None
"""Username for login"""
password: str = None
"""Password for login"""
class SSHPacket(DataPacket):
"""Represents an SSHPacket."""
@@ -64,8 +73,8 @@ class SSHPacket(DataPacket):
connection_message: SSHConnectionMessage = None
ssh_command: Optional[str] = None # This is the request string
connection_uuid: Optional[str] = None # The connection uuid used to validate the session
ssh_output: Optional[RequestResponse] = None # The Request Manager's returned RequestResponse
user_account: Optional[Dict] = None # The user account we will use to login if we do not have a current connection.
ssh_command: Optional[str] = None # This is the request string