Server side of the Autopsy application utilizing the Sleuth Kit (TSK) library.
- Open JDK 22: Download and install the required JDK version from OpenJDK 22.
- PostgreSQL: Download and install PostgreSQL from PostgreSQL Official Website.
To run the backend system on your local machine, follow these steps:
-
Clone the Repository
-
Install Required JAR Files
Two.jar
files are provided in the project in thesetup
folder. These must be installed into the project directory using the following commands:-
sleuthkit-4.12.1.jar
Windows:
mvn install:install-file ^ -Dfile="{PROJECT_DIR_PATH}/setup/sleuthkit-4.12.1.jar" ^ -DgroupId="org.sleuthkit" ^ -DartifactId=sleuthkit ^ -Dversion="4.12.1" ^ -Dpackaging=jar ^ -DgeneratePom=true
MacOS/Linux:
mvn install:install-file \ -Dfile={PROJECT_DIR_PATH}/setup/sleuthkit-4.12.1.jar \ -DgroupId=org.sleuthkit \ -DartifactId=sleuthkit \ -Dversion=4.12.1 \ -Dpackaging=jar \ -DgeneratePom=true
-
org-sleuthkit-autopsy-core.jar
Windows:
mvn install:install-file ^ -Dfile="{PROJECT_DIR_PATH}/setup/org-sleuthkit-autopsy-core.jar" ^ -DgroupId="org.sleuthkit" ^ -DartifactId=autopsy-core ^ -Dversion="4.21.0" ^ -Dpackaging=jar ^ -DgeneratePom=true
MacOS/Linux:
mvn install:install-file \ -Dfile={PROJECT_DIR_PATH}/setup/org-sleuthkit-autopsy-core.jar \ -DgroupId=org.sleuthkit \ -DartifactId=autopsy-core \ -Dversion=4.21.0 \ -Dpackaging=jar \ -DgeneratePom=true
-
-
Install Dependencies
Run the following command to make sure everything is installed:mvn install -Dmaven.test.skip=true
-
Install Lombok Plugin
-
Set VM Options
Add the following VM options to the run configuration:--add-opens java.base/java.lang.ref=ALL-UNNAMED -Dnetbeans.user={PROJECT_DIR_PATH}/netbeans_userdir
-
Configure PostgreSQL
Ensure PostgreSQL is installed, and update the connection details in theapplication.properties
file:spring.datasource.url=jdbc:postgresql:{db_connection_string} spring.datasource.username=your_username spring.datasource.password=your_password
-
Configure Case Directory
In theapplication.properties
file, update the path for storing cases:case.baseDir={Default_dir_path_to_store_the_cases}
-
Run the Project
Once the above steps are complete, run the project.
In the test_api
folder, you will find a Postman Collection containing the APIs used by the backend system. To use the collection, simply import it into Postman.