Skip to content

Commit

Permalink
Adding README.md for examples/ssh-brute-force.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermodotn committed Jun 24, 2024
1 parent 692da6c commit c6009d7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions examples/ssh-brute-force/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SSH brute force

Example to so how to collect the flows during a SSH brute force attack with [DOROTHEA](../../README.md) & [hydra](https://github.com/vanhauser-thc/thc-hydra).


## Usage guide

First create the resources specified in the compose file with out starting the container with the following command:
```bash
$ docker compose up --no-start
```
This step is needed for docker compose to create the network interface that we will use to listen on.
The interface will be named in the form `br-5d02e59b9a78`, we will need to find the newly created adapter and substitude it on (dorothea-pmacctd.conf) under the field (**cap_interface:**)

> This docker virtual network is needed since the default bridge adapter **docker0** does not support domain name resolution.
> Or own created docker virtual network will support it allowing us to address the containers by the hostnames.
### Find network interface name

```bash
$ ip a
```
If you are not sure which one is the right network interface, you can make user of the command:
```bash
$ docker network ls
```

## Start lab
```bash
$ docker compose up
```

## Stop lab
```bash
$ docker compose down
```

0 comments on commit c6009d7

Please sign in to comment.