Back to projects

Icarus v1

October 7, 2024 archived

A Command and Control server and his agent written in RustπŸ¦€!

Features

  • πŸ‘¨β€πŸ’» AES-256 encrypted traffic
  • πŸ”ƒ Agent auto update
  • 🀠 Agent persistence
  • πŸ“” Task Queuing

Installation

Pre-requisites

Have Rust installed on your machine. You can install it by following the instructions on the official website.

Clone the repository

git clone https://github.com/Code-Barru/icarus.git
cd icarus

Change the Server addr in setup/main.rs.

Build the project

cargo build --release

Launch the database

docker-compose up -d

Setup environment variables

export DATABASE_URL=postgres://icarus:icarus@localhost/icarus
export RSA_PRIVATE_KEY_PATH=path/to/private_key.pem # Optional, default is private_key.pem
export RUST_LOG={info,debug,error,trace} # Optional, default is info

Can also be set in a .env file.

Apply the migrations

cd server
diesel migration run

Create server distribution folder && copy binaries

mkdir dist
cp ../target/release/agent.exe dist/
cp ../target/release/setup.exe dist/

Launch the server

cargo run -p server --release

You now just have to upload β€œsetup” to the target !