Пример #1
0
 def __init__(self, execparams, parent):
     mandatoryparams = ['filepath', 'pattern']
     Action.__init__(self,
                     execparams=execparams,
                     manparams=mandatoryparams,
                     parent=parent)
     ProcessableAction.__init__(self, ['matchval'])
Пример #2
0
 def __init__(self, execparams, parent):
     psplog.debug('New reg query action: exparms: {0} parent: {1}'.format(execparams, parent))
     Action.__init__(self, execparams=execparams, parent=parent)
     hivemap = {'hklm': 'L', 'hkey_local_machine': 'L', 'hku': 'U', 'hkey_users': 'U', 'hkcu': 'C', 'hkey_current_user': '******', 'hkcc': 'G', 'hkey_current_config': 'G', 'hkcr': 'R', 'hkey_classes_root': 'R'}
     try:
         self.hive = hivemap[self.execparams['regkey'].split('\\', 1)[0].lower()]
     except:
         self.hive = None
Пример #3
0
 def __init__(self, execparams, parent):
     Action.__init__(self, execparams=execparams, parent=parent)
Пример #4
0
 def __init__(self, params, **kwargs):
     Action.__init__(self, execparams=params, **kwargs)
Пример #5
0
 def __init__(self, params, parent):
     self.mandatoryparams = None
     Action.__init__(self, execparams=params, parent=parent)
Пример #6
0
 def __init__(self, execparams, parent):
     mandatoryparams = ['filepath', 'pattern']
     Action.__init__(self, execparams=execparams, manparams=mandatoryparams, parent=parent)
     ProcessableAction.__init__(self, ['matchval'])
Пример #7
0
 def __init__(self, params, parent):
     self.mandatoryparams = ['text']
     Action.__init__(self, params, parent)
Пример #8
0
 def __init__(self, params, parent):
     self.additionaldata = None
     Action.__init__(self, execparams=params, parent=parent)