Using the CLI versions

Introduction

This article shall serve as a guide on the usage of the command-line (CLI) versions of Card & Data Recon.

 

Launching the CLI

  1. Open up a Terminal/Command Prompt window and login as root
  2. Browse to the directory where you've downloaded CR/DR (CLI) using the 'cd' command
    (eg. cd /home/admin/Downloads)
  3. Add permissions to the CR/DR (CLI) software using the command; chmod +wrx <FILE NAME>
    (eg. chmod +wrx cardrecon_osx_2.0.15)
    This step is unnecessary for Windows machines
  4. Run CR/DR using the command; ./<FILE NAME>
    (eg. ./cardrecon_osx_2.0.15)

 

Command-line options

You may include additional options to the execution of CR/DR by using the syntax; ./<FILE NAME> -<OPTION>
(eg. ./cardrecon_osx_2.0.15 -h)

The following is a list of available options and their functions:

Option Function
-c, -config, -configuration <PATH> Use a configuration file
-export <PATH> Sets the location where a list of matches will be saved
To save as text, specify a path with the extension; .txt
To save as a spreadsheet, specify a path with the extension; .csv
-h, -help Display CLI option help
-j, -journal <FILE> Specify a results database to save the search progress
If a search is interrupted, the results database can be used to resume the previous search without loss of results
-journal-overwrite Overwrite the existing results database without confirmation/prompts
-journal-resume Resume a search using the existing results database
-journal-skip Resume a search using the existing results database, skipping the last scanned file
-l, -license <PATH> Sets the location of the offline license file
-o, -output <PATH> Sets the location where the search report will be saved
To save as text, specify a path with the extension; .txt
To save as a spreadsheet, specify a path with the extension; .csv
To save as a PDF, specify a path with the extension; .pdf
To save as XML, specify a path with the extension; .xml
To save a report compatible with the online portal, specify a path with the extension; .crr
Multiple entries may be used to save the report in multiple formats
-p, -password Enter results database password
-password-inline <PASSWORD> Set a password for the results database
-r <PATH> Sets the root directory for the search
-q, -quiet Turn on 'quiet' mode
-v, -verbose Turn on 'verbose' mode
-vv, -very-verbose Turn on 'extra verbose' mode
-version Display CR/DR version

 

Example usage

Search a specific directory

./cardrecon_linux26_2.0.15 -r /home/admin/Documents

CR/DR will search only the 'Documents' directory under /home/admin .

Search in 'extra verbose' mode (for debugging purposes)

./cardrecon_linux26_2.0.15 -vv

CR/DR will run a search displaying the details of each file being inspected in real-time.
This is useful for troubleshooting or debugging purposes.

Search using a configuration file

./cardrecon_linux26_2.0.15 -c /tmp/cardrecon/cardrecon.cfg

CR/DR will search with the inclusion of any additional options you've included in the configuration file.

Search using a configuration file in 'extra verbose' mode

./cardrecon_linux26_2.0.15 -c /tmp/cardrecon/cardrecon.cfg -vv

Search with an encrypted results database enabled

./cardrecon_linux26_2.0.15 -j resultsdb.jnl -password-inline astrongpwd123

After the end of the search, results will be stored in an encrypted results database with the password; astrongpwd123

 

 

All information in this article is accurate and true as of the last edited date.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.