Logo Search packages:      
Sourcecode: umit version File versions  Download package

def umitCore::NmapOptions::NmapOptions::__init__ (   self,
  profile 
)

__init__ (profile)

Constructor receives xml options file path as argument, and start
it's parsing.

Definition at line 30 of file NmapOptions.py.

00030                                 :
        '''__init__ (profile)
        
        Constructor receives xml options file path as argument, and start
        it's parsing.
        '''
        # Starting file's parsing
        self.option_xml = minidom.parse(open (profile))
        
        # Root tag of the xml file.
        self.root_tag = 'nmap_options'
        
        # Here we take every 'groups' and 'options' elements insite root tag
        self.nmap_options = self.__get_nmap_options ()
        
        self.options = self.__turn_into_dict(self.nmap_options)
    
    def get_command_option (self, option, args=[]):


Generated by  Doxygen 1.6.0   Back to index