Add Docker documentation in README

This commit is contained in:
_Frky 2023-08-09 11:13:30 +02:00 committed by GitHub
parent 9f67e3ca18
commit bc8fbaaf99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,8 @@ protocols.
## Try it locally
### On your host
1. Build **masscanned**
```
$ cargo build
@ -74,6 +76,29 @@ $ cargo build
...
```
### In a Docker
1. Install docker:
```
# apt install docker.io
```
1. Build docker container:
```
$ cd masscanned/docker && docker build -t masscanned:test .
```
1. Run docker container:
```
$ docker run --cap-add=NET_ADMIN masscanned:test
```
1. Send packets to **masscanned**
```
# arping 172.17.0.2
# ping 172.17.0.2
# nc -n -v 172.17.0.2 80
# nc -n -v -u 172.17.0.2 80
...
```
## Use it
A good use of **masscanned** is to deploy it on a VPS with one or more public IP addresses.