Hi, I'm facing issue in Lab - CIS Benchmark Assessment tool on Ubuntu While runn . . .

Savio Mathew:
Hi,
I’m facing issue in Lab - CIS Benchmark Assessment tool on Ubuntu
While running ./Assessor-CLI.sh getting below error.

root@controlplane:~/Assessor-CLI# ./Assessor-CLI.sh

--------------------------------------------------------------------------------------
   ,o88888o.    8888    d888888o.          ,o88888o.           8.    8888888888888888 
  8888    `88.  8888  .`8888:' `88.       8888    `88.        .88.         8888       
,88888      `8. 8888  8.`8888.   Y8     ,88888      `8.      .8888.        8888       
888888          8888  `8.`8888.         888888              .`88888.       8888       
888888          8888   `8.`8888.   888  888888             .8.`88888.      8888       
888888          8888    `8.`8888.  888  888888            .8`8.`88888.     8888       
888888          8888     `8.`8888.      888888           .8' `8.`88888.    8888       
`88888      .8' 8888 8b   `8.`8888.     `88888      .8' .8'   `8.`88888.   8888       
  8888    ,88'  8888 `8b.  ;8.`8888       8888    ,88' .888888888.`88888.  8888       
   `888888P'    8888  `Y8888P ,88P'        `888888P'  .8'       `8.`88888. 8888       
--------------------------------------------------------------------------------------
         Welcome to CIS-CAT Pro Assessor; built on 01/28/2021 02:03 AM
--------------------------------------------------------------------------------------
  This is the Center for Internet Security Configuration Assessment Tool, v4.3.1
          At any time during the selection process, enter 'q!' to exit.
--------------------------------------------------------------------------------------

Verifying application

usage: Assessor-CLI.[bat|sh] -[options] <extras>
---------------------------------------------------------------------------------------------------
 Options                                           Tip
---------------------------------------------------------------------------------------------------
 -b,--benchmark <BMK-OR-DSC>                       Path to file containing assessment content, such
                                                   as an XCCDF or DataStream Collection
 -bi,--benchmark-info                              When used with -b, display information about the
                                                   selected benchmark or datastream collection, such
                                                   as a profile listing
 -cfg,--config-xml <CONFIGURATION XML FILE>        Path to an XML configuration file detailing
                                                   assessments to perform against various sessions.
 -cl,--checklist <CHECKLIST>                       Used only when the -b argument selects a
                                                   <data-stream-collection> document for assessment,
                                                   the -cl option selects the ID of the specific
                                                   checklist to assess
 -csv                                              Generate report results in CSV format
 -D <property=value>                               Customize user properties or interactive values
 -dm,--data-stream <DATA-STREAM>                   Used only when the -b argument selects a
                                                   <data-stream-collection> document for assessment,
                                                   the -ds option selects the ID of the specific
                                                   data-stream to assess
 -e,--encrypt <FILE TO ENCRYPT>                    Full path to the a sessions.properties file or
                                                   configuration.xml file to be encrypted, including
                                                   the file name and its extension
 -ep,--encryption-password <ENCRYPTION PASSWORD>   The password that will be used to encrypt a
                                                   sessions.properties file or configuration.xml
                                                   file
 -fp,--file-password <FILE PASSWORD>               The password originally used to encrypt a
                                                   sessions.properties file or configuration.xml
                                                   file
 -gui                                              The assessment is run by the GUI
 -h,--help                                         Show usage information
 -html                                             Generate report results in HTML format
 -i,--interactive                                  Proceed interactively
 -json                                             Generate report results in JSON format
 -l,--list                                         List available assessment content
 -lv,--list-verbose                                Add verbose output when listing available content
 -narf,--no-arf                                    Do not generate report results in Asset Reporting
                                                   Format
 -nl,--no-logging                                  Disable all logging (Default log level is WARN)
 -npr                                              Generate a JSON report showing results that did
                                                   not pass (fail, error, unknown)
 -nrf,--no-report-file                             Do not generate an assessment report file.  This
                                                   option is intended to be used in conjunction with
                                                   the -u option.  If the -u option is not
                                                   specified, the assessment results will be saved
                                                   as a file regardless.
 -nts,--no-timestamp                               Do not include the auto-generated timestamp as
                                                   part of the report name.
 -o,--definitions                                  Definitions/Vulnerability Assessment
 -od,--oval-definitions <OVAL DEFINITIONS>         Path to file containing OVAL Definitions
 -ov,--oval-variables <OVAL VARIABLES>             Path to file containing OVAL Variables
 -p,--profile <PROFILE>                            ID/Name of the specific profile to assess
 -props,--properties <PROPERTIES-FILE>             Location (absolute or relative to starting
                                                   directory) of custom Assessor properties file
 -q,--quiet                                        Quiet Mode: Disable assessment status output
 -rd,--reports-dir <REPORTS-DIR>                   Path to a directory specifying the location to
                                                   which output reports are saved
 -rp,--report-prefix <REPORT-PREFIX>               Override the default report name.  Timestamp
                                                   information will be appended to the report
                                                   prefix, except when the -nts option is included
                                                   as well.
 -sessions,--sessions <SESSIONS.PROPERTIES>        Location (absolute or relative to starting
                                                   directory) of Sessions configuration file
 -test,--test                                      Used in conjunction with the 'sessions' option,
                                                   or with the default 'sessions.properties' file,
                                                   test the validity of session configurations,
                                                   reporting success or failure
 -txt                                              Generate report results in plain-text format
 -u,--url <REPORTS-URL>                            Sends a HTTP POST with the Assessment Results XML
                                                   to the specified URL
 -ui,--ignore-warnings                             Ignore certificate warnings when POSTing results
                                                   to a URL.
 -v,--error                                        Configure log level to ERROR
 -vdd,--vulnerability-definitions                  Download the latest vulnerability definitions
 -vv,--warn                                        Configure log level to WARN
 -vvv,--info                                       Configure log level to INFO
 -vvvv,--debug                                     Configure log level to DEBUG
 -vvvvv,--trace                                    Configure log level to TRACE
 -vvvvvv,--all                                     Configure log level to ALL
Exit Code: 0

unnivkn:
please try this:

unnivkn:
cd /root/Assessor-CLI
sh ./Assessor-CLI.sh -i -rd /var/www/html/ -nts -rp index

-rp,–report-prefix <REPORT-PREFIX>
-nts,–no-timestamp –> Do not include the auto-generated timestamp as part of the report name.
-rd,–reports-dir <REPORTS-DIR> –> Path to a directory specifying the location to which output reports are saved

If you’d really want to use all the required flags I would use this one.

./Assessor-CLI.sh -b /root/Assessor/benchmarks/CIS_Ubuntu_Linux_20.04_LTS_Benchmark_v2.0.1-xccdf.xml -dm v2.0.1 -p “Level 1 - Server” -i -html -nts -rd /var/www/html/ -rp index

Specifies the “benchmark file”, the “data-stream” , the “profile” , the “interactive mode” , the “html format”, the “no-time-stamp option” , relevant to the output file name and the “prefix-name”.
Just like the Task wants us to do.