Пример #1
0
 def CheckScan(self, target, exploit, mode):
     if '' in target:
         target.remove('')
     if '' in exploit:
         exploit.remove('')
     try:
        fs=open(pt.directory()+"/Gomoz/config/gomoz.conf", 'r')
        while 1:
          txt=fs.readline()
          
          if txt == '':
             break
          if txt[0]!='#': 
             if txt.find('PHPinc') != -1:
                 phpinc=txt.split('=')[1].strip()             
             if txt.find('TXTinc') != -1:
                 txtinc=txt.split('=')[1].strip()
             if txt.find('JPGinc') != -1:
                 jpginc=txt.split('=')[1].strip()
             if txt.find('ASPinc') != -1:
                 aspinc=txt.split('=')[1].strip()
             if txt.find('JSPinc') != -1:
                 jspinc=txt.split('=')[1].strip()                        
             if txt.find('KEYword') != -1:
                 keyword=txt.split('=')[1].strip()
             if txt.find('OPTscan') != -1:
                 scan=txt.split('=')[1].strip()
        fs.close()
     except Exception, e:
         wx.MessageBox(str(e),"Info")
Пример #2
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: Frame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE | wx.MAXIMIZE_BOX
        wx.Frame.__init__(self, *args, **kwds)

        ico=pt.directory()+"/Gomoz/image/scf.ico"
        self.icon = wx.Icon(ico, wx.BITMAP_TYPE_ICO) 
        self.SetIcon(self.icon)

       
        self.r_stack=[0]
        self.c_stack={}
        # The notebook              
        self.notebook = wx.aui.AuiNotebook(self)
        self.notebook.SetBackgroundColour('green')
        
        self.notebook_panel_console = wx.Panel(self.notebook, -1)
        self.notebook_panel_scan = wx.Panel(self.notebook, -1)
        
        # Main staticbox 
        self.sizer_top_staticbox = wx.StaticBox(self, -1, _("Main"))
        self.sizer_top_staticbox.SetForegroundColour('blue')

        #self.menulogic=False
        self.lc_sources=None
        #self.editable = False

        
        self.SetToolBar(self.lc_sources)
        self.__initialize_interframe()
        self.SetGomozMenuBar(self.lc_sources)
Пример #3
0
    def __init__(self, *args, **kwargs):
        threading.Thread.__init__(self)
        wx.Frame.__init__(self, *args, **kwargs)
        self.setDaemon (1)
        self.start()
        
        #self.start = False
        self.panel = wx.Panel(self, -1, size=(400, 320))
        ico=path.directory()+"/Gomoz/image/scf.ico"
        self.icon = wx.Icon(ico, wx.BITMAP_TYPE_ICO) 
        self.SetIcon(self.icon) 

        self.data= []

    
          
       
        #self.panel.SetBackgroundColour('black')
        self.label  = wx.StaticText(self.panel, -1, "Target(s):", pos=(50,30))
        #self.label.SetForegroundColour('yellow')
        self.input  = wx.TextCtrl(self.panel, -1, "127.0.0.1", size=(238,20),pos=(110,30))

        self.label  = wx.StaticText(self.panel, -1, "start port :", pos=(50,55))
        #self.label.SetForegroundColour('yellow')
        
        self.label  = wx.StaticText(self.panel, -1, "end port :", pos=(230,55))
        #self.label.SetForegroundColour('yellow')
        
        self.startport = wx.SpinCtrl(self.panel, -1, "", (287, 55), (60, -1))
        self.startport.SetRange(1,65535)
        self.startport.SetValue(80)

        self.endport = wx.SpinCtrl(self.panel, -1, "", (110, 55), (60, -1))
        self.endport.SetRange(1,65535)
        self.endport.SetValue(80)
        
	
      
        self.input.SetBackgroundColour('black')
        self.input.SetForegroundColour('blue')

        

        self.button1 = wx.Button(self.panel, id=-1, pos=(242, 250))
        self.button1.SetLabel('Start')
        #self.button1.SetBackgroundColour('black')
        #self.button1.SetForegroundColour('green')
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton)

        self.button2 = wx.Button(self.panel, id=-1, pos=(100, 250))
        self.button2.SetLabel('Clear')
        #self.button2.SetBackgroundColour('black')
        #self.button2.SetForegroundColour('green')
        self.button2.Bind(wx.EVT_BUTTON, self.OnClear)

        self.__initialize__()
        self.Set_events_()
