def __init__(self):
     self.qs_data = QSData()
     self.entry = HIGTextEntry()
     self.entry.set_visibility(True)
     self.status = Status()
     self.status.set_empty()
     self.scan_result = Result()
     self.b_text = ""
     self.rgx_is_domain = "^((ht|f)tp(s?)\:\/\/|~/|/)?([\w]+:\w+@)?([a-zA-Z]{1}"
     self.rgx_is_domain += "([\w\-]+\.)+([\w]{2,5}))(:[\d]{1,5})?((/?\w+/)+|/?)"
     self.rgx_is_domain += "(\w+\.[\w]{3,4})?((\?\w+=\w+)?(&\w+=\w+)*)?"
     
     self.completion = gtk.EntryCompletion()
     self.entry.set_max_length(1000)
     
     # add button to launch result in umit
     self.btn_umit = gtk.Button ("Open Result")
     
     self.results_opened = False
     self.nmap_output = None
     
     self.load_data(None)
      
     self.btn_umit.connect("clicked", self._launch_umit, None)
     
     self.entry.show()
Exemplo n.º 2
0
 def __init__(self):
     QSData.__init__(self)
     Path.set_umit_conf(os.path.dirname(sys.argv[0]))
     Path.set_running_path(os.path.abspath(os.path.dirname(sys.argv[0])))
     data = QSData()
     self.recent_scans = data.get_recent_scans()
     self.profiles = data.get_profiles()
     self.target_list = data.get_target_list
     self.nmap_options = data.get_nmap_options()
     self.nmap_command_option = data.get_nmap_command_option()
     self.db_data = data.get_from_db()