Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

1.5 KB
Raw Blame

Setup

$ docker run --name bhr_ch11_postgres -d -e POSTGRES_PASSWORD=black_hat_rust -e POSTGRES_USER=ch11 -p 5432:5432 postgres:13
$ cp env.example .env

In shell 1

$ cargo run -p server

In shell 2

$ cargo run -p agent

In shell 3

$ cargo run -p client -- agents
+--------------------------------------+--------------------------------+--------------------------------+----------------------------------------------+----------------------------------------------+
| Agent ID                             | Created At                     | Last Seen At                   | Identity Public Key                          | Public Prekey                                |
+--------------------------------------+--------------------------------+--------------------------------+----------------------------------------------+----------------------------------------------+
| eeeb0586-d55c-4086-b9cd-55aae794bab2 | 2021-05-19 10:37:22.135356 UTC | 2021-05-19 13:25:10.890342 UTC | ttL7sPbyuyEmZ12E7JrD47BcMe2WLnnHP0DJufmVIAY= | G7l4VXnB1/aXKrAa9soyDkbUKr1xa+ldX+EjaINj5wY= |
+--------------------------------------+--------------------------------+--------------------------------+----------------------------------------------+----------------------------------------------+
$ cargo run -p client -- exec -a eeeb0586-d55c-4086-b9cd-55aae794bab2 ls
Cargo.lock
Cargo.toml
Dockerfile
Makefile
README.md
agent
client
common
env.example
server
target

Warning

Don't commit your private keys as in this example ;)