Skip to content

Commit

Permalink
Missing hives in sync. (#110)
Browse files Browse the repository at this point in the history
* Missing hives in sync.

* Missing cli
  • Loading branch information
maximelb committed Sep 12, 2023
1 parent 9a2b268 commit 0480d37
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions limacharlie/Configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,18 @@ def main( sourceArgs = None ):
action = 'store_true',
dest = 'isHiveYara',
help = 'if specified, apply yara rules in hive from operations' )
parser.add_argument( '--hive-lookup',
required = False,
default = False,
action = 'store_true',
dest = 'isHiveLookup',
help = 'if specified, apply lookups in hive from operations' )
parser.add_argument( '--hive-secret',
required = False,
default = False,
action = 'store_true',
dest = 'isHiveSecret',
help = 'if specified, apply secrets in hive from operations' )
parser.add_argument( '--all',
required = False,
default = False,
Expand Down Expand Up @@ -1018,6 +1030,8 @@ def main( sourceArgs = None ):
'isHiveCloudSensor',
'isHiveExtensionConfig',
'isHiveYara',
'isHiveLookup',
'isHiveSecret',
]

allHives = {
Expand All @@ -1028,6 +1042,8 @@ def main( sourceArgs = None ):
'cloud_sensor': True,
'extension_config': True,
'yara': True,
'lookup': True,
'secret': True,
}

# If All is enabled, enable all types.
Expand Down Expand Up @@ -1060,6 +1076,10 @@ def main( sourceArgs = None ):
hives['extension_config'] = True
if args.isHiveYara:
hives['yara'] = True
if args.isHiveLookup:
hives['lookup'] = True
if args.isHiveSecret:
hives['secret'] = True

s = Configs( oid = args.oid, env = args.environment, isDontUseInfraService = args.isDontUseInfraService, isUseExtension = args.isUseExtension )

Expand Down

0 comments on commit 0480d37

Please sign in to comment.