Menu

FakeScanner

Allan Cunliffe Kirti Chennareddy

This procedure describes how to set up the FakeScanner for the Quarantine stage of DPR processing.

The FakeScanner can be used to test DPR without the need for ClamAV. FakeScanner can be configured to simulate the following:

  • virus definitions are out of date
  • a virus is detected.

Create DPR Test Utilities

1. Go to the location of the DPR build.xml. For example:

cd /home/source/dpr

2. Build the dprtestutils.jar

ant make_test_jar

Result: The dprtestutils.jar is built in the dpr/dist directory.

Run the FakeScanner

1. Ensure the DPR setting for virus scanner port is set to the port selected in step 2 below (e.g. port 9999)

2. Go to the location of dprtestutils.jar. For example:

cd /home/source/dpr/dist

3. Enter the following:

java -cp dprtestutils.jar au.gov.naa.digipres.virus.FakeScanner -p9999 -d1

Note: The above options start the scanner on port 9999, with virus definitions 1 day old. For more settings, enter:

java -cp dprtestutils.jar au.gov.naa.digipres.virus.FakeScanner --help

Result: The following is displayed:

fake_scanner [-v] -<Age of Definitions in days> -<Port Number>

Related

Wiki: Main_Page

Auth0 Logo