dependencies :
- pkg-config
- libssl-dev
- libclang-dev
- libpq-dev
to do
functions
- get client errors from env
- encrypt keylogger data
- ssl
cleanup / optimisation
- add timestamp for commands result
API
commandes
- le client demande au serv toutes le n secondes si il doit réaliser une action.
Projet université d'automne - Rust
Composants :
- Payload
- Keylogger
- Accès webcam
- Reverse Shell
- Fork bomb
Database :
- Engine : Postgres (Diesel)
- Configuration : in the .env set your db url in the ROCKET_DATABASES variable, you can add several url but dont change the db name
### Docker quick setup :
```
docker pull postgres
docker run --name postgresdb -p 5432:5432 -e POSTGRES_USER=ratmaster -e POSTGRES_PASSWORD=R47M4573R -d postgres
```
### Tables creation & modification
1. modify sql files in sharedlibs/migrations/23-10-08-(...)/ (tables strucures must match models.rs)
2. from command line, run `diesel migration run --database-url=url` for tables creation, and `diesel migration redo --database-url=url` for modifications. (this will delete all db records)
3. if after that rust-analyser is broken run `cargo clean`
docs
- https://github.com/SergioBenitez/Rocket/tree/master/examples https://api.rocket.rs/v0.5-rc/rocket_sync_db_pools/example/struct.ExampleDb.html https://github.com/diesel-rs/diesel/blob/master/diesel_tests/tests/custom_types.rs
- https://rust-lang.github.io/async-book/01_getting_started/03_state_of_async_rust.html
- https://itsallaboutthebit.com/arc-mutex/