A network scanner that determines if MySQL is running, and extracts data about it.
To run the service,
- make sure docker is installed on the machine
- install golang if it is not already installed
- run
docker-compose up
to start mysql - run
cd service && go mod tidy
- run
go run main.go
this service defaults to the defaults of localhost:3306
to change host
use export HOST_PORT=5000
as an example
to change ip
use export HOST_IP=5000
as an example
This was tested against mysql in the default configuration provided in the docker-compose provided.
To run in 🐳docker🐳 do the following.
-
make sure you have an active docker or podman installation, and navigate to the base directory of the project and run the following.
-
cd service && docker build -t network-scanner .
-
cd ..
-
docker-compose up &
-
use ls to clear the environment of any docker-compose stuff, or simply open a new terminal and run your now compiled docker container with the next command.
-
docker run --network="host" network-scanner