Exemplo n.º 1
0
 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}
Exemplo n.º 2
0
 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}
Exemplo n.º 3
0
 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}        
Exemplo n.º 4
0
    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")
Exemplo n.º 5
0
    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")