Exemplo n.º 1
0
    def __init__(self, netzob):
        AbstractImporter.__init__(self, "THIRD PARTY IMPORT")
        self.netzob = netzob

        # create the environmental dependancy object
        self.envDeps = EnvironmentalDependencies()

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Import.ThirdPartyImporter.py')
        self.messages = []

        ospyImporter = OSpy()

        # Creates the list of third parties
        self.thirdParties = [ospyImporter]
        self.plugins = []
        # Load plugins
        for plugin in self.thirdParties:
            self.plugins.append(plugin)

        self.init()

        self.dialog = Gtk.Dialog(title=_("Import data from third parties"), flags=0, buttons=None)
        self.dialog.show()
        self.dialog.vbox.pack_start(self.getPanel(), True, True, 0)
        self.dialog.set_size_request(1000, 600)
Exemplo n.º 2
0
    def __init__(self, netzob):
        AbstractImporter.__init__(self, "THIRD PARTY IMPORT")
        self.netzob = netzob

        # create the environmental dependancy object
        self.envDeps = EnvironmentalDependencies()

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Import.ThirdPartyImporter.py')
        self.messages = []

        ospyImporter = OSpy()

        # Creates the list of third parties
        self.thirdParties = [ospyImporter]
        self.plugins = []
        # Load plugins
        for plugin in self.thirdParties:
            self.plugins.append(plugin)

        self.init()

        self.dialog = gtk.Dialog(title=_("Import data from third parties"), flags=0, buttons=None)
        self.dialog.show()
        self.dialog.vbox.pack_start(self.getPanel(), True, True, 0)
        self.dialog.set_size_request(1000, 600)
Exemplo n.º 3
0
    def __init__(self, netzob):
        AbstractImporter.__init__(self, "PCAP IMPORT")
        self.netzob = netzob
        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Import.PcapImport.py')

        self.messages = []
Exemplo n.º 4
0
    def __init__(self, netzob):
        AbstractImporter.__init__(self, "FILE IMPORT")
        self.netzob = netzob
        self.log = logging.getLogger('netzob.Import.FileImport.py')

        # create the environmental dependancy object
        self.envDeps = EnvironmentalDependencies()
        self.filesToBeImported = []
Exemplo n.º 5
0
    def __init__(self, zob):
        AbstractImporter.__init__(self, "NETWORK IMPORT")
        self.zob = zob
        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Import.Network.py')
        self.packets = []

        self.init()

        self.dialog = gtk.Dialog(title=_("Capture network trafic"), flags=0, buttons=None)
        self.dialog.show()
        self.dialog.vbox.pack_start(self.getPanel(), True, True, 0)
        self.dialog.set_size_request(900, 700)
Exemplo n.º 6
0
    def __init__(self, netzob):
        AbstractImporter.__init__(self, "XML IMPORT")
        self.netzob = netzob

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Import.XMLImport.py')
        self.messages = []

        self.init()

        self.dialog = gtk.Dialog(title=_("Import XML file"), flags=0, buttons=None)
        self.dialog.show()
        self.dialog.vbox.pack_start(self.getPanel(), True, True, 0)
        self.dialog.set_size_request(1000, 600)
Exemplo n.º 7
0
    def __init__(self, netzob):
        AbstractImporter.__init__(self, "XML IMPORT",
                                  netzob.getCurrentWorkspace(),
                                  netzob.getCurrentProject())
        self.netzob = netzob

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Import.XMLImport.py')
        self.messages = []

        self.init()

        self.dialog = Gtk.Dialog(title=("Import XML file"),
                                 flags=0,
                                 buttons=None)
        self.dialog.show()
        self.dialog.vbox.pack_start(self.getPanel(), True, True, 0)
        self.dialog.set_size_request(1000, 600)