Пример #1
0
    def __init__(self, refresh=1, stop=1):
        self.nmap_highlight = NmapOutputHighlight()
        HIGVBox.__init__(self)

        # Creating widgets
        self.__create_widgets()

        # Setting scrolled window
        self.__set_scrolled_window()

        # Setting text view
        self.__set_text_view()

        # Setting buttons
        self.__set_buttons()

        # Getting text buffer
        self.text_buffer = self.text_view.get_buffer()

        self.refreshing = True
        self.thread = Thread()

        # Adding widgets to the VPaned
        self._pack_expand_fill(self.scrolled)
        self._pack_noexpand_nofill(self.hbox_buttons)

        self.nmap_output_file = None
        self.nmap_previous_output = ''
        self.brazil = True

        # We have to create a mark to follow changes in the view with left grav.
        self.mark = self.text_buffer.create_mark(
            'start', self.text_buffer.get_start_iter(), True)

        self.__create_tags()
Пример #2
0
    def __init__(self, preferences, show_label=True):
	HIGVBox.__init__(self)
        self.set_border_width(8)
	if show_label:
	    self.pack_start(HIGSectionLabel(_("Text Editor")), False, False)
	self.preferences = preferences
	self.create_widgets()
Пример #3
0
    def __init__(self, optiondisplay=None):
        HIGVBox.__init__(self)
        self.__model =  gtk.TreeStore(gtk.gdk.Pixbuf,gobject.TYPE_STRING)
        self.__treeview = gtk.TreeView(self.__model)
        self.__treeview.set_headers_visible(True)
        self.__treeview.drag_source_set(gtk.gdk.BUTTON1_MASK | 
                                        gtk.gdk.BUTTON3_MASK,
                                        target, gtk.gdk.ACTION_COPY | 
                                        gtk.gdk.ACTION_MOVE)
        self.__treeview.connect('drag_data_get', self.source_drag_data_get)
        column = gtk.TreeViewColumn()
        column.set_title('Name')
        render_pixbuf = gtk.CellRendererPixbuf()
        column.pack_start(render_pixbuf, expand=False)
        column.add_attribute(render_pixbuf, 'pixbuf', 0)
        render_text = gtk.CellRendererText()
        column.pack_start(render_text, expand=True)
        column.add_attribute(render_text, 'text', 1)
        self.__treeview.append_column(column)
        self.options = ListOptions(options)
        self.__scrolledwindow = HIGScrolledWindow()
        self.__scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,
                                         gtk.POLICY_AUTOMATIC)
        self.pack_start(self.__scrolledwindow, True, True )
        self.__scrolledwindow.add(self.__treeview)
        self.optiondisplay = optiondisplay

        self.exists_display = (self.optiondisplay != None ) #True or False
        self.set_option_display(optiondisplay)
    def __init__(self):
        HIGVBox.__init__(self)

        self._create_widgets()
        self._set_port_list()
        self._set_host_list()
        self._pack_widgets()
Пример #5
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)
        
        table = HIGTable()
        self.hbox = HIGHBox()
        
        self.description = HIGEntryLabel(_("""You wish to create a new profile,\
 or just want to quickly create a command and run it once?"""))
        self.profile_radio = gtk.RadioButton(None, _('Profile'))
        self.command_radio = gtk.RadioButton(self.profile_radio, _('Command'))
        self.command_radio.connect('toggled', self.enable_target)
        self.profile_radio.connect('toggled', self.disable_target)
        
        self.target_label = HIGEntryLabel(_("Target"))
        self.target_entry = gtk.Entry()
        self.set_completion()
        
        self.hbox._pack_noexpand_nofill(hig_box_space_holder())
        self.hbox._pack_noexpand_nofill(self.target_label)
        self.hbox._pack_expand_fill(self.target_entry)
        
        self.bar = ForwardBar()
        
        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(table)
        self._pack_noexpand_nofill(self.bar)
        
        table.attach(self.profile_radio,0,1,0,1, yoptions=0)
        table.attach(self.command_radio,0,1,1,2, yoptions=0)
        table.attach(self.hbox,0,1,2,3, yoptions=0)
        
        self.disable_target()
