mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-07 10:17:38 +02:00
allow specifying integers as 0x in ListRequirement
This commit is contained in:
@@ -827,7 +827,11 @@ class CommandLine:
|
||||
requirement,
|
||||
volatility3.framework.configuration.requirements.ListRequirement,
|
||||
):
|
||||
additional["type"] = requirement.element_type
|
||||
# Allow a list of integers, specified with convenient 0x hexadecimal format
|
||||
if requirement.element_type == int:
|
||||
additional["type"] = lambda x: int(x, 0)
|
||||
else:
|
||||
additional["type"] = requirement.element_type
|
||||
nargs = "*" if requirement.optional else "+"
|
||||
additional["nargs"] = nargs
|
||||
elif isinstance(
|
||||
|
||||
Reference in New Issue
Block a user