예제 #1
0
 def __init__(self, id, memory, protocol, bind_ip, bind_port, target_ip, target_port):
     AbstractChannel.__init__(self, id, False, False, memory, protocol, bind_ip, bind_port, target_ip, target_port)
     # create logger with the given configuration
     self.log = logging.getLogger(__name__)
     self.socket = None
     self.inputMessages = []
     self.outputMessages = []
예제 #2
0
    def __init__(self, id, memory, protocol, bind_ip, bind_port, target_ip, target_port):
        AbstractChannel.__init__(self, id, True, False, memory, protocol, bind_ip, bind_port, target_ip, target_port)
        # create logger with the given configuration
        self.log = logging.getLogger(__name__)

        self.server = None
        self.instantiatedServers = []
        self.allowMultipleClients = True
예제 #3
0
 def __init__(self, id, memory, protocol, bind_ip, bind_port, target_ip,
              target_port):
     AbstractChannel.__init__(self, id, False, False, memory, protocol,
                              bind_ip, bind_port, target_ip, target_port)
     # create logger with the given configuration
     self.log = logging.getLogger(__name__)
     self.socket = None
     self.inputMessages = []
     self.outputMessages = []
    def __init__(self, id, inputs, outputs, vocabulary, memory):
        AbstractChannel.__init__(self, id, False, False, memory, None, None, None, None, None)

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.MMSTD.Actors.SimpleCommunicationLayer.py')
        self.predefinedInputs = deque(inputs)
        self.predefinedOutputs = deque(outputs)
        self.inputMessages = []
        self.outputMessages = []
        self.vocabulary = vocabulary
        self.memory = memory
 def __init__(self, idActor, memory, protocol, request, bind_ip, bind_port, target_ip, target_port):
     AbstractChannel.__init__(self, idActor, True, True, memory, protocol, bind_ip, bind_port, target_ip, target_port)
     # create logger with the given configuration
     self.log = logging.getLogger('netzob.Common.MMSTD.Actors.Network.InstanciatedNetworkServer.py')
     self.inputMessages = []
     self.outputMessages = []
     self.protocol = protocol
     if self.protocol == "UDP":
         dataReceived = request[0].strip()
         self.socket = request[1]
     else:  # TCP
         self.socket = request
    def __init__(self, id, inputs, outputs, vocabulary, memory):
        AbstractChannel.__init__(self, id, False, False, memory, None, None,
                                 None, None, None)

        # create logger with the given configuration
        self.log = logging.getLogger(
            'netzob.Common.MMSTD.Actors.SimpleCommunicationLayer.py')
        self.predefinedInputs = deque(inputs)
        self.predefinedOutputs = deque(outputs)
        self.inputMessages = []
        self.outputMessages = []
        self.vocabulary = vocabulary
        self.memory = memory