Пример #6
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)

        table = HIGTable()
        self.hbox = HIGHBox()

        self.description = HIGEntryLabel(
            _("""You wish to create a new profile,\
 or just want to quickly create a command and run it once?"""))
        self.profile_radio = gtk.RadioButton(None, _('Profile'))
        self.command_radio = gtk.RadioButton(self.profile_radio, _('Command'))
        self.command_radio.connect('toggled', self.enable_target)
        self.profile_radio.connect('toggled', self.disable_target)

        self.target_label = HIGEntryLabel(_("Target"))
        self.target_entry = gtk.Entry()
        self.set_completion()

        self.hbox._pack_noexpand_nofill(hig_box_space_holder())
        self.hbox._pack_noexpand_nofill(self.target_label)
        self.hbox._pack_expand_fill(self.target_entry)

        self.bar = ForwardBar()

        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(table)
        self._pack_noexpand_nofill(self.bar)

        table.attach(self.profile_radio, 0, 1, 0, 1, yoptions=0)
        table.attach(self.command_radio, 0, 1, 1, 2, yoptions=0)
        table.attach(self.hbox, 0, 1, 2, 3, yoptions=0)

        self.disable_target()
    def __init__(self, optiondisplay=None):
        HIGVBox.__init__(self)
        self.__model = gtk.TreeStore(gtk.gdk.Pixbuf, gobject.TYPE_STRING)
        self.__treeview = gtk.TreeView(self.__model)
        self.__treeview.set_headers_visible(True)
        self.__treeview.drag_source_set(
            gtk.gdk.BUTTON1_MASK | gtk.gdk.BUTTON3_MASK, target,
            gtk.gdk.ACTION_COPY | gtk.gdk.ACTION_MOVE)
        self.__treeview.connect('drag_data_get', self.source_drag_data_get)
        column = gtk.TreeViewColumn()
        column.set_title('Name')
        render_pixbuf = gtk.CellRendererPixbuf()
        column.pack_start(render_pixbuf, expand=False)
        column.add_attribute(render_pixbuf, 'pixbuf', 0)
        render_text = gtk.CellRendererText()
        column.pack_start(render_text, expand=True)
        column.add_attribute(render_text, 'text', 1)
        self.__treeview.append_column(column)
        self.options = ListOptions(options)
        self.__scrolledwindow = HIGScrolledWindow()
        self.__scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,
                                         gtk.POLICY_AUTOMATIC)
        self.pack_start(self.__scrolledwindow, True, True)
        self.__scrolledwindow.add(self.__treeview)
        self.optiondisplay = optiondisplay

        self.exists_display = (self.optiondisplay != None)  #True or False
        self.set_option_display(optiondisplay)
Пример #8
0
 def __init__(self):
     HIGVBox.__init__(self)
     
     self._create_widgets()
     self._set_port_list()
     self._set_host_list()
     self._pack_widgets()
Пример #9
0
    def __init__(self, config, show_label=True):
	HIGVBox.__init__(self)
        self.set_border_width(8)
	if show_label:
	    self.pack_start(HIGSectionLabel(_("Script Sources")), False, False)
	self.config = config
	self.create_widgets()
	self.update_model()
    def __init__(self, radialnet):
        """
        """
        HIGVBox.__init__(self)

        self.radialnet = radialnet

        self.__create_widgets()
 def __init__(self):
     """Constructor"""
     HIGVBox.__init__(self)
     self.__create_widgets()
     self.__pack_widgets()
     self.__load_list()
     self.__connect_widgets()
     self.__init_db_text()
 def __init__(self):
     """Constructor"""
     HIGVBox.__init__(self)
     self.__create_widgets()
     self.__pack_widgets()
     self.__load_list()
     self.__connect_widgets()
     self.__init_db_text()
