コード例 #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
ファイル: sslproto.py プロジェクト: xzhou/SameKeyProxy
 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")