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
.envfile.
Example.envcontent:NETWORK="tcp" ADDRESS="127.0.0.1:8080" - Run
go mod downloadto 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 8080from project directory - Type
call CheckVulnand write targets & ports (To stop target or ports input - pressCTRL+D)
make protoc-genmake build
./servertest_target:
87.249.43.21test_ports:22,
make build-cli
./cli TARGET PORTSmake lint
make test
make coverage