Пример #4
0
    def OnNewScan(self,event=None):
        request="Do you really want to delete all?"
        title="Delete all"
        if wx.MessageBox(request,title,wx.ICON_QUESTION|wx.YES_NO,self.frame) == wx.YES:
          item=self.frame.lc_sources.GetItemCount()
          self.frame.lc_sources.DeleteAllItems()
          self.frame.cb_exploit.Clear()
          self.frame.cb_targets.Clear()
          self.frame.cb_proxy.Clear()
          self.frame.cb_single.SetValue(0)
          self.frame.cb_mass.SetValue(0)
          self.frame.cb_glob.SetValue(0)
          self.frame.tc_url.Clear()
          self.frame.r_stack=[0]
          #clear consoles
          #set timer 00
        else:
          #self.OnSave
          pass
        
        #app = wx.PySimpleApp()
       
            
        wizard = wx.wizard.Wizard(None, -1, "Gomoz setup scan")
        page1 = gwizard.FirstPage(wizard,"Gomoz setup scan")
        #page1.SetBackgroundColour('black')
        #page1.SetForegroundColour('green')
   
        page2 = gwizard.LastPage(wizard,"Gomoz and laws")
        #page2.SetBackgroundColour('white')
        #page2.SetForegroundColour('blue')
    
        wx.wizard.WizardPageSimple_Chain(page1, page2)
       
        wizard.FitToPage(page1)

        if wizard.RunWizard(page1):
            data=page1.GetData()
            if page2.r1.GetStringSelection()=='Accept':
               if data is not None: 
                   f = path.directory()+"/Gomoz/config/gomoz.conf"
                   print f
                   fd=open(f,'w')
                   fd.write('############### Gomoz config file #############\n')
                   fd.write('# Gomoz scanner setting\n')
                   fd.write('# Comment different directive for a new setting\n')
                   fd.write('###############################################\n')
                   for k,v in data.items():
                       fd.write(k+'='+v+'\n')
                   fd.close()
                   self.frame.tc_url.SetValue('/')

            else:
                exit(-1)
        else:
            return
        wizard.Destroy()
Пример #5
0
    def __init__(self, wizard, title):
        GomozIntroCgf.__init__(self, wizard, "Gomoz Config")
        self.title=title


        text1="Native LABS will not be held responsible for any loss, damages, accident,"
        text2="hardware failures, network failures or sabotage."
        self.label_1=wx.StaticText(self, -1, text1, pos=(10,130))
        self.label_2=wx.StaticText(self, -1, text2, pos=(10,160))
                
        image=path.directory() + "/Gomoz/image/gomoz1.png"
        imag = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.button = wx.StaticBitmap(self, id=-1, bitmap=imag, pos=(420, 20), size = (imag.GetWidth(), imag.GetHeight()-5))
        self.radioList=["Accept", "Decline"]
        self.r1=wx.RadioBox(self, -1, "Important",wx.Point(10, 210), wx.DefaultSize,self.radioList, 3, wx.RA_SPECIFY_COLS)
        self.r1.SetSelection(1)
        self.Layout()
Пример #6
0
    def OnAboutBox(self, event):
        description  = """Gomoz is an open source Web Application Security\nScanner developed by Native LABS.\n"""
        description += """Gomoz will test a web server in the shortest \ntimespan possible, and produce deeply a pen test intrusion."""
        description += """\nGomoz is free software; you can redistribute it\nand/or modify it under the terms of the GNU"""
        description += """\nGeneral Public License as published by\nthe Free Software Foundation; either version 2 """
        description += """\nof the License, or (at your option) any later version.\nSee the GNU General Public License for more details. """


        info = wx.AboutDialogInfo()
        info.SetIcon(wx.Icon(path.directory()+'/Gomoz/image/gomoz1.png', wx.BITMAP_TYPE_PNG))
        info.SetName('Gomoz !')
        info.SetVersion('1.0.1')
        info.SetDescription(description)
        info.SetCopyright('(C) 2006 Native LABS')
        info.SetWebSite('http://www.nativelabs.org/')
        info.AddDeveloper('MEZGANI Ali \[email protected]')

        wx.AboutBox(info)
