# Clone the repository
git clone https://github.com/chvancooten/NimPlant.git
cd NimPlant
# Install Python dependencies for the server
pip install -r server/requirements.txt
# Install Nim (required for compiling implants)
# On Linux/macOS:
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
# On Windows, download and run the Nim installer from nim-lang.org
# Install Nim dependencies
nimble install -y winim nimcrypto zippy
# Edit configuration before compiling
nano config.toml
# Compile the implant (Windows EXE)
python3 NimPlant.py compile -o exe
# Compile as DLL
python3 NimPlant.py compile -o dll
# Compile as shellcode (via sRDI)
python3 NimPlant.py compile -o shellcode
# Cross-compile for Windows from Linux
python3 NimPlant.py compile -o exe --crosscompile
# Docker server setup
docker run --rm -it -p 80:80 -p 443:443 -p 127.0.0.1:31337:31337 -v ${PWD}:/nimplant -e "TZ=Europe/Amsterdam" chvancooten/nimplant:latest server
# Building the frontend (if modifications are needed)
cd ui
npm install
python3 build-ui.py