def __init__(self, trafficdb, source, destination): TcpProtocol.__init__(self, trafficdb, source, destination) self.friendly_name = "HTTP" self.serverPort = 80 self.log = logging.getLogger("mallorymain") self.log.info("HTTP protocol handler initialized") self.supports = {malloryevt.STARTS2C: True, malloryevt.STARTC2S: True}
def __init__(self, trafficdb, source, destination): TcpProtocol.__init__(self, trafficdb, source, destination) self.friendly_name = "SSL Base" self.serverPort = 443 self.name = "SSL" self.log = logging.getLogger("mallorymain") self.log.debug("SSLProtocol: Initializing") self.supports = {malloryevt.CSAFTERSS:True, malloryevt.SSCREATE:True}
def __init__(self, trafficdb, source, destination): TcpProtocol.__init__(self, trafficdb, source, destination) self.friendly_name = "SSH" self.log = logging.getLogger("mallorymain") self.serverPort = 22 self.name = "SSH" # Source and destination transports. Used by the paramiko SSH library self.sourcet = None self.destt = None # Destination and source channels for the SSH shell self.sourceschan = None self.destschan = None self.supports = {malloryevt.STARTS2C:True, malloryevt.STARTC2S:True, malloryevt.CSAFTERSS:True, malloryevt.SSCREATE:True} self.log.info("[*] SSHProtocol: Initializing")
def __init__(self, trafficdb, source, destination): TcpProtocol.__init__(self, trafficdb, source, destination) self.friendly_name = "SSH" self.log = logging.getLogger("mallorymain") self.serverPort = 22 self.name = "SSH" # Source and destination transports. Used by the paramiko SSH library self.sourcet = None self.destt = None # Destination and source channels for the SSH shell self.sourceschan = None self.destschan = None self.supports = { malloryevt.STARTS2C: True, malloryevt.STARTC2S: True, malloryevt.CSAFTERSS: True, malloryevt.SSCREATE: True } self.log.info("[*] SSHProtocol: Initializing")