Trees | Indices | Help |
|
---|
|
This module manages the command line parsing logic.
Rekall uses the argparse module for command line parsing, however this module contains so many bugs it might be worth to implement our own parser in future.
Author: Michael Cohen <scudette@gmail.com>
Classes | |
RekallHelpFormatter | |
RekallArgParser | |
IntParser Class to parse ints either in hex or as ints. |
|
ArrayIntParser Parse input as a comma separated list of integers. |
|
ArrayStringParser |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
DISAMBIGUATE_OPTIONS =
|
|
__package__ =
|
Function Details |
Search the argv for the first occurrence of a valid plugin name. Returns a mutated argv where the plugin is moved to the front. If a plugin is not found we assume the plugin is "shell" (i.e. the interactive session). This maintains backwards compatibility with the old global/plugin specific options. In the current implementation, the plugin name should probably come first: rekal pslist -v -f foo.elf --pid 4 but this still works: rekal -v -f foo.elf pslist --pid 4 |
Apply the plugin configuration to an argparse parser. This method is the essential glue between the abstract plugin metadata and argparse. The main intention is to de-couple the plugin's args definition from arg parser's specific implementation. The plugin then conveys semantic meanings about its arguments rather than argparse implementation specific details. Note that args are parsed through other mechanisms in a number of cases so this gives us flexibility to implement arbitrary parsing: - Directly provided to the plugin in the constructor. - Parsed from json from the web console. |
Parse the args from the command line argv. Args: argv: The args to process. user_session: The session we work with. global_arg_cb: A callback that will be used to process global args. Global args are those which affect the state of the Rekall framework and must be processed prior to any plugin specific args. In essence these flags control which plugins can be available. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 9 03:27:46 2017 | http://epydoc.sourceforge.net |