mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-01 22:28:20 +00:00
Add Docker documentation in README
This commit is contained in:
parent
9f67e3ca18
commit
bc8fbaaf99
1 changed files with 25 additions and 0 deletions
25
README.md
25
README.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue