Changeset 5892

Show
Ignore:
Timestamp:
03/28/11 15:09:22 (2 years ago)
Author:
luis
Message:

Merged revisions 5842,5851-5852,5859,5870-5871,5873-5879,5883,5885-5890 via svnmerge from
http://svn.umitproject.org/svnroot/umit/network-scanner/trunk

........

r5842 | getxsick | 2010-08-20 10:06:59 +0100 (Fri, 20 Aug 2010) | 2 lines


fix #370 : this is for ctrl+c issue

........

r5851 | luis | 2010-08-23 10:29:44 +0100 (Mon, 23 Aug 2010) | 1 line


Fixing duplicate word (english)

........

r5852 | luis | 2010-08-23 12:51:24 +0100 (Mon, 23 Aug 2010) | 1 line


Changing version of documentation

........

r5859 | diogo | 2010-08-24 16:14:38 +0100 (Tue, 24 Aug 2010) | 1 line


patch of ticket 392 applied

........

r5870 | luis | 2010-09-05 19:24:03 +0100 (Sun, 05 Sep 2010) | 2 lines


(Network Scanner)
Added wizard documentation

........

r5871 | luis | 2010-09-05 20:14:54 +0100 (Sun, 05 Sep 2010) | 3 lines


(Network Scanner)

  • s/Umit/Umit Network Scanner
  • Ajust columns (max 80 chars per line)

........

r5873 | luis | 2011-02-16 21:46:35 +0000 (Wed, 16 Feb 2011) | 1 line


Fixing #292 - name of comenents at trac are deprecated

........

r5874 | luis | 2011-03-10 11:19:15 +0000 (Thu, 10 Mar 2011) | 1 line


Fixing #413 - parsing invalid xml

........

r5875 | luis | 2011-03-10 11:27:38 +0000 (Thu, 10 Mar 2011) | 1 line


Fixing #394 - Path issue

........

r5876 | luis | 2011-03-10 11:35:52 +0000 (Thu, 10 Mar 2011) | 1 line


Fixing #380: conflits with umitweb in Windows

........

r5877 | luis | 2011-03-10 13:59:46 +0000 (Thu, 10 Mar 2011) | 1 line


Fixing #381 - in merger module: .umit already exists (Windows)

........

r5878 | luis | 2011-03-10 14:50:30 +0000 (Thu, 10 Mar 2011) | 1 line


Fixing #418

........

r5879 | luis | 2011-03-10 23:17:11 +0000 (Thu, 10 Mar 2011) | 1 line


Complete fixing #381: assigned variable bug

........

r5883 | luis | 2011-03-11 00:50:22 +0000 (Fri, 11 Mar 2011) | 1 line


(network scanner) changing version from windows installers

........

r5885 | luis | 2011-03-12 15:23:51 +0000 (Sat, 12 Mar 2011) | 1 line


Fixing bug related with icons: OS icons was not appearing. Now fixed, thanks to Rodolfo Carvalho

........

r5886 | luis | 2011-03-26 15:36:12 +0000 (Sat, 26 Mar 2011) | 1 line


(Network Scanner) - fixing error in umit.exe pack, now it includes also gio. further info checkout PyGTK and Py2Exe FAQ at py2exe website

........

r5887 | luis | 2011-03-26 15:47:16 +0000 (Sat, 26 Mar 2011) | 1 line


(Network Scanner) Revert conf to previous version. it was touched by mistake

........

r5888 | luis | 2011-03-26 16:21:26 +0000 (Sat, 26 Mar 2011) | 1 line


(Network Scanner) Fixing issue on py2exe - import error of email.message

........

r5889 | luis | 2011-03-26 18:07:05 +0000 (Sat, 26 Mar 2011) | 1 line


(Network Scanner) fixing deps on ubuntu/debian package

........

r5890 | luis | 2011-03-26 22:05:01 +0000 (Sat, 26 Mar 2011) | 1 line


(Network Scanner) Adding documentation to the bundle

........

