This repository provides you simple gRPC server that scans given targets ports with nmap-vulners.
You must have nmap vulners.nse script installed (Click).
- Add environment variables or add
.env
file.
Example.env
content:NETWORK="tcp" ADDRESS="127.0.0.1:8080"
- Run
go mod download
to install all dependecies - Run
go build ./cmd/server/...
to build server binary file - Run file that you just built (
./server
)
- Install Evans
- Run
evans api/vulners.proto -p 8080
from project directory - Type
call CheckVuln
and write targets & ports (To stop target or ports input - pressCTRL+D
)
make protoc-gen
make build
./server
test_target:
87.249.43.21
test_ports:22,
make build-cli
./cli TARGET PORTS
make lint
make test
make coverage