If you want to run Hackalert in a docker container, follow these instructions.
- Download the Docker Desktop installer from the Docker Hub.
- Double-click the installer to run it.
- Follow the instructions in the installer to complete the installation.
- Download the Docker Compose binary from the Docker Compose GitHub repository.
- Move the binary to a directory in your system's PATH.
-
Download the Docker Desktop installer from the Docker Hub.
-
Double-click the installer to run it.
-
Follow the instructions in the installer to complete the installation.
-
Install Docker Compose using Homebrew:
brew install docker-compose
-
Install Docker using your distribution's package manager. For example, on Ubuntu, you can use the following command:
sudo apt-get install docker.io
-
Start the Docker service:
sudo systemctl start docker
sudo systemctl enable docker
-
Install Docker Compose using pip:
sudo pip install docker-compose
-
Command to build and run HackAlert using docker compose
docker-compose -f .\docker-compose.yml up -d --build
- Ensure that Config/config.ini file exists in the local filesystem
- Ensure
Config/config.ini
is populated with the right API Keys for VirusTotal and HaveIBeenPwned - Format of
Config/config.ini
file:
[APIKeys] VT_APIKey = 1234567890 HIBP_APIKey = 1234567890
-
Log in to running container
docker exec -it hackalert /bin/sh
-
Once inside the container
hackalert
, run the relevant python commands:python hackalert.py -h
python hackalert.py -i 8.8.8.8
python hackalert.py -e x@x.com