Struct cwe_checker::CmdlineArgs
source · pub(crate) struct CmdlineArgs {
pub(crate) binary: Option<String>,
pub(crate) config: Option<String>,
pub(crate) out: Option<String>,
pub(crate) partial: Option<String>,
pub(crate) json: bool,
pub(crate) quiet: bool,
pub(crate) verbose: bool,
pub(crate) statistics: bool,
pub(crate) bare_metal_config: Option<String>,
pub(crate) module_versions: bool,
pub(crate) debug: Option<CliDebugMode>,
pub(crate) pcode_raw: Option<String>,
}
Expand description
Find vulnerable patterns in binary executables
Fields§
§binary: Option<String>
The path to the binary.
config: Option<String>
Path to a custom configuration file to use instead of the standard one.
out: Option<String>
Write the results to a file instead of stdout. This only affects CWE warnings. Log messages are still printed to stdout.
partial: Option<String>
Specify a specific set of checks to be run as a comma separated list, e.g. ‘CWE332,CWE476,CWE782’.
Use the “–module-versions” command line option to get a list of all valid check names.
json: bool
Generate JSON output.
quiet: bool
Do not print log messages. This prevents polluting stdout for json output.
verbose: bool
Print additional debug log messages.
statistics: bool
Include various statistics in the log messages. This can be helpful for assessing the analysis quality for the input binary.
bare_metal_config: Option<String>
Path to a configuration file for analysis of bare metal binaries.
If this option is set then the input binary is treated as a bare metal binary regardless of its format.
module_versions: bool
Prints out the version numbers of all known modules.
debug: Option<CliDebugMode>
Output for debugging purposes. The current behavior of this flag is unstable and subject to change.
pcode_raw: Option<String>
Read the saved output of the Pcode Extractor plugin from a file instead of invoking Ghidra.
Trait Implementations§
source§impl Args for CmdlineArgs
impl Args for CmdlineArgs
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for CmdlineArgs
impl CommandFactory for CmdlineArgs
source§impl Debug for CmdlineArgs
impl Debug for CmdlineArgs
source§impl From<&CmdlineArgs> for Settings
impl From<&CmdlineArgs> for Settings
source§fn from(args: &CmdlineArgs) -> Self
fn from(args: &CmdlineArgs) -> Self
source§impl FromArgMatches for CmdlineArgs
impl FromArgMatches for CmdlineArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.