Skip to content

Command Line Interface

Robert Weber edited this page May 5, 2020 · 15 revisions

Command Line Execution

The scan related functions can all be executed via direct command line parameter calls. The scan2reports binaries all include an option to display the 'help' file by calling the -h parameter. The general order of the command line execution parameters is:

usage: scans2reports.exe [-i] [-fd] [-g] [-hd] [-l] [--mitigation-statements {blank,poam,ckl,both}] [--predisposing-conditions PREDISPOSING_CONDITIONS] [-s] [--test-results {add,convert,close}] [-t THREADS] [-x EXCLUDE_PLUGINS] [-c COMMAND] [-e EMAIL] [-n NAME] [-p PHONE] [-h] [input_folder]

  • required arguments: input_folder The folder to collect scans from.

  • optional arguments: -i, --skip-info Skip Informational Findings -fd, --finding-details Whether or not to include the finding details in the POAM/RAR Comments -g, --gui Use the GUI instead of the console -hd, --host-details Show affected devices as hostname [SCAN_TYPE - Ver: #, Rel/Feed: # ] on the POAM/RAR tabs

-l, --lower-risk Automatically Lower Risk on POAM --mitigation-statements {blank,poam,ckl,both} Import Mitigation Methods (blank, poam, ckl, both)

--predisposing-conditions “PREDISPOSING_CONDITIONS” Enter default Predisposing Conditions -s, --scd Prefill Estimated SCD to POAM --test-results {add,convert,close} Add, Close or Convert CCI Mismatches

-t THREADS, --threads THREADS How intensive should the generator run (1-3). Defaults to 2.

-x EXCLUDE_PLUGINS, --exclude-plugins EXCLUDE_PLUGINS Exclude plugins newer than this number of days. Defaults to 30. -c COMMAND, --command COMMAND Add Responsible Command/Organization Caption to POAM -e EMAIL, --email EMAIL Add POC Email Address to POAM -n NAME, --name NAME
Add POC Name to POAM -p PHONE, --phone PHONE Add POC Phone Number to POAM -h, --help Show this help message and exit