예제 #1
0
파일: http.py 프로젝트: demoray/mallory
 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}
예제 #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}
예제 #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}        
예제 #4
0
파일: ssh.py 프로젝트: Akdeniz/mallory
    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")
예제 #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")