Пример #13
0
    def __init__(self, preferences, config, show_label=True):
	HIGVBox.__init__(self)
	self.set_border_width(8)
	if show_label:
	    self.pack_start(HIGSectionLabel(_("Proxy Server")), False, False)
	self.preferences = preferences
	self.config = config
	self.create_widgets()
    def __init__(self, node):
        """
        """
        HIGVBox.__init__(self)
        self.set_border_width(6)

        self.__node = node

        self.__create_widgets()
    def __init__(self, radialnet):
        """
        """
        HIGVBox.__init__(self)
        self.set_border_width(6)

        self.radialnet = radialnet

        self.__create_widgets()
    def __init__(self, radialnet):
        """
        """
        HIGVBox.__init__(self)
        self.set_border_width(6)

        self.radialnet = radialnet
        self.__ring_max_value = self.radialnet.get_number_of_rings()

        self.__create_widgets()
Пример #17
0
    def __init__(self, colors):
        HIGVBox.__init__(self)

        self.colors = colors
        self.set_border_width(5)
        self.set_spacing(6)

        self._create_widgets()
        self._set_diff_view()
        self._pack_widgets()
Пример #18
0
    def __init__(self, colors):
        HIGVBox.__init__(self)

        self.colors = colors
        self.set_border_width(5)
        self.set_spacing(6)

        self._create_widgets()
        self._set_diff_view()
        self._pack_widgets()
Пример #19
0
    def __init__(self, nmap_output_view):
        HIGVBox.__init__(self)
        
        self.nmap_highlight = NmapOutputHighlight()
        self.vbox = self
        
        self.highlight_tab()

        self.__pack_widgets()
        self.vbox.show_all()
    def __init__(self,
                 section_name,
                 profile,
                 listoptions,
                 notebook_parent,
                 new=False):
        """
        A Box Editable contains a options of each tab
        @param section_name: section name <tab>
        @type section_name: str 
        @param profile: A class that view and modify xml file 
        @type profile: ProfileCore
        @param listoptions: The List of Options to update XML (I guess to confirm)
        @type listoptions: ListOptions
        @param notebook_parent: Notebook
        @type notebook_parent: Notebook or Subclass
        @param new: It's a new tab or not 
        @type new: bool
        """

        HIGVBox.__init__(self)
        self._coords = {}
        self._parent = notebook_parent
        self._last = None
        #Profile Core do a manage at profile_editor.xml file
        self._profilecore = None

        self._profile = profile
        self._listoptions = listoptions
        self._table = HIGTable()
        self._section_name = section_name
        if not new:
            self._options = self._profile.get_section(section_name)
        self._table.set_border_width(3)
        c = self.get_colormap()
        color = c.alloc_color(0, 0, 0)
        self._table.modify_fg(gtk.STATE_NORMAL, color)
        #self._fill_table()

        box_tmp = HIGVBox()
        box_tmp.pack_start(self._table, False, False)
        self._sw = HIGScrolledWindow()
        #self._sw.set_size_request(400,200)
        vp = gtk.Viewport()
        vp.add(box_tmp)
        vp.set_shadow_type(gtk.SHADOW_NONE)
        self._sw.add(vp)
        self.pack_start(self._sw, True, True)
        self._old_selected = None
        self._x = 0
        self._y = 0

        self.connect('button-press-event', self._bp)
Пример #21
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)
        
        self.description = HIGEntryLabel(_("""Umit generated the nmap command. \
Click Apply to finish this wizard."""))
        spacer = hig_box_space_holder()
        self.bar = ApplyBar()
        
        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(spacer)
        self._pack_noexpand_nofill(self.bar)
Пример #22
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)

        self.description = HIGEntryLabel(
            _("""Umit generated the nmap command. \
Click Apply to finish this wizard."""))
        spacer = hig_box_space_holder()
        self.bar = ApplyBar()

        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(spacer)
        self._pack_noexpand_nofill(self.bar)
