Changeset 5900
- Timestamp:
- 04/09/11 16:30:52 (2 years ago)
- Location:
- network-scanner/branches/BTIntegration
- Files:
-
- 6 modified
- 1 copied
-
. (copied) (copied from network-scanner/trunk)
-
share/doc/umit/src/searching.rst (modified) (3 diffs)
-
share/umit/config/scan_profile.usp (modified) (1 diff)
-
share/umit/config/umit.conf (modified) (8 diffs)
-
umit/gui/FileChoosers.py (modified) (2 diffs)
-
umit/gui/MainWindow.py (modified) (4 diffs)
-
umit/gui/ScanNotebook.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-scanner/branches/BTIntegration/share/doc/umit/src/searching.rst
r5632 r5900 2 2 ========= 3 3 4 .. sectionauthor:: Adriano Monteiro Marques4 .. sectionauthor:: Luís A. Bastião Silva 5 5 6 6 … … 8 8 9 9 This documentation is not finished! Part or all of it's content may be 10 missing or inaccurate. As Umit is under constant development and11 improvement, expect changes in this documentation at upcoming releases.10 missing or inaccurate. As Umit Network Scanner is under constant development 11 and improvement, expect changes in this documentation at upcoming releases. 12 12 13 13 … … 15 15 ------------ 16 16 17 Nothing yet. 17 Search Scan Results allow you to search scans executed previous. 18 19 20 Openning Instructions 21 --------------------- 22 23 To reach the Search Scan Results, make sure that Umit Network Scanner is open, 24 and then do one of the following: 25 26 1. **Use the key-stroke** 27 28 * The key-stroke that shows the Compare Results Window is CTRL + F. 29 30 2. **Access from the Main Menu** 31 32 * Go to the *Main Menu* (the one on the top of the application), 33 Tools->Search Scan Results. 34 35 Searching 36 --------- 37 38 *Search Window* open possibility for users find a scan made in the past. Each 39 scan are stored in database become acessible the search. 40 41 User has available other type of specific search: 42 43 * Host 44 * Service 45 * OS 46 47 All selected options by user need to match, only in this condition a result will 48 showed in results. 49 50 General Search 51 -------------- 52 In Search Window user has possibility to search by general paramenters choosing 53 keywords, profiles or even options. 54 55 56 Keyword: Free text keywords 57 58 Profile: Choose Profile selected by Scan. "Any Profile" is the default value. 59 60 Option: User will able to choose a specific option, eg. IPv6. The default value 61 is "Any Option". 62 63 64 Host Search 65 ----------- 66 67 68 69 Service Search 70 -------------- 71 72 73 OS Search 74 --------- 75 76 77 Search Options 78 -------------- 79 80 81 -
network-scanner/branches/BTIntegration/share/umit/config/scan_profile.usp
r5893 r5900 64 64 options = Disable ping,Ports to scan,Traceroute 65 65 66 [umitbluetooth] 67 description = 68 hint = 69 options = Umit Bluetooth Scan 70 command = umitbluetooth 71 annotation =''' 72 66 73 [Nmap Intense Scan] 67 74 tool = nmap -
network-scanner/branches/BTIntegration/share/umit/config/umit.conf
r5893 r5900 6 6 highlight = [65535, 65535, 65535] 7 7 underline = 0 8 9 [database] 10 umit_decay = 60 11 inventory_decay = 0 8 12 9 13 [date_highlight] … … 33 37 modified = [63881, 42182, 13193] 34 38 39 [expose] 40 host_list = 1 41 show_toolbar = 1 42 icons_toolbar_size = larger 43 icons_toolbar = Both 44 page_inside = 1 45 details = 1 46 35 47 [filtered_port_highlight] 36 48 regex = \d{1,5}/.{1,5}\s+filtered\s+.* … … 41 53 underline = 0 42 54 55 [general_settings] 56 log = File 57 warnings = 1 58 silent_root = 0 59 splash = 1 60 log_file = umit.log 61 warnings_save = 1 62 crash_report = 1 63 43 64 [hostname_highlight] 44 regex = (\w{2,}://)?(([a-zA-Z0-9]|-)+\.)+([a-zA-Z]{2,}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)([\w\d#/])*65 regex = (\w{2,}://)?(([a-zA-Z0-9]|-)+\.)+([a-zA-Z]{2,}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)([\w\d#/])* 45 66 bold = 1 46 67 text = [0, 111, 65535] … … 48 69 highlight = [65535, 65535, 65535] 49 70 underline = 1 71 72 [inventory] 73 tips = True 74 tabs_close_btn = True 50 75 51 76 [ip_highlight] … … 56 81 highlight = [65535, 65535, 65535] 57 82 underline = 0 83 84 [mapper] 85 layout = 1 86 zoom = 1.0 87 lower_ring = 10 88 frames = 60 89 ring = 30 90 view = address;hostname;icon;ring;region;slow 91 interpolation = 1 92 93 [network] 94 username = 95 hostname = 96 proxy = 0 97 password = 98 port = 58 99 59 100 [open_port_highlight] … … 71 112 nmap_command_path = nmap 72 113 114 [plugins] 115 paths = /home/bastiao/Umit/svn/network-scanner/trunk/share/umit/config/plugins 116 plugins = 117 73 118 [port_list_highlight] 74 119 regex = PORT\s+STATE\s+SERVICE(\s+VERSION)?\s.* … … 79 124 underline = 0 80 125 81 [search]82 search_db = 183 file_extension = usr84 store_results = 185 directory =86 save_time = 60;days87 88 [general_settings]89 splash = 190 warnings = 191 crash_report = 192 log = File93 log_file = umit.log94 warnings_save = 195 silent_root = 096 97 [expose]98 icons_toolbar = Both99 icons_toolbar_size = larger100 show_toolbar = 1101 host_list = 1102 details = 1103 page_inside = 1104 105 126 [profiles] 106 127 profile = profile_editor.xml … … 109 130 scan_profile = scan_profile.usp 110 131 111 [network]112 proxy = 0113 hostname =114 port =115 username =116 password =117 118 [database]119 umit_decay = 60120 inventory_decay = 0121 122 [inventory]123 tips = True124 tabs_close_btn = True125 126 132 [script_manager] 127 133 columns_order = I;Name;Type;Description;Author;Categories;ID 128 134 columns_visible = I;Name;Type;ID 135 http_proxy = :3128 129 136 use_internal_editor = 1 137 view_description = 1 138 ftp_proxy = :3128 139 view_categories = 1 130 140 view_toolbar = 1 131 view_description = 1 132 view_categories = 1 141 external_command = gedit %%s 133 142 view_statusbar = 1 134 http_proxy = :3128135 ftp_proxy = :3128136 external_command = gedit %%s137 143 138 [mapper] 139 frames = 60 140 interpolation = 1 141 layout = 1 142 zoom = 1.0 143 ring = 30 144 lower_ring = 10 145 view = address;hostname;icon;ring;region;slow 144 [search] 145 save_time = 60;days 146 file_extension = usr 147 store_results = 1 148 directory = 149 search_db = 1 150 -
network-scanner/branches/BTIntegration/umit/gui/FileChoosers.py
r5893 r5900 41 41 self.set_name(_("Umit Scan Profile (%s)") % pattern) 42 42 43 class ResultUmitBluetooth(gtk.FileFilter): 44 def __init__(self): 45 gtk.FileFilter.__init__(self) 46 47 pattern = "*.ubt" 48 self.add_pattern(pattern) 49 self.set_name(_("Umit bluetooth (%s)") % pattern) 50 43 51 class ResultsFileFilter(gtk.FileFilter): 44 52 def __init__(self): … … 113 121 action, buttons) 114 122 115 for f in (ResultsFileFilter(), AllFilesFileFilter()):123 for f in (ResultsFileFilter(), ResultUmitBluetooth(), AllFilesFileFilter()): 116 124 self.add_filter(f) 117 125 -
network-scanner/branches/BTIntegration/umit/gui/MainWindow.py
r5893 r5900 41 41 from umit.gui.FileChoosers import SaveResultsFileChooserDialog 42 42 from umit.gui.FileChoosers import ExportHTMLResultsFileChooserDialog 43 from umit.gui.ScanNotebook import ScanNotebook, ScanNotebookPage, NmapScanNotebookPage 43 from umit.gui.ScanNotebook import ScanNotebook, ScanNotebookPage, NmapScanNotebookPage, ScanNotebookPageBT 44 44 from umit.gui.ScanPage import ScanPage 45 45 from umit.gui.ProfileEditor import ProfileEditor … … 272 272 ('New Scan', 273 273 gtk.STOCK_NEW, 274 _('_New Scan'),274 _('_New nmap Scan'), 275 275 "<Control>T", 276 _('Create a new Scan Tab'),276 _('Create a new nmap Scan Tab'), 277 277 self._new_scan_cb), 278 278 … … 1095 1095 log.debug(">>> Permissions to access file? %s" % os.access(filename, 1096 1096 os.R_OK)) 1097 base, ext = os.path.splitext(filename) 1098 if ext==".ubt" : 1099 current_page.toolbar.profile_entry.set_selected_profile("umitbluetooth") 1100 #scan_page.scan_result = ScanNotebookPageBT() 1101 scan_page.scan_result.on_load(filename) 1102 return 1097 1103 1098 1104 # Parse result … … 1140 1146 def _save_scan_results_cb(self, saving_page): 1141 1147 current_page = self._current_page() 1148 if current_page.toolbar.selected_profile=="umitbluetooth": 1149 current_page.scan_result.on_save() 1142 1150 1143 1151 try: -
network-scanner/branches/BTIntegration/umit/gui/ScanNotebook.py
r5893 r5900 47 47 from umit.core.UmitConf import CommandProfile, ProfileNotFound, Profile 48 48 from umit.core.NmapParser import NmapParser 49 from umit.core.umitbluetooth.ubt_parser import XMLDocument 50 from umit.core.umitbluetooth import btcore 49 51 from umit.core.Paths import Path 50 52 from umit.core.UmitLogging import log … … 309 311 service.get('service_version', '')) 310 312 313 class ScanNotebookPageBT(HIGVBox): 314 __gsignals__ = { 315 'scan-finished' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()) 316 } 317 318 def __init__(self): 319 HIGVBox.__init__(self) 320 # The borders are consuming too much space on Maemo. Setting it to 321 # 0 pixels while on Maemo 322 if is_maemo(): 323 self.set_border_width(0) 324 325 self.set_spacing(0) 326 self.status = PageStatus() 327 self.status.set_empty() 328 329 self.changes = False 330 self.comments = {} 331 self.hosts = {} 332 self.services = {} 333 334 self.parsed = XMLDocument()#XXX file to be included for this ubt_parser.py 335 self.vpaned = gtk.VPaned() 336 337 self.__create_topbar() 338 self.__create_BT_MAP() 339 self.__create_SDPview() 340 self.__create_statusbar() 341 342 self.saved = False 343 self.saved_filename = '' 344 345 self._pack_expand_fill(self.vpaned) 346 self._pack_expand_fill(self.status_bar) 347 348 PluginEngine().core.emit('ScanNotebookPage-created', self) 349 350 def __create_topbar(self): 351 hbox1 = gtk.HBox() 352 #Progressbar 353 self.progb = gtk.ProgressBar() 354 self.progb.set_text("") 355 self.progb.set_fraction(0) 356 hbox1.pack_end(self.progb, False, False, 5) 357 358 #Button 359 self.scanbutton = gtk.Button("Probe Devices") 360 self.scanbutton.connect("clicked", self.enter_cb) 361 hbox1.pack_end(self.scanbutton, False, False, 0) 362 363 #toggle button 364 self.sdp_borwsing= gtk.ToggleButton(label="SDP Browsing", use_underline=False) 365 self.sdp_borwsing.connect("toggled", self.sdp_cb) 366 367 hbox1.pack_end(self.sdp_borwsing, False, False, 0) 368 self._pack_noexpand_nofill(hbox1) 369 370 def __create_BT_MAP(self): 371 372 # BT Map 373 self.scrolled_map = gtk.ScrolledWindow() 374 self.scrolled_map.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) 375 self.mapmodel = gtk.ListStore(str, gtk.gdk.Pixbuf) 376 self.btmap = gtk.IconView(self.mapmodel) 377 self.btmap.connect("item-activated", self.iconclick_cb) 378 self.btmap.set_text_column(0) 379 self.btmap.set_pixbuf_column(1) 380 self.scrolled_map.add(self.btmap) 381 self.vpaned.pack1(self.scrolled_map, True, True) 382 383 def __create_SDPview(self): 384 hbox2 = gtk.HBox() 385 # Labels 386 self.label = gtk.Label("Device Details\t\t\t\t\n\nName: " + "\nMAC: " + "\nManufacturer: ") 387 self.label.set_selectable(True) 388 self.label.set_alignment(0.4,0) 389 hbox2.pack_start(self.label, False) 390 391 # SDP View 392 self.scrolled_info = gtk.ScrolledWindow() 393 self.scrolled_info.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) 394 self.sdpview = gtk.TextView() 395 self.sdpview.set_editable(False) 396 self.sdpview.get_buffer().set_text("SDP Info\n\nNote: Option Disabled by Default. To enable SDP, select the SDP option under the Preference tab.") 397 self.scrolled_info.add(self.sdpview) 398 hbox2.pack_start(self.scrolled_info, True) 399 self.vpaned.pack2(hbox2, True, True) 400 401 def __create_statusbar(self): 402 # Statusbar 403 self.status_bar = gtk.Statusbar() 404 self.context_id = self.status_bar.get_context_id("Scan Status") 405 message_id = self.status_bar.push(self.context_id, "Idle") 406 self.status_bar.set_has_resize_grip(True) 407 408 def enter_cb(self, widget): 409 btcore.btcore().scan(self) 410 411 def iconclick_cb(self, path, action): 412 iter = self.btmap.get_cursor() 413 buffer = str(iter[0])[:2].replace("(","") 414 btid = int(buffer) 415 print "Clicked Icon: "+ str(buffer) 416 btcore.btcore().set_info(self, btid) 417 #outputs the location of the icon numerically 418 419 def sdp_cb(self, action): 420 # action has not toggled yet 421 text = ('Enabled', 'Disabled')[self.sdp_borwsing.get_active()==False] 422 message_id = self.status_bar.push(self.context_id, "SDP Browsing is %s"%text) 423 btcore.btcore().set_sdp(text) 424 return 425 426 def on_load(self, filename): 427 btcore.btcore().load_scan(self, filename) 428 429 def on_save(self): 430 btcore.btcore().save_scan(self) 431 432 311 433 312 434 class ScanNotebookPage(HIGVBox): … … 541 663 #log.debug(">>> Target: %s" % target) 542 664 543 try: 544 cmd_profile = CommandProfile() 545 command = cmd_profile.get_command(profile) % target 546 del(cmd_profile) 547 548 # scan button must be enable if -iR or -iL options are passed 549 if command.find('-iR') != -1 or command.find('-iL') != -1: 550 self.page.toolbar.scan_button.set_sensitive(True) 551 552 # For these nmap options, target is unnecessary. 553 # Removes unnecessary target from the command 554 command = command.replace(target,'').strip() 555 elif target: 556 self.page.toolbar.scan_button.set_sensitive(True) 557 else: 558 self.page.toolbar.scan_button.set_sensitive(False) 559 560 self.command_toolbar.command = command 561 except ProfileNotFound: 562 pass 563 #self.profile_not_found_dialog() 564 except TypeError: 565 pass # That means that the command string conversion "%" didn't work 665 if profile == "umitbluetooth": 666 self.scan_result = ScanNotebookPageBT() 667 self.remove(self.get_children()[1]) 668 self.command_toolbar.command="umitbluetooth" 669 self.command_toolbar.set_sensitive(False) 670 self.toolbar.target_entry.set_sensitive(False) 671 self.toolbar.scan_button.set_sensitive(False) 672 self._pack_expand_fill(self.scan_result) 673 self.show_all() 674 else: 675 self.scan_result = ScanResult() 676 self.remove(self.get_children()[1]) 677 self.command_toolbar.set_sensitive(True) 678 self.toolbar.target_entry.set_sensitive(True) 679 self._pack_expand_fill(self.scan_result) 680 self.show_all() 681 try: 682 cmd_profile = CommandProfile() 683 command = cmd_profile.get_command(profile) % target 684 del(cmd_profile) 685 686 # scan button must be enable if -iR or -iL options are passed 687 if command.find('-iR') != -1 or command.find('-iL') != -1: 688 self.toolbar.scan_button.set_sensitive(True) 689 690 # For these nmap options, target is unnecessary. 691 # Removes unnecessary target from the command 692 command = command.replace(target,'').strip() 693 elif target: 694 self.page.toolbar.scan_button.set_sensitive(True) 695 else: 696 self.page.toolbar.scan_button.set_sensitive(False) 697 698 self.command_toolbar.command = command 699 except ProfileNotFound: 700 pass 701 #self.profile_not_found_dialog() 702 except TypeError: 703 pass # That means that the command string conversion "%" didn't work 566 704 567 705 def __create_scan_result(self):