Пример #7
0
    def __init__(self,*args, **kwargs):
        wx.Frame.__init__(self, *args, **kwargs)
        ico=path.directory()+"/Gomoz/image/scf.ico"
        self.icon = wx.Icon(ico, wx.BITMAP_TYPE_ICO) 
        self.SetIcon(self.icon)
        self.panel = wx.Panel(self, -1, size=(400, 320))
        self.text=''
        #self.panel.SetBackgroundColour('black')

        self.output = wx.TextCtrl(self, -1, self.text, size=(360,250),pos=(10,10),style=wx.TE_MULTILINE)
        self.output.SetBackgroundColour('black')
        self.output.SetForegroundColour('green')
        self.output.SetEditable(True)


        self.button = wx.Button(self.panel, id=-1, pos=(160, 260))
        self.button.SetLabel('copy')
        #self.button.SetBackgroundColour('black')
        #self.button.SetForegroundColour('green')
        self.button.Bind(wx.EVT_BUTTON, self.CopyText)
Пример #8
0
    def __init__(self, frame, panel, sources):
        # Initializing the toolbar object
        gtoolbar.GomozToolBar.__init__(self, frame, panel, sources)
      
        # Menu Bar
        self.frame = frame
        self.frame_menubar=wx.MenuBar()
        self.frame.SetMenuBar(self.frame_menubar)

        self.panel = panel
        self.lc_sources = sources
        self.cb_targets=''
        self.cb_proxy=''
        self.cb_exploit=''
            
        self.frame.menu_file = wx.Menu()
        self.frame.smenu_new = wx.MenuItem(self.frame.menu_file, MN_NEW, ("&New...\tCtrl-N"), "New scan", wx.ITEM_NORMAL)
        bmp = wx.Image(path.directory()+"/Gomoz/image/new_scan.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_new.SetBitmap(bmp.ConvertToBitmap())
        
        self.frame.menu_file.AppendItem(self.frame.smenu_new)
        self.frame.menu_file.AppendSeparator()
        self.frame.smenu_open = wx.MenuItem(self.frame.menu_file, MN_OPEN, ("&Open...\tCtrl-O"), "Open file project", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/open.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_open.SetBitmap(bmp)

        self.frame.menu_file.AppendItem(self.frame.smenu_open)
        self.frame.smenu_save = wx.MenuItem(self.frame.menu_file, MN_SAVS, ("&Save...\tCtrl-S"), "Save scan", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/save.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_save.SetBitmap(bmp)

        self.frame.menu_file.AppendItem(self.frame.smenu_save)
        self.frame.menu_file.AppendSeparator()
        self.frame.smenu_exit = wx.MenuItem(self.frame.menu_file, MN_EXIT, ("&Exit\tCtrl-Q"), "Terminate program", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/exit.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_exit.SetBitmap(bmp)
        self.frame.menu_file.AppendItem(self.frame.smenu_exit)
        self.frame_menubar.Append(self.frame.menu_file, _("&File"))


        self.frame.menu_data = wx.Menu()
        self.frame.smenu_selcsho = wx.MenuItem(self.frame.menu_data, MN_SELCSHO, ("&Scan port \tCtrl-Shift-A"),"Scan ports of selected target", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/scan_port.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_selcsho.SetBitmap(bmp)
        
        self.frame.smenu_exploit = wx.MenuItem(self.frame.menu_data, MN_EXPLOIT, ("&Exploit...\tCtrl-E"), "Load exploits from file", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/x.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_exploit.SetBitmap(bmp)
        
        self.frame.smenu_proxy   = wx.MenuItem(self.frame.menu_data, MN_PROXY, ("&Proxy...\tCtrl-P"), "Load proxies from file", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/proxy.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_proxy.SetBitmap(bmp)
        
        self.frame.smenu_target  = wx.MenuItem(self.frame.menu_data, MN_TARGET, ("&Targets...\tCtrl-T"), "Load hosts from file", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/target.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_target.SetBitmap(bmp)
        
        self.frame.menu_data.AppendItem(self.frame.smenu_target)
        self.frame.menu_data.AppendItem(self.frame.smenu_proxy)
        self.frame.menu_data.AppendItem(self.frame.smenu_exploit)
        self.frame.menu_data.AppendSeparator()
        self.frame.menu_data.AppendItem(self.frame.smenu_selcsho)
        self.frame_menubar.Append(self.frame.menu_data, ("&Data"))

        self.frame.menu_options = wx.Menu()
           
        self.frame.smenu_selcall = wx.MenuItem(self.frame.menu_options, MN_SELCALL, ("&Select  all\tCtrl-A"),"Select all", wx.ITEM_NORMAL)
        self.frame.smenu_selcnon = wx.MenuItem(self.frame.menu_options, MN_SELCNON, ("&Select None\tCtrl-Alt-A"),"Select None", wx.ITEM_NORMAL)
        self.frame.smenu_fgcolor = wx.MenuItem(self.frame.menu_options, MN_FGCOLOR, ("&Set text colour\tCtrl-Alt-T"),"Set request text colour", wx.ITEM_NORMAL)
        self.frame.smenu_bgcolor = wx.MenuItem(self.frame.menu_options, MN_BGCOLOR, ("&Set background colour\tCtrl-Alt-B"),"Set request background colour", wx.ITEM_NORMAL)
        self.frame.smenu_enedit  = wx.MenuItem(self.frame.menu_options, MN_ENEDIT,  ("&Enable request editing\tCtrl-Alt-N"),"Enable request editing", wx.ITEM_CHECK)
        self.frame.smenu_editit  = wx.MenuItem(self.frame.menu_options, MN_EDITIT,  ("&Edit current request\tCtrl-Alt-E"),"Edit current request", wx.ITEM_NORMAL)    


        self.frame.menu_options.AppendItem(self.frame.smenu_selcall)
        self.frame.menu_options.AppendItem(self.frame.smenu_selcnon)
        self.frame.menu_options.AppendSeparator()
        self.frame.menu_options.AppendItem(self.frame.smenu_fgcolor)
        self.frame.menu_options.AppendItem(self.frame.smenu_bgcolor)

        
        self.frame_menubar.Append(self.frame.menu_options, "&Options")
      
        self.frame.menu_help = wx.Menu()
        self.frame.smenu_help= wx.MenuItem(self.frame.menu_help, MN_HELP, ("&Help...\tCtrl-H"), "Help files.", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/help16.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_help.SetBitmap(bmp)
        self.frame.menu_help.AppendItem(self.frame.smenu_help)

        self.frame.menu_help.AppendSeparator()
        self.frame.smenu_about = wx.MenuItem(self.frame.menu_help, MN_ABOUT, ("&About...\tCtrl-B"), "About gomoz, Native LABS inc.", wx.ITEM_NORMAL)
        bmp = wx.Bitmap(path.directory()+"/Gomoz/image/aboutinfo.png", wx.BITMAP_TYPE_PNG)
        self.frame.smenu_about.SetBitmap(bmp)
        self.frame.menu_help.AppendItem(self.frame.smenu_about)
    
        self.frame_menubar.Append(self.frame.menu_help, ("&Help"))
        
        self.frame_menubar.SetBackgroundColour('white')
        self.frame_menubar.SetForegroundColour('black')
        # Menu Bar end
       
        self.__init_events()
Пример #9
0
    def __init__(self, wizard, title):
        GomozIntroCgf.__init__(self, wizard, "Gomoz Config")
        self.title=title
        self.data={}
        self.error=''
        self.phpinc=''
        self.txtinc=''
        self.aspinc=''
        self.jspinc=''
        self.jpginc=''
        self.keyword=''
        self.scan=''
        self.SetData(path.directory() + '/Gomoz/config/gomoz.conf')
        
        self.label_2=wx.StaticText(self, -1, "include.PHP", pos=(10, 130))
        self.input_2=wx.TextCtrl(self, -1, self.phpinc, size=(180,20),pos=(80,130))

        self.label_3=wx.StaticText(self, -1, "include.TXT", pos=(10, 160))
        self.input_3=wx.TextCtrl(self, -1, self.txtinc, size=(180,20),pos=(80,160))
        
        self.label_4=wx.StaticText(self, -1, "include.JPG", pos=(10, 190))
        self.input_4=wx.TextCtrl(self, -1, self.jpginc, size=(180,20),pos=(80,190))

        self.label_5=wx.StaticText(self, -1, "include.ASP", pos=(10, 220))
        self.input_5=wx.TextCtrl(self, -1, self.aspinc, size=(180,20),pos=(80,220))
        
        self.label_6=wx.StaticText(self, -1, "include.JSP", pos=(10, 250))
        self.input_6=wx.TextCtrl(self, -1, self.jspinc, size=(180,20),pos=(80,250))

        self.label_7=wx.StaticText(self, -1, "KeyWord", pos=(10, 280))
        self.input_7=wx.TextCtrl(self, -1, self.keyword, size=(180,20),pos=(80,280))



        for i in range(2,8):
            text="self.label_%s.SetForegroundColour(\"black\")" % i
            exec(text)
            #bg="self.input_%s.SetBackgroundColour(wx.BLACK)" % i
            #fg="self.input_%s.SetForegroundColour(wx.GREEN)" % i
            #exec(bg)
            #exec(fg)

        self.hbox = wx.BoxSizer(wx.HORIZONTAL)
        self.vbox = wx.BoxSizer(wx.VERTICAL)

        self.c99 = wx.CheckBox(self, -1, ("C99 Backdoor"))
        self.r57 = wx.CheckBox(self, -1, ("R57 Backdoor"))
        self.others = wx.CheckBox(self, -1, ("Other"))

        if self.scan=='c99': self.c99.SetValue(True)
        elif self.scan=='r57': self.r57.SetValue(True)
        elif self.scan=='others': self.others.SetValue(True)
        else:
            self.scan=''
        
        self.c99.SetForegroundColour('red')
        #self.c99.SetBackgroundColour('black')
        self.r57.SetForegroundColour('red')
        #self.r57.SetBackgroundColour('black')
        self.others.SetForegroundColour('red')
        #self.others.SetBackgroundColour('black')
    

        self.hbox.Add(self.c99)
        self.hbox.Add(self.r57, 0, wx.LEFT, 10)
        self.hbox.Add(self.others)
        
        self.vbox.Add(self.hbox,0 , wx.ALL,5)
        
        self.vbox.Add(wx.StaticLine(self), 0, wx.EXPAND|wx.ALL, 5)
        
        fgs = wx.FlexGridSizer(3, 2, 5, 5)
        fgs.Add(self.label_2, 0, wx.ALIGN_RIGHT)
        fgs.Add(self.input_2, 0, wx.EXPAND)
        fgs.Add(self.label_3, 0, wx.ALIGN_RIGHT)
        fgs.Add(self.input_3, 0, wx.EXPAND)
        fgs.Add(self.label_4, 0, wx.ALIGN_RIGHT)
        fgs.Add(self.input_4, 0, wx.EXPAND)
        fgs.Add(self.label_5, 0, wx.ALIGN_RIGHT)
        fgs.Add(self.input_5, 0, wx.EXPAND)
        fgs.Add(self.label_6, 0, wx.ALIGN_RIGHT)
        fgs.Add(self.input_6, 0, wx.EXPAND)
        fgs.Add(self.label_7, 0, wx.ALIGN_RIGHT)
        fgs.Add(self.input_7, 0, wx.EXPAND)


        fgs.AddGrowableCol(1)
        self.vbox.Add(fgs, 0, wx.EXPAND|wx.ALL, 5)
        
        self.Layout()
Пример #10
0
    def __initialize__(self):
        # Tool Bar
        self.frame.toolbar = self.frame.CreateToolBar()
        self.frame.toolbar.AddSeparator()
        #toolbar.AddSimpleTool(wx.NewId(), images.getNewBitmap(),"New", "Long help for 'New'")
        self.frame.toolbar.SetToolBitmapSize(wx.Size(48, 48))
        
      	digicon=path.directory()+"/Gomoz/image/info.png"
        imag2 = wx.Image(digicon, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        #self.button = wx.BitmapButton(self.mainPanel, id=-1, bitmap=imag2, pos=(120, 20), size = (imag2.GetWidth(), imag2.GetHeight()))
        self.frame.toolbar.AddSimpleTool(ID_SCAN_NEW,imag2,"Config gomoz",'Config gomoz')


        
        image=path.directory()+"/Gomoz/image/new.png"
        imag2 = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.frame.toolbar.AddSimpleTool(ID_SCAN_ADD,imag2,"Add","Add request")
        
        #self.frame.toolbar.AddSimpleTool(ID_SCAN_NEW,images.getNewBitmap(),"New","New file")
        self.frame.toolbar.AddSeparator()
        image=path.directory()+"/Gomoz/image/tune.png"
        imag2 = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.frame.toolbar.AddSimpleTool(ID_SCAN,imag2,"Start",'Start scan')
	#self.frame.toolbar.AddSimpleTool(ID_SCAN,images.getFindBitmap(),"Start",'Start scan')
	
        image=path.directory()+"/Gomoz/image/scan.png"
        imag2 = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
	self.frame.toolbar.AddSimpleTool(ID_GET_INFO,imag2,"Ports scan",'Ports scan')
	#self.frame.toolbar.AddSimpleTool(ID_GET_INFO,images.getFindDataBitmap(),"Get Info From NCBI",'Get Info')
	self.frame.toolbar.AddSeparator()
	
        image=path.directory()+"/Gomoz/image/delete.png"
        imag2 = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.frame.toolbar.AddSimpleTool(ID_DELETE,imag2,"Delete request",'Delete request')
	#self.frame.toolbar.AddSimpleTool(ID_DELETE,images.getClearBitmap(),"Delete request",'Delete request')

        image=path.directory()+"/Gomoz/image/remove.png"
        imag2 = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.frame.toolbar.AddSimpleTool(ID_DELETE_ALL,imag2,"Delete All",'Delete All')
	#self.frame.toolbar.AddSimpleTool(ID_DELETE_ALL,images.getDeleteAllBitmap(),"Delete All",'Delete All')


	self.frame.toolbar.AddSeparator()

    
        image=path.directory()+"/Gomoz/image/Eterm.png"
        imag2 = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.frame.toolbar.AddSimpleTool(ID_CLOSE,imag2, "Close console",'Close console')
        #self.frame.toolbar.AddSimpleTool(ID_CLOSE,images.getCloseOneBitmap(),"Close console",'Close console')

        image=path.directory()+"/Gomoz/image/eclipse.png"
        imag2 = wx.Image(image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
	self.frame.toolbar.AddSimpleTool(ID_CLOSE_ALL,imag2,"Whois request",'whois request')

        #self.frame.toolbar.AddSimpleTool(ID_CLOSE_ALL,images.getCloseAllBitmap(),"Close All consoles",'Close All consoles')
        #self.frame.toolbar.AddSimpleTool(807, wx.Bitmap('icons/stock_exit.png'), 'Exit', '')

      	self.frame.toolbar.AddSeparator()
     
        digicon=path.directory()+"/Gomoz/image/Helps.png"
        imag2 = wx.Image(digicon, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
        self.frame.toolbar.AddSimpleTool(ID_HELP,imag2,"Help",'Help')

        self.frame.Bind(wx.EVT_TOOL, self.OnNewScan, id=ID_SCAN_NEW)
        self.frame.Bind(wx.EVT_TOOL, self.OnAdd, id=ID_SCAN_ADD)
        self.frame.Bind(wx.EVT_TOOL, self.frame.OnStartScan, id=ID_SCAN)
        self.frame.Bind(wx.EVT_TOOL, self.OnRemove, id=ID_DELETE)
        self.frame.Bind(wx.EVT_TOOL, self.OnRemoveAll, id=ID_DELETE_ALL)
        self.frame.Bind(wx.EVT_TOOL, self.OnPortScan, id=ID_GET_INFO)
        self.frame.Bind(wx.EVT_TOOL, self.OnLocalConsole, id=ID_CONSOLE)
        self.frame.Bind(wx.EVT_TOOL, self.OnCloseAll, id=ID_CLOSE_ALL)
        self.frame.Bind(wx.EVT_TOOL, self.OnHelp, id=ID_HELP)
        
        self.frame.toolbar.Realize()
        self.frame.toolbar.SetBackgroundColour('white')