Пример #23
0
    def __init__(self, section_name, profile, listoptions, notebook_parent, new=False):
        """
        A Box Editable contains a options of each tab
        @param section_name: section name <tab>
        @type section_name: str 
        @param profile: A class that view and modify xml file 
        @type profile: ProfileCore
        @param listoptions: The List of Options to update XML (I guess to confirm)
        @type listoptions: ListOptions
        @param notebook_parent: Notebook
        @type notebook_parent: Notebook or Subclass
        @param new: It's a new tab or not 
        @type new: bool
        """

        HIGVBox.__init__(self)
        self._coords = {}
        self._parent = notebook_parent
        self._last = None 
        #Profile Core do a manage at profile_editor.xml file 
        self._profilecore = None 

        self._profile = profile
        self._listoptions = listoptions
        self._table = HIGTable()
        self._section_name = section_name
        if not new :
            self._options = self._profile.get_section(section_name)
        self._table.set_border_width(3)
        c = self.get_colormap()
        color = c.alloc_color(0,0,0)   
        self._table.modify_fg(gtk.STATE_NORMAL,color )
        #self._fill_table()

        box_tmp = HIGVBox()
        box_tmp.pack_start(self._table, False, False)
        self._sw = HIGScrolledWindow()
        #self._sw.set_size_request(400,200)
        vp = gtk.Viewport()
        vp.add(box_tmp)
        vp.set_shadow_type(gtk.SHADOW_NONE)
        self._sw.add(vp)
        self.pack_start(self._sw, True, True)
        self._old_selected = None 
        self._x = 0
        self._y = 0 


        self.connect('button-press-event', self._bp)
Пример #24
0
    def __init__ (self, colors, check_color):
        HIGVBox.__init__(self)
        self.set_border_width(5)
        self.set_spacing(6)

        self.colors = colors
        self.check_color = check_color
        
        self._create_widgets()
        self._pack_hbox()
        self._set_text_view()
        self._set_scrolled()
        
        self._pack_noexpand_nofill(self.lbl_diff)
        self._pack_expand_fill(self.hbox)
Пример #25
0
    def __init__(self, colors, check_color):
        HIGVBox.__init__(self)
        self.set_border_width(5)
        self.set_spacing(6)

        self.colors = colors
        self.check_color = check_color

        self._create_widgets()
        self._pack_hbox()
        self._set_text_view()
        self._set_scrolled()

        self._pack_noexpand_nofill(self.lbl_diff)
        self._pack_expand_fill(self.hbox)
    def __init__(self, target=None):
        """
        """
        HIGVBox.__init__(self)

        self.target = target
        self.result = ZionResultsPage()

        self.pack_end(self.result)
        self.result.get_hosts_view().set_current_page(0)

        # construct communication queues
        self.q1 = Queue()
        self.q2 = Queue()
        fd = self.q2._reader.fileno()
        # observe received messages in queue
        gobject.io_add_watch(fd, gobject.IO_IN, self.update)
Пример #27
0
    def __init__(self, target=None):
        """
        """
        HIGVBox.__init__(self)

        self.target = target
        self.result = ZionResultsPage()

        self.pack_end(self.result)
        self.result.get_hosts_view().set_current_page(0)
        
        # construct communication queues
        self.q1 = Queue()
        self.q2 = Queue()
        fd = self.q2._reader.fileno()
        # observe received messages in queue
        gobject.io_add_watch(fd, gobject.IO_IN, self.update)
Пример #28
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)
        
        sec_vbox = HIGVBox()
        
        self.description = HIGEntryLabel(_("""Umit allow user to construct \
powerful commands in two distinct ways:"""))
        self.novice_radio = gtk.RadioButton(None, _('Novice'))
        self.expert_radio = gtk.RadioButton(self.novice_radio, _('Expert'))
        self.bar = ForwardBar(back=False)
        
        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(sec_vbox)
        self._pack_noexpand_nofill(self.bar)
        
        sec_vbox._pack_noexpand_nofill(self.novice_radio)
        sec_vbox._pack_noexpand_nofill(self.expert_radio)
    def __init__(self, hosts={}, services={}):
        HIGVBox.__init__(self)
        
        self._create_widgets()
        self._connect_widgets()
        self._pack_widgets()
        self._set_scrolled()
        self._set_host_list(hosts)
        self._set_service_list(services)
        
        self._pack_expand_fill(self.main_vbox)

        # Default mode is host mode
        self.host_mode(self.host_mode_button)

        self.host_view.show_all()
        self.service_view.show_all()
        
        PluginEngine().core.emit('ScanHostsView-created', self)