Location:
network-scanner/branches/GSoC2010
Files:
25 modified

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  
    218218 
    219219def 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\ 
     231directory. 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) 
    233248 
    234249    if os.name == "posix": 
  • network-scanner/branches/GSoC2010/install_scripts/linux/ubuntu/debian/control

    r5632 r5892  
    1212Package: umit 
    1313Architecture: all 
    14 Depends: ${python:Depends}, python-gnome2-extras, nmap (>= 4.50), python-gtk2, python-pysqlite2, python-gobject 
     14Depends: ${python:Depends}, nmap (>= 4.50), python-gtk2, python-gobject 
    1515XB-Python-Version: ${python:Versions} 
    1616Recommends: python-psyco 
  • network-scanner/branches/GSoC2010/install_scripts/windows/generate_windows_installer.bat

    r5632 r5892  
    77 
    88echo Setting installation variables... 
    9 set PythonEXE=C:\Python26\python.exe 
     9set PythonEXE=C:\Python27\python.exe 
    1010set UmitOrig=. 
    1111set UmitDir=C:\UmitTemp 
    1212set DistDir=%UmitDir%\dist 
    1313set GTKDir=C:\GTK 
    14 set NmapDir=C:\Programas\Nmap 
    15 set WinpcapDir=C:\programas\Winpcap 
     14set NmapDir="C:\Program Files (x86)\Nmap" 
     15set WinpcapDir="C:\Program Files (x86)\Winpcap" 
    1616set WinInstallDir=%UmitDir%\install_scripts\windows 
    1717set Output=%UmitDir%\win_install.log 
    18 set MakeNSIS=C:\programas\NSIS\makensis.exe 
     18set MakeNSIS="C:\Program Files (x86)\NSIS\makensis.exe" 
    1919set UtilsDir=%UmitDir%\install_scripts\utils 
    2020 
     
    7373%PythonEXE% -OO setup.py py2exe 
    7474 
     75echo Copying the html docs 
     76xcopy share\doc\umit\html\*.* %DistDir%\share\doc\umit\html\ /S /I >> %Output% 
    7577 
    7678echo Copying some more GTK files to dist directory... 
  • network-scanner/branches/GSoC2010/install_scripts/windows/py2exe_setup.py

    r5632 r5892  
    7676            "compressed": 1, 
    7777            "optimize": 2, 
    78             "packages": "encodings", 
     78            "packages": ["encodings", "email"], 
    7979            "includes": [ 
    80                 'pango', 'atk', 'gobject', 'pickle', 'bz2', 
     80                'pango', 'atk', 'gobject', 'pickle', 'bz2', 'gio', 
    8181                'encodings', 'encodings.*', 'cairo', 'pangocairo'], 
    8282            # Ignore psyco if it is not installed 
  • network-scanner/branches/GSoC2010/install_scripts/windows/umit_compiled.nsi

    r5632 r5892  
    463463 
    464464!define APPLICATION_NAME "Umit" 
    465 !define APPLICATION_VERSION "1.0RC" 
     465!define APPLICATION_VERSION "1.0" 
    466466!define WINPCAP "WinPcap_4_0_2.exe" 
    467467 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/comparing_results.rst

    r5632 r5892  
    2121--------------------- 
    2222 
    23 To reach the Compare Results Window, make sure that Umit is open, and then 
    24 do one of  the following: 
     23To reach the Compare Results Window, make sure that Umit Network Scanner is open,  
     24and then do one of  the following: 
    2525 
    2626   1. **Use the key-stroke** 
     
    2828      * The key-stroke that shows the Compare Results Window is CTRL + D. 
    2929 
    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** 
    3631 
    3732      * Go to the *Main Menu* (the one on the top of the application), 
    38         File->Compare Results. 
     33        Tools->Compare Results. 
    3934 
    4035 
     
    4237---------------------- 
    4338 
    44 To avoid too much user interaction, and usability problems, Umit 
     39To avoid too much user interaction, and usability problems, Umit Network Scanner 
    4540automatically make available at the *Compare Results Window* combo boxes, 
    4641the scan results currently loaded in the main interface. As you may have 
     
    5247 
    5348If 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 the 
    55 *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. 
     49Umit Network Scanner's main interface, you can compare then by loading then  
     50inside the *Compare Results Window* without the need of closing the window,  
     51loading the results into scan tabs, and then openning the  
     52*Compare Results Window* again. To load then directly, use the Open button  
     53that resides on the right of each combo box. 
    5954 
    6055You 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 then 
    62 into scan tabs first, and then open the *Compare Results Window* to compare 
    63 them. It's a bit cumbersome, but loading then directly from the 
     56the Umit Network Scanner's search data base. To load those results, you'll  
     57have to load then into scan tabs first, and then open the *Compare Results Window*  
     58to compare them. It's a bit cumbersome, but loading then directly from the 
    6459*Compare Results Window* would implicate on creating more widgets inside 
    6560the window and making it more complex, thus lowing it's usability anyway. 
     
    8479usefull comparison. 
    8580 
    86 Let's say that you have two different scans loaded in Umit, and you wish 
    87 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, called 
     81Let's say that you have two different scans loaded in Umit Network Scanner, and  
     82you wish to compare then. The first one, called *"Quick Scan on 192.168.204.128"*  
     83is a scan result made 2 days ago, and the second one, called 
    8984*"Regular Scan on 192.168.204.128"* is a just finished scan result. The goal 
    9085is to verify if something has changed during this 2 days, like if a service 
     
    10499and at *Scan Result 2* select *"Regular Scan on 192.168.204.128"*. 
    105100In the moment you finish the selection of the results you want to compare, 
    106 Umit detects your choices and generates automatically the comparison result. 
     101Umit Network Scanner detects your choices and generates automatically  
     102the comparison result. 
    107103 
    108104   .. image:: static/comparing_results2.png 
     
    110106 
    111107The *Compare Results Window* with selected results and the comparison 
    112 generated automatically by Umit. 
     108generated automatically by Umit Network Scanner. 
    113109 
    114110   .. image:: static/comparing_results3.png 
     
    121117------------------ 
    122118 
    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 why 
     119If you're an old Umit Network Scanner user, you won't be surprised with the text  
     120mode. But maybe, if you are a new user, you will probably be questionning why 
    125121there is a *"Text mode"*, if you've got the *"Compare mode"*, that is easier 
    126122to read and understand. Here goes the answer: The *"Text mode"* is the first 
     
    131127copied and pasted anywhere. This mode is not so complete as the 
    132128*"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. 
     129In the future, Umit Network Scanner will feature a report generation tool,  
     130to ease this task. 
    134131 
    135132 
     
    251248^^^^^^^^^^^^ 
    252249 
    253 There's a bug that avoids the use of this feature when Umit is been executed 
    254 with *sudo* in Linux. 
     250There's a bug that avoids the use of this feature when Umit Network Scanner is  
     251been executed with *sudo* in Linux. 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/conf.py

    r5632 r5892  
    4848version = '1.0' 
    4949# The full version, including alpha/beta/rc tags. 
    50 release = '1.0RC' 
     50release = '1.0' 
    5151 
    5252# 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  
    88 
    99   This documentation is not finished! Part or all of it's content may be 
    10    missing or inaccurate. As Umit is under constant development and 
    11    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. 
    1212 
    1313 
     
    1818should be able to add, edit and remove **Nmap** options. 
    1919 
    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. 
     20Profile Editor and Wizard are using XML files to load his options. Interface  
     21Editor management this XMLs and show a graphical interface to handle it  
     22in run-time. 
    2223 
    2324What does it do? 
     
    9192* Need Root  
    9293    
    93    If "Need Root" is able this option will be not considered if Umit is running without  
    94    Administrator level. 
     94   If "Need Root" is able this option will be not considered if Umit Network 
     95   Scanner is running without Administrator level. 
    9596 
    9697* Options + Args  
     
    112113   The description of input parameters of Nmap introduced in "Args" button 
    113114 
    114 If you add a new option or delete it will be added to Undo/Redo stack and you can easier rollback changes. 
     115If you add a new option or delete it will be added to Undo/Redo stack and you  
     116can easier rollback changes. 
    115117    
    116118    
     
    119121 
    120122 
    121 If a user can remove an option it can be done, just selecting the option in the list 
    122 and then press in "Delete" button. 
     123If a user can remove an option it can be done, just selecting the option in the  
     124list and then press in "Delete" button. 
    123125 
    124126 
     
    129131   Interface Editor - Remove Option with Dependence 
    130132 
    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. 
     133In :ref:`Remove Option <ieditorremoveoption>` there is dependence in Profile and 
     134Wizard. If you remove the option it will removed also from Profile Editor and Wizard. 
    133135 
    134136 
     
    158160 
    159161 
    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. 
     162If you remove an option (just selecting, and press "Delele" or throught the  
     163tooolbar/menu) automatically you get a voidplace. Then user will be able to 
     164exchange the option. 
     165 
     166In each option user can put the option up or down from the others just using  
     167menu "Items" or using the left toolbar. 
    165168 
    166169*Sections* 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/network_topology.rst

    r5632 r5892  
    1010 
    1111   This documentation is not finished! Part or all of it's content may be 
    12    missing or inaccurate. As Umit is under constant development and 
    13    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. 
    1414 
    1515 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/plugins.rst

    r5632 r5892  
    77 
    88   This documentation is not finished! Part or all of it's content may be 
    9    missing or inaccurate. As Umit is under constant development and 
    10    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. 
    1111 
    1212Introduction 
     
    1414 
    1515Plugins are useful to implement indipendent features that could help the user 
    16 to customize the UMIT experience. 
     16to customize the Umit Network Scanner experience. 
    1717 
    18 From the Plugin Window you could manage UMIT plugins. The window is divided in 
    19 two sections the *Extensions* and *Path* view. 
     18From the Plugin Window you could manage Umit Network Scanner plugins.  
     19The window is divided in two sections the *Extensions* and *Path* view. 
    2020 
    2121Extensions View 
     
    117117Plugin Path directory, listed in the *Paths* View. 
    118118 
    119 For example on *NIX system you could do:: 
     119For example on *NIX* system you could do:: 
    120120 
    121121   $ cd ~/.umit/plugins 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/plugins_dev.rst

    r5775 r5892  
    77 
    88   This documentation is not finished! Part or all of it's content may be 
    9    missing or inaccurate. As Umit is under constant development and 
    10    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. 
    1111 
    1212Introduction 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/profile_editor.rst

    r5632 r5892  
    88 
    99   This documentation is not finished! Part or all of it's content may be 
    10    missing or inaccurate. As Umit is under constant development and 
    11    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. 
    1212 
    1313 
     
    2222future.  
    2323 
    24 Since Umit Network Scanner 1.0 it was included a manager of Profiles called ProfileManager. 
     24Since Umit Network Scanner 1.0 it was included a manager of Profiles called  
     25ProfileManager. 
    2526 
    2627What does it do? 
     
    5859 
    5960   * Go to the *Main Menu* (the one on the top of the application) 
    60    :menuselection:`Profile --> New Profile` 
     61    
     62    :menuselection:`Profile --> New Profile` 
    6163 
    62643. **Access from the ProfileManager** 
     
    165167----------------------------- 
    166168 
    167 The *Profile Manager* is able to create, edit and delete new profiles as we explain above. 
     169The *Profile Manager* is able to create, edit and delete new profiles as we  
     170explain above. 
    168171 
    169172   .. image:: static/profile_manager.png 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/scanning.rst

    r5632 r5892  
    77 
    88   This documentation is not finished! Part or all of it's content may be 
    9    missing or inaccurate. As Umit is under constant development and 
    10    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. 
    1111 
    1212 
     
    1414------------ 
    1515 
    16 Umit was designed to accomodate and run more than one scan at time. Each scan 
    17 is executed and shown inside a *Scan Tab*, which has a title and organize 
    18 every information obtained in the scan result. 
     16Umit Network Scanner was designed to accomodate and run more than one scan at  
     17time. Each scan is executed and shown inside a *Scan Tab*, which has a title  
     18and organize every information obtained in the scan result. 
    1919 
    2020The *Scan Tab* tries to facilitate your life, by making the unformations 
     
    3131a boring task that gets worst when you have to do that more than once. 
    3232 
    33 An answer to your problem is Umit, that can handle this task easily, with 
    34 just a couple of clicks. 
     33An answer to your problem is Umit Network Scanner, that can handle this task  
     34easily, with just a couple of clicks. 
    3535 
    3636So, if you're wondering if you should retire the command line, I would say 
     
    4545pull off your doubt about what is up or down from were you stand. 
    4646 
    47 Umit is intended to help you manage your network, by giving you a better 
    48 way to examine carefully your network peers. If your intention is to 
    49 *know* better your network, then Umit is what you need. 
     47Umit Network Scanner is intended to help you manage your network, by giving you 
     48a 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. 
    5050 
    5151 
     
    5454 
    5555To 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 interface 
    57 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: 
     56Umit Network Scanner, a new *Scan Tab* is made available, and as soon as the  
     57main interface is shown, you can start typing the target address. If you already 
     58used this *Scan Tab*, you can create a new one, by doing one of the following: 
    5959 
    6060   1. **Use the key-stroke** 
     
    7777---------------- 
    7878 
    79 By the moment you start Umit, or create a new scan tab, you can start typing 
    80 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 targets. 
     79By the moment you start Umit Network Scanner, or create a new scan tab, you can  
     80start typing the address of the target(s) that you want to scan. Every target  
     81inserted into the Target field is recorded and remembered in case you need it in 
     82the future. As this field features an auto-completation, it's going to be easy  
     83the reuse of targets. 
    8484 
    8585 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/under_the_roof.rst

    r5632 r5892  
    88 
    99   This documentation is not finished! Part or all of it's content may be 
    10    missing or inaccurate. As Umit is under constant development and 
    11    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. 
    1212 
    1313 
     
    1717------------------- 
    1818 
    19 Umit will always try to create a $HOME/.umit configuration directory if it 
    20 doesn't exists yet, under UNIX. Under Windows it will try to a configuration 
    21 directory named umit under user's local application data. We call this 
    22 configuration directory as UMIT_CFG_DIR. 
     19Umit Network Scanner will always try to create a $HOME/.umit configuration  
     20directory if it doesn't exists yet, under UNIX. Under Windows it will try to a  
     21configuration directory named umit under user's local application data.  
     22We call this configuration directory as UMIT_CFG_DIR. 
    2323 
    24 The steps bellow, describes how Umit is going to behave on every 
     24The steps bellow, describes how Umit Network Scanner is going to behave on every 
    2525startup in order to load the configuration files: 
    2626 
     
    5151----------- 
    5252 
    53 Yes, there are easter eggs in Umit. Go find them! 
     53Yes, there are easter eggs in Umit Network Scanner. Go find them! 
  • network-scanner/branches/GSoC2010/share/doc/umit/src/wizard.rst

    r5632 r5892  
    22========================== 
    33 
     4.. sectionauthor:: Luís A. Bastião Silva 
    45.. sectionauthor:: Adriano Monteiro Marques 
     6 
    57 
    68.. warning:: 
    79 
    810   This documentation is not finished! Part or all of it's content may be 
    9    missing or inaccurate. As Umit is under constant development and 
    10    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. 
    1113 
    1214 
     
    1416------------ 
    1517 
    16 # What is the command constructor wizard? 
     18Using Umit Network Scanner user is able to choose options, arguments or make  
     19repeated scans. Sometimes it is not a easier process. Even with Profile Editor  
     20it is not a easier task. Command Constructor Wizard was create to help users  
     21create a customized command. 
    1722 
    18 # What do it does? 
     23Using wizard available options can be enable quickly and a new profile will be 
     24create faster. 
    1925 
    20 # The customization advantage 
    21  
    22  
    23 The profile editor modes 
     26The wizard modes 
    2427------------------------ 
    2528 
    26 # New profile 
     29Wizard has two modes: Novice and Expert. If Expert mode is selected it will open  
     30Profile Editor. Otherwise it will give an assistance helping you creating a  
     31customized profile. 
    2732 
    28 # Edit profile 
    29  
    30  
    31 Creating a simple scan profile 
    32 ------------------------------ 
    33  
    34 # The profile descriptions (name, hint, description, etc.) 
    35  
    36 # The default options 
    37  
    38 # Saving the profile 
    39  
    40 # How to use the recently created profile? 
    41  
    42  
    43 Editing a profile 
    44 ----------------- 
    45  
    46 # The profile editor's edit mode 
    47  
    48  
    49 Creating a new profile based on an old one 
    50 ------------------------------------------ 
    51  
    52 # The profile editor's create new from profile mode 
    53  
    54  
    55 The profile editor structure 
    56 ---------------------------- 
    57  
    58 # The profile_editor.xml and the options.xml 
    59  
    60 # The xml sintax 
    61  
    62 # The widgets available for options 
    63  
    64 # Positioning rules 
    65  
    66  
    67 Adding new options to profile editor 
    68 ------------------------------------ 
    69  
    70 # Adding the option to options.xml 
    71  
    72 # Calling the option in profile_editor.xml 
    73  
    74 # Watching the show 
    75  
    76  
    77 Removing an undesired option 
    78 ---------------------------- 
    79  
    80 # Removing from profile_editor.xml 
    81  
    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 an 
    85 option called inside the wizard.xml will break it. 
    86  
    87  
    88 Sharing options, and profile editors 
    89 ------------------------------------ 
    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  
    66highlight = [65535, 65535, 65535] 
    77underline = 0 
     8 
     9[database] 
     10umit_decay = 60 
     11inventory_decay = 0 
    812 
    913[date_highlight] 
     
    3337modified = [63881, 42182, 13193] 
    3438 
     39[expose] 
     40host_list = 1 
     41show_toolbar = 1 
     42icons_toolbar_size = larger 
     43icons_toolbar = Both 
     44page_inside = 1 
     45details = 1 
     46 
    3547[filtered_port_highlight] 
    3648regex = \d{1,5}/.{1,5}\s+filtered\s+.* 
     
    4153underline = 0 
    4254 
     55[general_settings] 
     56log = File 
     57warnings = 1 
     58silent_root = 0 
     59splash = 1 
     60log_file = umit.log 
     61warnings_save = 1 
     62crash_report = 1 
     63 
    4364[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#/])* 
     65regex = (\w{2,}://)?(([a-zA-Z0-9]|-)+\.)+([a-zA-Z]{2,}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)([\w\d#/])* 
    4566bold = 1 
    4667text = [0, 111, 65535] 
     
    4869highlight = [65535, 65535, 65535] 
    4970underline = 1 
     71 
     72[inventory] 
     73tips = True 
     74tabs_close_btn = True 
    5075 
    5176[ip_highlight] 
     
    5681highlight = [65535, 65535, 65535] 
    5782underline = 0 
     83 
     84[mapper] 
     85layout = 1 
     86zoom = 1.0 
     87lower_ring = 10 
     88frames = 60 
     89ring = 30 
     90view = address;hostname;icon;ring;region;slow 
     91interpolation = 1 
     92 
     93[network] 
     94username =  
     95hostname =  
     96proxy = 0 
     97password =  
     98port =  
    5899 
    59100[open_port_highlight] 
     
    71112nmap_command_path = nmap 
    72113 
     114[plugins] 
     115paths = /Volumes/Extend/Umit/svn/network-scanner/branches/GSoC2010/share/umit/config/plugins 
     116plugins =  
     117 
    73118[port_list_highlight] 
    74119regex = PORT\s+STATE\s+SERVICE(\s+VERSION)?\s.* 
     
    79124underline = 0 
    80125 
    81 [search] 
    82 search_db = 1 
    83 file_extension = usr 
    84 store_results = 1 
    85 directory =  
    86 save_time = 60;days 
    87  
    88 [general_settings] 
    89 splash = 1  
    90 warnings = 1 
    91 crash_report = 1 
    92 log = File 
    93 log_file = umit.log 
    94 warnings_save = 1 
    95 silent_root = 0 
    96  
    97 [expose] 
    98 icons_toolbar = Both 
    99 icons_toolbar_size = larger 
    100 show_toolbar = 1 
    101 host_list = 1 
    102 details = 1 
    103 page_inside = 1 
    104  
    105126[profiles] 
    106127profile = profile_editor.xml 
     
    109130scan_profile = scan_profile.usp 
    110131 
    111 [network] 
    112 proxy = 0 
    113 hostname =  
    114 port =  
    115 username =  
    116 password =  
    117  
    118 [database] 
    119 umit_decay = 60 
    120 inventory_decay = 0 
    121  
    122 [inventory] 
    123 tips = True 
    124 tabs_close_btn = True 
    125  
    126132[script_manager] 
    127133columns_order = I;Name;Type;Description;Author;Categories;ID 
    128134columns_visible = I;Name;Type;ID 
     135http_proxy = :3128 
    129136use_internal_editor = 1 
     137view_description = 1 
     138ftp_proxy = :3128 
     139view_categories = 1 
    130140view_toolbar = 1 
    131 view_description = 1 
    132 view_categories = 1 
     141external_command = gedit %%s 
    133142view_statusbar = 1 
    134 http_proxy = :3128 
    135 ftp_proxy = :3128 
    136 external_command = gedit %%s 
    137143 
    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] 
     145save_time = 60;days 
     146file_extension = usr 
     147store_results = 1 
     148directory =  
     149search_db = 1 
     150 
  • network-scanner/branches/GSoC2010/umit/core/NmapParser.py

    r5632 r5892  
    591591        self.nmap_xml_file = None 
    592592        self.unsaved = False 
     593        self.valid_xml = False 
    593594 
    594595    def set_parser(self, parser): 
     
    607608        else: 
    608609            raise Exception("There's no file to be parsed!") 
     610        if not self.valid_xml: 
     611            raise Exception("Invalid XML file!") 
    609612 
    610613    def generate_id(self): 
     
    613616 
    614617    def _parse_nmaprun(self, attrs): 
     618        self.valid_xml = True 
    615619        d = self.nmap['nmaprun'] 
    616620 
  • network-scanner/branches/GSoC2010/umit/core/UmitDB.py

    r5632 r5892  
    157157 
    158158         
    159         creation_string = ("""CREATE TABLE scans (scans_id INTEGER \ 
     159        creation_string = ("""CREATE TABLE IF NOT EXISTS scans (scans_id INTEGER \ 
    160160                                                  PRIMARY KEY AUTOINCREMENT, 
    161161                                                  scan_name TEXT, 
  • network-scanner/branches/GSoC2010/umit/gui/About.py

    r5632 r5892  
    6262         
    6363        self.lbl_program_description = gtk.Label(\ 
    64             _("""Umit is network scanning frontend frontend, 
     64            _("""Umit is network scanning frontend, 
    6565developed in PyGTK by Adriano Monteiro  
    6666Marques <adriano@umitproject.org> 
  • network-scanner/branches/GSoC2010/umit/gui/App.py

    r5781 r5892  
    5151class App: 
    5252    def __init__(self, args=sys.argv): 
     53        self.main_window = None 
    5354        # Initialite the PluginEngine 
    5455        PluginEngine() 
     
    8586        log.debug("SIGNUM: %s" % signum) 
    8687 
    87         try: 
     88        if self.main_window: 
    8889            scans = self.main_window.scan_notebook.get_children() 
    8990            for scan in scans: 
     
    9394                self.main_window.scan_notebook.remove(scan) 
    9495                del(scan) 
    95         except NameError: 
    96             pass 
    9796 
    98         self.main_window._exit_cb() 
     97            self.main_window._exit_cb() 
    9998        sys.exit(signum) 
    10099 
  • network-scanner/branches/GSoC2010/umit/gui/BugReport.py

    r5632 r5892  
    103103    def _set_category_list(self): 
    104104        # 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"]) 
    108109        self.category_list.append(["CrashReport","CrashReport"]) 
    109110        self.category_list.append(["Documentation", "Documentation"]) 
    110         self.category_list.append(["umitWeb","umitWeb"]) 
     111        self.category_list.append(["UmitWeb","UmitWeb"]) 
    111112        self.category_list.append(["InterfaceEditor", "InterfaceEditor"]) 
    112113        self.category_list.append(["NetworkInventory", "NetworkInventory"]) 
  • network-scanner/branches/GSoC2010/umit/gui/ScanNotebook.py

    r5840 r5892  
    2323 
    2424import re 
     25import os 
    2526import gtk 
    2627import gobject 
     
    925926                 
    926927                try: 
     928                     
    927929                    host_details.set_os_image( 
    928                         get_os_logo(host.get_osmatch()['name'])) 
     930                        get_os_logo(host.osmatch[-1].get("name"))) 
    929931                except: 
    930932                    host_details.set_os_image(get_os_logo('')) 
     
    935937                     
    936938                icon = None 
    937                 try:icon = get_os_icon(host.get_osmatch()['name']) 
     939                try:icon = get_os_icon(host.osmatch[-1].get("name")) 
    938940                except:icon = get_os_icon('') 
    939941                     
  • network-scanner/branches/GSoC2010/umit/gui/Wizard.py

    r5632 r5892  
    347347    def save_profile(self, widget): 
    348348        command = self.constructor.get_command('%s') 
     349        close_popup = True 
    349350 
    350351        if self.directions['Choose'].profile_radio.get_active(): 
     
    377378        elif self.notebook: 
    378379            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() 
    395405 
    396406class FinishPage(HIGVBox): 
  • network-scanner/branches/GSoC2010/umit/merger/nt_appdata.py

    r5632 r5892  
    4747        old_path = os.path.join(os.path.expanduser("~"), ".umit") 
    4848        old_path = old_path.decode(locale.getdefaultlocale()[1]) 
     49         
     50        backup_path = old_path + '_backup' 
    4951 
    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) : 
    5261            # Move the old ~/.umit to ~/.umit_backup so next time this 
    5362            # 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) 
    5572 
    5673            new_path = os.path.join(BasePaths.HOME, BasePaths.UMIT_CFG_DIR)