Changeset 5892
- Timestamp:
- 03/28/11 15:09:22 (2 years ago)
- Location:
- network-scanner/branches/GSoC2010
- Files:
-
- 25 modified
-
. (modified) (1 prop)
-
bin/umit (modified) (1 diff)
-
install_scripts/linux/ubuntu/debian/control (modified) (1 diff)
-
install_scripts/windows/generate_windows_installer.bat (modified) (2 diffs)
-
install_scripts/windows/py2exe_setup.py (modified) (1 diff)
-
install_scripts/windows/umit_compiled.nsi (modified) (1 diff)
-
share/doc/umit/src/comparing_results.rst (modified) (10 diffs)
-
share/doc/umit/src/conf.py (modified) (1 diff)
-
share/doc/umit/src/interface_editor.rst (modified) (7 diffs)
-
share/doc/umit/src/network_topology.rst (modified) (1 diff)
-
share/doc/umit/src/plugins.rst (modified) (3 diffs)
-
share/doc/umit/src/plugins_dev.rst (modified) (1 diff)
-
share/doc/umit/src/profile_editor.rst (modified) (4 diffs)
-
share/doc/umit/src/scanning.rst (modified) (6 diffs)
-
share/doc/umit/src/under_the_roof.rst (modified) (3 diffs)
-
share/doc/umit/src/wizard.rst (modified) (2 diffs)
-
share/umit/config/umit.conf (modified) (8 diffs)
-
umit/core/NmapParser.py (modified) (3 diffs)
-
umit/core/UmitDB.py (modified) (1 diff)
-
umit/gui/About.py (modified) (1 diff)
-
umit/gui/App.py (modified) (3 diffs)
-
umit/gui/BugReport.py (modified) (1 diff)
-
umit/gui/ScanNotebook.py (modified) (3 diffs)
-
umit/gui/Wizard.py (modified) (2 diffs)
-
umit/merger/nt_appdata.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
network-scanner/branches/GSoC2010
- Property svnmerge-integrated changed from /branch/QuickScan:1-5293 /branch/InterfaceEditor:1-4996 /branch/NetworkInventory:1-3849,3851-3864,3876-3919,3921-3948,3953-3955,3957-4289 /branch/PreferencesWindow:1-2940 /branch/radialnet:1-4936 /branch/UmitPlugins:1-2993,2997-2998,3008,3010-3011,3013-3015,3029-3031,3034-3073,3077-3086,3088,3091-3092,3098-3100,3105-3108,3110,3112,3120-3125,3128,3130-3131,3133,3135-3141,3143-3151,3153-3232,3234-3789,3792-4383,4385-4387,4389-4423,4425-4443,4445-5049 /network-scanner/trunk:1-5756 to /network-scanner/trunk:1-5891 /branch/QuickScan:1-5293 /branch/InterfaceEditor:1-4996 /branch/NetworkInventory:1-3849,3851-3864,3876-3919,3921-3948,3953-3955,3957-4289 /branch/PreferencesWindow:1-2940 /branch/radialnet:1-4936 /branch/UmitPlugins:1-2993,2997-2998,3008,3010-3011,3013-3015,3029-3031,3034-3073,3077-3086,3088,3091-3092,3098-3100,3105-3108,3110,3112,3120-3125,3128,3130-3131,3133,3135-3141,3143-3151,3153-3232,3234-3789,3792-4383,4385-4387,4389-4423,4425-4443,4445-5049
-
network-scanner/branches/GSoC2010/bin/umit
r5827 r5892 218 218 219 219 def main(args): 220 # Setting the umit home directory 221 from umit.core.Paths import Path 222 Path.set_umit_conf(os.path.dirname(args[0])) 223 ################################# 224 Path.set_running_path(os.path.abspath(os.path.dirname(args[0]))) 225 226 # Check permissions 227 from umit.gui.Utils import verify_config_access 228 verify_config_access() 229 230 from umit.gui.App import App 231 232 umit_app = App() 220 try: 221 # Setting the umit home directory 222 from umit.core.Paths import Path 223 Path.set_umit_conf(os.path.dirname(args[0])) 224 ################################# 225 Path.set_running_path(os.path.abspath(os.path.dirname(args[0]))) 226 from umit.core.BasePaths import base_paths 227 if not os.path.exists(base_paths['pixmaps_dir']): 228 from higwidgets.higdialogs import HIGAlertDialog 229 alert = HIGAlertDialog(message_format=_('Missing share directory'), 230 secondary_text=_('Don\'t have read share\ 231 directory. Please reinstall the application.')) 232 alert.run() 233 alert.destroy() 234 sys.exit(1) 235 236 237 # Check permissions 238 from umit.gui.Utils import verify_config_access 239 verify_config_access() 240 241 from umit.gui.App import App 242 243 umit_app = App() 244 except KeyboardInterrupt: 245 # there is no need to run safe_shutdown() 246 # cause we haven't created App instance yet 247 sys.exit(signal.SIGINT) 233 248 234 249 if os.name == "posix": -
network-scanner/branches/GSoC2010/install_scripts/linux/ubuntu/debian/control
r5632 r5892 12 12 Package: umit 13 13 Architecture: all 14 Depends: ${python:Depends}, python-gnome2-extras, nmap (>= 4.50), python-gtk2, python-pysqlite2, python-gobject14 Depends: ${python:Depends}, nmap (>= 4.50), python-gtk2, python-gobject 15 15 XB-Python-Version: ${python:Versions} 16 16 Recommends: python-psyco -
network-scanner/branches/GSoC2010/install_scripts/windows/generate_windows_installer.bat
r5632 r5892 7 7 8 8 echo Setting installation variables... 9 set PythonEXE=C:\Python2 6\python.exe9 set PythonEXE=C:\Python27\python.exe 10 10 set UmitOrig=. 11 11 set UmitDir=C:\UmitTemp 12 12 set DistDir=%UmitDir%\dist 13 13 set GTKDir=C:\GTK 14 set NmapDir= C:\Programas\Nmap15 set WinpcapDir= C:\programas\Winpcap14 set NmapDir="C:\Program Files (x86)\Nmap" 15 set WinpcapDir="C:\Program Files (x86)\Winpcap" 16 16 set WinInstallDir=%UmitDir%\install_scripts\windows 17 17 set Output=%UmitDir%\win_install.log 18 set MakeNSIS= C:\programas\NSIS\makensis.exe18 set MakeNSIS="C:\Program Files (x86)\NSIS\makensis.exe" 19 19 set UtilsDir=%UmitDir%\install_scripts\utils 20 20 … … 73 73 %PythonEXE% -OO setup.py py2exe 74 74 75 echo Copying the html docs 76 xcopy share\doc\umit\html\*.* %DistDir%\share\doc\umit\html\ /S /I >> %Output% 75 77 76 78 echo Copying some more GTK files to dist directory... -
network-scanner/branches/GSoC2010/install_scripts/windows/py2exe_setup.py
r5632 r5892 76 76 "compressed": 1, 77 77 "optimize": 2, 78 "packages": "encodings",78 "packages": ["encodings", "email"], 79 79 "includes": [ 80 'pango', 'atk', 'gobject', 'pickle', 'bz2', 80 'pango', 'atk', 'gobject', 'pickle', 'bz2', 'gio', 81 81 'encodings', 'encodings.*', 'cairo', 'pangocairo'], 82 82 # Ignore psyco if it is not installed -
network-scanner/branches/GSoC2010/install_scripts/windows/umit_compiled.nsi
r5632 r5892 463 463 464 464 !define APPLICATION_NAME "Umit" 465 !define APPLICATION_VERSION "1.0 RC"465 !define APPLICATION_VERSION "1.0" 466 466 !define WINPCAP "WinPcap_4_0_2.exe" 467 467 -
network-scanner/branches/GSoC2010/share/doc/umit/src/comparing_results.rst
r5632 r5892 21 21 --------------------- 22 22 23 To reach the Compare Results Window, make sure that Umit is open, and then24 do one of the following:23 To reach the Compare Results Window, make sure that Umit Network Scanner is open, 24 and then do one of the following: 25 25 26 26 1. **Use the key-stroke** … … 28 28 * The key-stroke that shows the Compare Results Window is CTRL + D. 29 29 30 2. **Single click on the Compare Results Icon in the Main Toolbar** 31 32 * The Compare Results Icon in the Main Toolbar may differ from theme 33 to theme, but it is always the 6th icon counting from left to right. 34 35 3. **Access from the Main Menu** 30 2. **Access from the Main Menu** 36 31 37 32 * Go to the *Main Menu* (the one on the top of the application), 38 File->Compare Results.33 Tools->Compare Results. 39 34 40 35 … … 42 37 ---------------------- 43 38 44 To avoid too much user interaction, and usability problems, Umit 39 To avoid too much user interaction, and usability problems, Umit Network Scanner 45 40 automatically make available at the *Compare Results Window* combo boxes, 46 41 the scan results currently loaded in the main interface. As you may have … … 52 47 53 48 If one or both of the scan results that you wish to compare are not loaded in 54 Umit 's main interface, you can compare then by loading then inside the55 *Compare Results Window* without the need of closing the window, loading the 56 results into scan tabs, and then openning the *Compare Results Window* again. 57 To load then directly, use the Open button that resides on the right of each 58 combo box.49 Umit Network Scanner's main interface, you can compare then by loading then 50 inside the *Compare Results Window* without the need of closing the window, 51 loading the results into scan tabs, and then openning the 52 *Compare Results Window* again. To load then directly, use the Open button 53 that resides on the right of each combo box. 59 54 60 55 You may also want to compare results that are not saved into files, but inside 61 the Umit 's search data base. To load those results, you'll have to load then62 into scan tabs first, and then open the *Compare Results Window* to compare 63 t hem. It's a bit cumbersome, but loading then directly from the56 the Umit Network Scanner's search data base. To load those results, you'll 57 have to load then into scan tabs first, and then open the *Compare Results Window* 58 to compare them. It's a bit cumbersome, but loading then directly from the 64 59 *Compare Results Window* would implicate on creating more widgets inside 65 60 the window and making it more complex, thus lowing it's usability anyway. … … 84 79 usefull comparison. 85 80 86 Let's say that you have two different scans loaded in Umit , and you wish87 to compare then. The first one, called *"Quick Scan on 192.168.204.128"* is 88 a scan result made 2 days ago, and the second one, called81 Let's say that you have two different scans loaded in Umit Network Scanner, and 82 you wish to compare then. The first one, called *"Quick Scan on 192.168.204.128"* 83 is a scan result made 2 days ago, and the second one, called 89 84 *"Regular Scan on 192.168.204.128"* is a just finished scan result. The goal 90 85 is to verify if something has changed during this 2 days, like if a service … … 104 99 and at *Scan Result 2* select *"Regular Scan on 192.168.204.128"*. 105 100 In the moment you finish the selection of the results you want to compare, 106 Umit detects your choices and generates automatically the comparison result. 101 Umit Network Scanner detects your choices and generates automatically 102 the comparison result. 107 103 108 104 .. image:: static/comparing_results2.png … … 110 106 111 107 The *Compare Results Window* with selected results and the comparison 112 generated automatically by Umit .108 generated automatically by Umit Network Scanner. 113 109 114 110 .. image:: static/comparing_results3.png … … 121 117 ------------------ 122 118 123 If you're an old Umit user, you won't be surprised with the text mode.124 But maybe, if you are a new user, you will probably be questionning why119 If you're an old Umit Network Scanner user, you won't be surprised with the text 120 mode. But maybe, if you are a new user, you will probably be questionning why 125 121 there is a *"Text mode"*, if you've got the *"Compare mode"*, that is easier 126 122 to read and understand. Here goes the answer: The *"Text mode"* is the first … … 131 127 copied and pasted anywhere. This mode is not so complete as the 132 128 *"Compare mode"*, but it's the only one that you can save for latter analysis. 133 In the future, Umit will feature a report generation tool, to ease this task. 129 In the future, Umit Network Scanner will feature a report generation tool, 130 to ease this task. 134 131 135 132 … … 251 248 ^^^^^^^^^^^^ 252 249 253 There's a bug that avoids the use of this feature when Umit is been executed254 with *sudo* in Linux.250 There's a bug that avoids the use of this feature when Umit Network Scanner is 251 been executed with *sudo* in Linux. -
network-scanner/branches/GSoC2010/share/doc/umit/src/conf.py
r5632 r5892 48 48 version = '1.0' 49 49 # The full version, including alpha/beta/rc tags. 50 release = '1.0 RC'50 release = '1.0' 51 51 52 52 # There are two options for replacing |today|: either, you set today to some -
network-scanner/branches/GSoC2010/share/doc/umit/src/interface_editor.rst
r5632 r5892 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 … … 18 18 should be able to add, edit and remove **Nmap** options. 19 19 20 Profile Editor and Wizard are using XML files to load his options. Interface Editor 21 management this XMLs and show a graphical interface to handle it in run-time. 20 Profile Editor and Wizard are using XML files to load his options. Interface 21 Editor management this XMLs and show a graphical interface to handle it 22 in run-time. 22 23 23 24 What does it do? … … 91 92 * Need Root 92 93 93 If "Need Root" is able this option will be not considered if Umit is running without94 Administrator level.94 If "Need Root" is able this option will be not considered if Umit Network 95 Scanner is running without Administrator level. 95 96 96 97 * Options + Args … … 112 113 The description of input parameters of Nmap introduced in "Args" button 113 114 114 If you add a new option or delete it will be added to Undo/Redo stack and you can easier rollback changes. 115 If you add a new option or delete it will be added to Undo/Redo stack and you 116 can easier rollback changes. 115 117 116 118 … … 119 121 120 122 121 If a user can remove an option it can be done, just selecting the option in the list122 and then press in "Delete" button.123 If a user can remove an option it can be done, just selecting the option in the 124 list and then press in "Delete" button. 123 125 124 126 … … 129 131 Interface Editor - Remove Option with Dependence 130 132 131 In :ref:`Remove Option <ieditorremoveoption>` there is dependence in Profile and Wizard.132 If you remove the option it will removed also from Profile Editor and Wizard.133 In :ref:`Remove Option <ieditorremoveoption>` there is dependence in Profile and 134 Wizard. If you remove the option it will removed also from Profile Editor and Wizard. 133 135 134 136 … … 158 160 159 161 160 If you remove an option (just selecting, and press "Delele" or throught the tooolbar/menu) 161 automatically you get a voidplace. Then user will be able to exchange the option. 162 163 In each option user can put the option up or down from the others just using menu "Items" 164 or using the left toolbar. 162 If you remove an option (just selecting, and press "Delele" or throught the 163 tooolbar/menu) automatically you get a voidplace. Then user will be able to 164 exchange the option. 165 166 In each option user can put the option up or down from the others just using 167 menu "Items" or using the left toolbar. 165 168 166 169 *Sections* -
network-scanner/branches/GSoC2010/share/doc/umit/src/network_topology.rst
r5632 r5892 10 10 11 11 This documentation is not finished! Part or all of it's content may be 12 missing or inaccurate. As Umit is under constant development and13 improvement, expect changes in this documentation at upcoming releases.12 missing or inaccurate. As Umit Network Scanner is under constant development 13 and improvement, expect changes in this documentation at upcoming releases. 14 14 15 15 -
network-scanner/branches/GSoC2010/share/doc/umit/src/plugins.rst
r5632 r5892 7 7 8 8 This documentation is not finished! Part or all of it's content may be 9 missing or inaccurate. As Umit is under constant development and10 improvement, expect changes in this documentation at upcoming releases.9 missing or inaccurate. As Umit Network Scanner is under constant development 10 and improvement, expect changes in this documentation at upcoming releases. 11 11 12 12 Introduction … … 14 14 15 15 Plugins are useful to implement indipendent features that could help the user 16 to customize the U MITexperience.16 to customize the Umit Network Scanner experience. 17 17 18 From the Plugin Window you could manage U MIT plugins. The window is divided in19 two sections the *Extensions* and *Path* view.18 From the Plugin Window you could manage Umit Network Scanner plugins. 19 The window is divided in two sections the *Extensions* and *Path* view. 20 20 21 21 Extensions View … … 117 117 Plugin Path directory, listed in the *Paths* View. 118 118 119 For example on *NIX system you could do::119 For example on *NIX* system you could do:: 120 120 121 121 $ cd ~/.umit/plugins -
network-scanner/branches/GSoC2010/share/doc/umit/src/plugins_dev.rst
r5775 r5892 7 7 8 8 This documentation is not finished! Part or all of it's content may be 9 missing or inaccurate. As Umit is under constant development and10 improvement, expect changes in this documentation at upcoming releases.9 missing or inaccurate. As Umit Network Scanner is under constant development 10 and improvement, expect changes in this documentation at upcoming releases. 11 11 12 12 Introduction -
network-scanner/branches/GSoC2010/share/doc/umit/src/profile_editor.rst
r5632 r5892 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 … … 22 22 future. 23 23 24 Since Umit Network Scanner 1.0 it was included a manager of Profiles called ProfileManager. 24 Since Umit Network Scanner 1.0 it was included a manager of Profiles called 25 ProfileManager. 25 26 26 27 What does it do? … … 58 59 59 60 * Go to the *Main Menu* (the one on the top of the application) 60 :menuselection:`Profile --> New Profile` 61 62 :menuselection:`Profile --> New Profile` 61 63 62 64 3. **Access from the ProfileManager** … … 165 167 ----------------------------- 166 168 167 The *Profile Manager* is able to create, edit and delete new profiles as we explain above. 169 The *Profile Manager* is able to create, edit and delete new profiles as we 170 explain above. 168 171 169 172 .. image:: static/profile_manager.png -
network-scanner/branches/GSoC2010/share/doc/umit/src/scanning.rst
r5632 r5892 7 7 8 8 This documentation is not finished! Part or all of it's content may be 9 missing or inaccurate. As Umit is under constant development and10 improvement, expect changes in this documentation at upcoming releases.9 missing or inaccurate. As Umit Network Scanner is under constant development 10 and improvement, expect changes in this documentation at upcoming releases. 11 11 12 12 … … 14 14 ------------ 15 15 16 Umit was designed to accomodate and run more than one scan at time. Each scan17 is executed and shown inside a *Scan Tab*, which has a title and organize 18 every information obtained in the scan result.16 Umit Network Scanner was designed to accomodate and run more than one scan at 17 time. Each scan is executed and shown inside a *Scan Tab*, which has a title 18 and organize every information obtained in the scan result. 19 19 20 20 The *Scan Tab* tries to facilitate your life, by making the unformations … … 31 31 a boring task that gets worst when you have to do that more than once. 32 32 33 An answer to your problem is Umit , that can handle this task easily, with34 just a couple of clicks.33 An answer to your problem is Umit Network Scanner, that can handle this task 34 easily, with just a couple of clicks. 35 35 36 36 So, if you're wondering if you should retire the command line, I would say … … 45 45 pull off your doubt about what is up or down from were you stand. 46 46 47 Umit is intended to help you manage your network, by giving you a better48 way to examine carefully your network peers. If your intention is to49 *know* better your network, then Umit is what you need.47 Umit Network Scanner is intended to help you manage your network, by giving you 48 a better way to examine carefully your network peers. If your intention is to 49 *know* better your network, then Umit Network Scanner is what you need. 50 50 51 51 … … 54 54 55 55 To start a scan, you need an empty *Scan Tab*. At the time you start 56 Umit , a new *Scan Tab* is made available, and as soon as the main interface57 is shown, you can start typing the target address. If you already used this 58 *Scan Tab*, you can create a new one, by doing one of the following:56 Umit Network Scanner, a new *Scan Tab* is made available, and as soon as the 57 main interface is shown, you can start typing the target address. If you already 58 used this *Scan Tab*, you can create a new one, by doing one of the following: 59 59 60 60 1. **Use the key-stroke** … … 77 77 ---------------- 78 78 79 By the moment you start Umit , or create a new scan tab, you can start typing80 the address of the target(s) that you want to scan. Every target inserted into 81 the Target field is recorded and remembered in case you need it in the future. 82 As this field features an auto-completation, it's going to be easy the reuse of 83 t argets.79 By the moment you start Umit Network Scanner, or create a new scan tab, you can 80 start typing the address of the target(s) that you want to scan. Every target 81 inserted into the Target field is recorded and remembered in case you need it in 82 the future. As this field features an auto-completation, it's going to be easy 83 the reuse of targets. 84 84 85 85 -
network-scanner/branches/GSoC2010/share/doc/umit/src/under_the_roof.rst
r5632 r5892 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 … … 17 17 ------------------- 18 18 19 Umit will always try to create a $HOME/.umit configuration directory if it20 d oesn't exists yet, under UNIX. Under Windows it will try to a configuration21 directory named umit under user's local application data. We call this 22 configuration directory as UMIT_CFG_DIR.19 Umit Network Scanner will always try to create a $HOME/.umit configuration 20 directory if it doesn't exists yet, under UNIX. Under Windows it will try to a 21 configuration directory named umit under user's local application data. 22 We call this configuration directory as UMIT_CFG_DIR. 23 23 24 The steps bellow, describes how Umit is going to behave on every24 The steps bellow, describes how Umit Network Scanner is going to behave on every 25 25 startup in order to load the configuration files: 26 26 … … 51 51 ----------- 52 52 53 Yes, there are easter eggs in Umit . Go find them!53 Yes, there are easter eggs in Umit Network Scanner. Go find them! -
network-scanner/branches/GSoC2010/share/doc/umit/src/wizard.rst
r5632 r5892 2 2 ========================== 3 3 4 .. sectionauthor:: Luís A. Bastião Silva 4 5 .. sectionauthor:: Adriano Monteiro Marques 6 5 7 6 8 .. warning:: 7 9 8 10 This documentation is not finished! Part or all of it's content may be 9 missing or inaccurate. As Umit is under constant development and10 improvement, expect changes in this documentation at upcoming releases.11 missing or inaccurate. As Umit Network Scanner is under constant development 12 and improvement, expect changes in this documentation at upcoming releases. 11 13 12 14 … … 14 16 ------------ 15 17 16 # What is the command constructor wizard? 18 Using Umit Network Scanner user is able to choose options, arguments or make 19 repeated scans. Sometimes it is not a easier process. Even with Profile Editor 20 it is not a easier task. Command Constructor Wizard was create to help users 21 create a customized command. 17 22 18 # What do it does? 23 Using wizard available options can be enable quickly and a new profile will be 24 create faster. 19 25 20 # The customization advantage 21 22 23 The profile editor modes 26 The wizard modes 24 27 ------------------------ 25 28 26 # New profile 29 Wizard has two modes: Novice and Expert. If Expert mode is selected it will open 30 Profile Editor. Otherwise it will give an assistance helping you creating a 31 customized profile. 27 32 28 # Edit profile29 30 31 Creating a simple scan profile32 ------------------------------33 34 # The profile descriptions (name, hint, description, etc.)35 36 # The default options37 38 # Saving the profile39 40 # How to use the recently created profile?41 42 43 Editing a profile44 -----------------45 46 # The profile editor's edit mode47 48 49 Creating a new profile based on an old one50 ------------------------------------------51 52 # The profile editor's create new from profile mode53 54 55 The profile editor structure56 ----------------------------57 58 # The profile_editor.xml and the options.xml59 60 # The xml sintax61 62 # The widgets available for options63 64 # Positioning rules65 66 67 Adding new options to profile editor68 ------------------------------------69 70 # Adding the option to options.xml71 72 # Calling the option in profile_editor.xml73 74 # Watching the show75 76 77 Removing an undesired option78 ----------------------------79 80 # Removing from profile_editor.xml81 82 # Removing from options.xml (If you really don't want it anymore)83 84 # Verifying if the options is not called at wizard.xml, else, the lack of an85 option called inside the wizard.xml will break it.86 87 88 Sharing options, and profile editors89 ------------------------------------90 91 # Which files do you have to share?92 93 # Where to save?94 95 # How to share?96 -
network-scanner/branches/GSoC2010/share/umit/config/umit.conf
r5828 r5892 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 = /Volumes/Extend/Umit/svn/network-scanner/branches/GSoC2010/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/GSoC2010/umit/core/NmapParser.py
r5632 r5892 591 591 self.nmap_xml_file = None 592 592 self.unsaved = False 593 self.valid_xml = False 593 594 594 595 def set_parser(self, parser): … … 607 608 else: 608 609 raise Exception("There's no file to be parsed!") 610 if not self.valid_xml: 611 raise Exception("Invalid XML file!") 609 612 610 613 def generate_id(self): … … 613 616 614 617 def _parse_nmaprun(self, attrs): 618 self.valid_xml = True 615 619 d = self.nmap['nmaprun'] 616 620 -
network-scanner/branches/GSoC2010/umit/core/UmitDB.py
r5632 r5892 157 157 158 158 159 creation_string = ("""CREATE TABLE scans (scans_id INTEGER \159 creation_string = ("""CREATE TABLE IF NOT EXISTS scans (scans_id INTEGER \ 160 160 PRIMARY KEY AUTOINCREMENT, 161 161 scan_name TEXT, -
network-scanner/branches/GSoC2010/umit/gui/About.py
r5632 r5892 62 62 63 63 self.lbl_program_description = gtk.Label(\ 64 _("""Umit is network scanning frontend frontend,64 _("""Umit is network scanning frontend, 65 65 developed in PyGTK by Adriano Monteiro 66 66 Marques <adriano@umitproject.org> -
network-scanner/branches/GSoC2010/umit/gui/App.py
r5781 r5892 51 51 class App: 52 52 def __init__(self, args=sys.argv): 53 self.main_window = None 53 54 # Initialite the PluginEngine 54 55 PluginEngine() … … 85 86 log.debug("SIGNUM: %s" % signum) 86 87 87 try:88 if self.main_window: 88 89 scans = self.main_window.scan_notebook.get_children() 89 90 for scan in scans: … … 93 94 self.main_window.scan_notebook.remove(scan) 94 95 del(scan) 95 except NameError:96 pass97 96 98 self.main_window._exit_cb()97 self.main_window._exit_cb() 99 98 sys.exit(signum) 100 99 -
network-scanner/branches/GSoC2010/umit/gui/BugReport.py
r5632 r5892 103 103 def _set_category_list(self): 104 104 # Obtained at bug tracker page source code 105 106 self.category_list.append(["umitCore","umitCore"]) 107 self.category_list.append(["umitGUI","umitGUI"]) 105 # The following two lines are commented due to component deprecation 106 #self.category_list.append(["umitCore","umitCore"]) 107 #self.category_list.append(["umitGUI","umitGUI"]) 108 self.category_list.append(["Umit","Umit"]) 108 109 self.category_list.append(["CrashReport","CrashReport"]) 109 110 self.category_list.append(["Documentation", "Documentation"]) 110 self.category_list.append([" umitWeb","umitWeb"])111 self.category_list.append(["UmitWeb","UmitWeb"]) 111 112 self.category_list.append(["InterfaceEditor", "InterfaceEditor"]) 112 113 self.category_list.append(["NetworkInventory", "NetworkInventory"]) -
network-scanner/branches/GSoC2010/umit/gui/ScanNotebook.py
r5840 r5892 23 23 24 24 import re 25 import os 25 26 import gtk 26 27 import gobject … … 925 926 926 927 try: 928 927 929 host_details.set_os_image( 928 get_os_logo(host. get_osmatch()['name']))930 get_os_logo(host.osmatch[-1].get("name"))) 929 931 except: 930 932 host_details.set_os_image(get_os_logo('')) … … 935 937 936 938 icon = None 937 try:icon = get_os_icon(host. get_osmatch()['name'])939 try:icon = get_os_icon(host.osmatch[-1].get("name")) 938 940 except:icon = get_os_icon('') 939 941 -
network-scanner/branches/GSoC2010/umit/gui/Wizard.py
r5632 r5892 347 347 def save_profile(self, widget): 348 348 command = self.constructor.get_command('%s') 349 close_popup = True 349 350 350 351 if self.directions['Choose'].profile_radio.get_active(): … … 377 378 elif self.notebook: 378 379 target = self.directions['Choose'].target_entry.get_text() 379 cmd = command % target 380 381 current_page = self.notebook.get_nth_page(\ 382 self.notebook.get_current_page()) 383 if current_page is None: 384 current_page = self.notebook.add_scan_page(target) 385 386 current_page.execute_command(cmd) 387 388 current_page.toolbar.target_entry.selected_target = self.\ 389 directions['Choose'].target_entry.get_text() 390 current_page.command_toolbar.command_entry.command = cmd 391 current_page.command_toolbar.set_command(cmd) 392 if self.profilemanager: 393 self.update_profilemanager() 394 self.close_wizard() 380 381 try: 382 cmd = command % target 383 except TypeError: 384 alert = HIGAlertDialog(message_format=_('Invalid Command'),\ 385 secondary_text=_('The command is invalid.')) 386 alert.run() 387 alert.destroy() 388 close_popup = False 389 else: 390 current_page = self.notebook.get_nth_page(\ 391 self.notebook.get_current_page()) 392 if current_page is None: 393 current_page = self.notebook.add_scan_page(target) 394 395 current_page.execute_command(cmd) 396 397 current_page.toolbar.target_entry.selected_target = self.\ 398 directions['Choose'].target_entry.get_text() 399 current_page.command_toolbar.command_entry.command = cmd 400 current_page.command_toolbar.set_command(cmd) 401 if self.profilemanager: 402 self.update_profilemanager() 403 if close_popup: 404 self.close_wizard() 395 405 396 406 class FinishPage(HIGVBox): -
network-scanner/branches/GSoC2010/umit/merger/nt_appdata.py
r5632 r5892 47 47 old_path = os.path.join(os.path.expanduser("~"), ".umit") 48 48 old_path = old_path.decode(locale.getdefaultlocale()[1]) 49 50 backup_path = old_path + '_backup' 49 51 50 backup_path = old_path + '_backup' 51 if os.path.exists(old_path): 52 i = 0 53 while os.path.exists(backup_path): 54 backup_path = backup_path + i 55 i = i + 1 56 57 58 if os.path.exists(old_path) and \ 59 not os.path.exists(os.path.join(old_path, "MERGED")) \ 60 and not os.path.exists(backup_path) : 52 61 # Move the old ~/.umit to ~/.umit_backup so next time this 53 62 # merger runs it will notice the absence of ~/.umit 54 shutil.move(old_path, backup_path) 63 # If UmitWeb is an old version, it will keep ~/.umit alive 64 if os.path.exists(os.path.join(old_path, "umitweb.log")): 65 shutil.copytree(old_path, backup_path) 66 # Create a file to tag that was already merged 67 file = open(os.path.join(old_path, "MERGED"), 'w') 68 file.write('') 69 file.close() 70 else: 71 shutil.move(old_path, backup_path) 55 72 56 73 new_path = os.path.join(BasePaths.HOME, BasePaths.UMIT_CFG_DIR)