Пример #30
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)

        sec_vbox = HIGVBox()

        self.description = HIGEntryLabel(
            _("""Umit allow user to construct \
powerful commands in two distinct ways:"""))
        self.novice_radio = gtk.RadioButton(None, _('Novice'))
        self.expert_radio = gtk.RadioButton(self.novice_radio, _('Expert'))
        self.bar = ForwardBar(back=False)

        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(sec_vbox)
        self._pack_noexpand_nofill(self.bar)

        sec_vbox._pack_noexpand_nofill(self.novice_radio)
        sec_vbox._pack_noexpand_nofill(self.expert_radio)
Пример #31
0
    def __init__(self, hosts={}, services={}):
        HIGVBox.__init__(self)

        self._create_widgets()
        self._connect_widgets()
        self._pack_widgets()
        self._set_scrolled()
        self._set_host_list(hosts)
        self._set_service_list(services)

        self._pack_expand_fill(self.main_vbox)

        # Default mode is host mode
        self.host_mode(self.host_mode_button)

        self.host_view.show_all()
        self.service_view.show_all()

        PluginEngine().core.emit("ScanHostsView-created", self)
Пример #32
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)
        self.prof = False

        self.description = HIGEntryLabel(
            _("""Please, enter the profile name, \
and optionally, enter a hint, description and annotation for this \
new profile"""))
        self.profile_label = HIGEntryLabel(_("Profile name"))
        self.hint_label = HIGEntryLabel(_("Hint"))
        self.description_label = HIGEntryLabel(_("Description"))
        self.annotation_label = HIGEntryLabel(_("Annotation"))

        self.profile_entry = gtk.Entry()
        self.hint_entry = gtk.Entry()
        self.description_scroll = HIGScrolledWindow()
        self.description_text = HIGTextView()
        self.annotation_scroll = HIGScrolledWindow()
        self.annotation_text = HIGTextView()

        self.description_scroll.add(self.description_text)
        self.annotation_scroll.add(self.annotation_text)

        table = HIGTable()
        self.bar = ForwardBar()

        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(table)
        self._pack_noexpand_nofill(self.bar)

        table.attach(self.profile_label, 0, 1, 0, 1, xoptions=0)
        table.attach(self.profile_entry, 1, 2, 0, 1)

        table.attach(self.hint_label, 0, 1, 1, 2, xoptions=0)
        table.attach(self.hint_entry, 1, 2, 1, 2)

        table.attach(self.description_label, 0, 1, 2, 3, xoptions=0)
        table.attach(self.description_scroll, 1, 2, 2, 3)

        table.attach(self.annotation_label, 0, 1, 3, 4, xoptions=0)
        table.attach(self.annotation_scroll, 1, 2, 3, 4)
Пример #33
0
    def __init__(self):
        HIGVBox.__init__(self)
        self.set_spacing(12)
        self.prof = False
        
        self.description = HIGEntryLabel(_("""Please, enter the profile name, \
and optionally, enter a hint, description and annotation for this \
new profile"""))
        self.profile_label = HIGEntryLabel(_("Profile name"))
        self.hint_label = HIGEntryLabel(_("Hint"))
        self.description_label = HIGEntryLabel(_("Description"))
        self.annotation_label = HIGEntryLabel(_("Annotation"))
        
        self.profile_entry = gtk.Entry()
        self.hint_entry = gtk.Entry()
        self.description_scroll = HIGScrolledWindow()
        self.description_text = HIGTextView()
        self.annotation_scroll = HIGScrolledWindow()
        self.annotation_text = HIGTextView()
        
        self.description_scroll.add(self.description_text)
        self.annotation_scroll.add(self.annotation_text)
        
        table = HIGTable()
        self.bar = ForwardBar()
        
        self._pack_noexpand_nofill(self.description)
        self._pack_expand_fill(table)
        self._pack_noexpand_nofill(self.bar)
        
        table.attach(self.profile_label,0,1,0,1,xoptions=0)
        table.attach(self.profile_entry,1,2,0,1)
        
        table.attach(self.hint_label,0,1,1,2,xoptions=0)
        table.attach(self.hint_entry,1,2,1,2)
        
        table.attach(self.description_label,0,1,2,3,xoptions=0)
        table.attach(self.description_scroll,1,2,2,3)
        
        table.attach(self.annotation_label,0,1,3,4,xoptions=0)
        table.attach(self.annotation_scroll,1,2,3,4)
Пример #34
0
    def __init__(self, viewName, dashboard):
        HIGVBox.__init__(self)
        self.dashboard = dashboard
        self.set_size_request(240, 720)
        self.treestore = gtk.TreeStore(str)

        piter = self.treestore.append(None, [CAPACITY])
        self.treestore.append(piter, [CAPA_THROTTLED])
        self.treestore.append(piter, [CAPA_SERVICE])
        
        piter = self.treestore.append(None, [REPORT])        #Report statistics
        self.treestore.append(piter, [REPORT_SENT])
        self.treestore.append(piter, [REPORT_UNSENT])
        self.treestore.append(piter, [REPORT_RECEIVED])

        piter = self.treestore.append(None, [TASK])      
        self.treestore.append(piter, [TASK_ALL])
        self.treestore.append(piter, [TASK_SUCCESSED])
        self.treestore.append(piter, [TASK_FAILED])

        piter = self.treestore.append(None, [CONNECTION])
        self.treestore.append(piter, [CONN_AGG])
        self.treestore.append(piter, [CONN_SUPER])
        self.treestore.append(piter, [CONN_NORMAL])
        self.treestore.append(piter, [CONN_MOBILE])

        self.treeview = gtk.TreeView(self.treestore)
        self.treeview.connect('cursor-changed', self.on_cursor_changed)
        self.tvcolumn = gtk.TreeViewColumn(viewName)
        self.treeview.append_column(self.tvcolumn)
        self.treeview.set_show_expanders(True)
        self.cell = gtk.CellRendererText()
        self.tvcolumn.pack_start(self.cell, True)
        self.tvcolumn.add_attribute(self.cell, 'text', 0)
        self.treeview.set_search_column(0)
        self.tvcolumn.set_sort_column_id(0)
        self.treeview.set_reorderable(True)
        self.treeview.expand_all()
        self.add(self.treeview)
        self.show_all()
    def __init__(self, viewName, dashboard):
        HIGVBox.__init__(self)
        self.dashboard = dashboard
        self.set_size_request(240, 720)
        self.treestore = gtk.TreeStore(str)

        piter = self.treestore.append(None, [CAPACITY])
        self.treestore.append(piter, [CAPA_THROTTLED])
        self.treestore.append(piter, [CAPA_SERVICE])

        piter = self.treestore.append(None, [REPORT])  #Report statistics
        self.treestore.append(piter, [REPORT_SENT])
        self.treestore.append(piter, [REPORT_UNSENT])
        self.treestore.append(piter, [REPORT_RECEIVED])

        piter = self.treestore.append(None, [TASK])
        self.treestore.append(piter, [TASK_ALL])
        self.treestore.append(piter, [TASK_SUCCESSED])
        self.treestore.append(piter, [TASK_FAILED])

        piter = self.treestore.append(None, [CONNECTION])
        self.treestore.append(piter, [CONN_AGG])
        self.treestore.append(piter, [CONN_SUPER])
        self.treestore.append(piter, [CONN_NORMAL])
        self.treestore.append(piter, [CONN_MOBILE])

        self.treeview = gtk.TreeView(self.treestore)
        self.treeview.connect('cursor-changed', self.on_cursor_changed)
        self.tvcolumn = gtk.TreeViewColumn(viewName)
        self.treeview.append_column(self.tvcolumn)
        self.treeview.set_show_expanders(True)
        self.cell = gtk.CellRendererText()
        self.tvcolumn.pack_start(self.cell, True)
        self.tvcolumn.add_attribute(self.cell, 'text', 0)
        self.treeview.set_search_column(0)
        self.tvcolumn.set_sort_column_id(0)
        self.treeview.set_reorderable(True)
        self.treeview.expand_all()
        self.add(self.treeview)
        self.show_all()
Пример #36
0
    def __init__ (self, refresh=1, stop=1):
        self.nmap_highlight = NmapOutputHighlight()
        HIGVBox.__init__ (self)
        
        # Creating widgets
        self.__create_widgets()
        
        # Setting scrolled window
        self.__set_scrolled_window()
        
        # Setting text view
        self.__set_text_view()
        
        # Setting buttons
        self.__set_buttons()
        
        # Getting text buffer
        self.text_buffer = self.text_view.get_buffer()
        
        self.refreshing = True
        self.thread = Thread()
        
        # Adding widgets to the VPaned
        self._pack_expand_fill(self.scrolled)
        self._pack_noexpand_nofill(self.hbox_buttons)
        
        self.nmap_output_file = None
        self.nmap_previous_output = ''
        self.brazil = True

        # We have to create a mark to follow changes in the view with left grav.
        self.mark = self.text_buffer.create_mark(
            'start', 
            self.text_buffer.get_start_iter(),
            True
        )
        
        self.__create_tags()
Пример #37
0
 def __init__(self, scan_dict, num=""):
     HIGVBox.__init__(self)
     self.num = num
     self.scan_dict = scan_dict
     
     # Setting HIGVBox
     self.set_border_width(5)
     self.set_spacing(6)
     
     self._create_widgets()
     self._pack_hbox()
     self._attaching_widgets()
     self._set_scrolled()
     self._set_text_view()
     self._set_open_button()
     
     for scan in scan_dict:
         self.list_scan.append([scan])
     
     self.combo_scan.connect('changed', self.show_scan)
     
     self._pack_noexpand_nofill(self.lbl_scan)
     self._pack_expand_fill(self.hbox)
Пример #38
0
    def __init__(self, scan_dict, num=""):
        HIGVBox.__init__(self)
        self.num = num
        self.scan_dict = scan_dict

        # Setting HIGVBox
        self.set_border_width(5)
        self.set_spacing(6)

        self._create_widgets()
        self._pack_hbox()
        self._attaching_widgets()
        self._set_scrolled()
        self._set_text_view()
        self._set_open_button()

        for scan in scan_dict:
            self.list_scan.append([scan])

        self.combo_scan.connect('changed', self.show_scan)

        self._pack_noexpand_nofill(self.lbl_scan)
        self._pack_expand_fill(self.hbox)
Пример #39
0
 def __init__(self):
     """Constructor"""
     HIGVBox.__init__(self)
     self.__create_widgets()
     self.__pack_widgets()
Пример #40
0
 def __init__(self):
     HIGVBox.__init__(self)
     self.__parser = None 
     self.__radialnet = None
     self.__created = False
Пример #41
0
 def __init__(self):
     HIGVBox.__init__(self)
     
     self.__create_widgets()
Пример #42
0
 def __init__(self):
     HIGVBox.__init__(self)
     self.__parser = None
     self.__radialnet = None
     self.__created = False
Пример #43
0
 def __init__(self):
     HIGVBox.__init__(self)
     self.__create_widgets()
     self._pack_expand_fill(self.nmap_output)
Пример #44
0
 def __init__(self):
     HIGVBox.__init__(self)
     self.__create_widgets()
     self._pack_expand_fill(self.nmap_output)
Пример #45
0
 def __init__(self):
     """Constructor"""
     HIGVBox.__init__(self)
     self.__create_widgets()
     self.__pack_widgets()
    def __init__(self):
        HIGVBox.__init__(self)

        self.__create_widgets()