/redis-honeypot

Redis server

Primary LanguageGoMIT LicenseMIT

Beehive Redis

Beehive Redis is a honeypot which is a Redis server written in Golang.

Some Redis commands are implemented. (e.g. COMMAND, KEYS, GET and so on)

beehive-redis help
NAME:
   Redis server of Beehive honeypot series - TCP server which communicate in Redis protocol.

USAGE:
    [global options] command [command options] [arguments...]

COMMANDS:
   version  Show version
   run      Start tcp server
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

Get started

  1. Get a linux binary from Releases

  2. Make a config file like below.

port: 6379
mysql:
  host: 127.0.0.1
  user: beehive
  password: beehive
  db: beehive
  1. start a Redis server.
beehive-redis run --config config.yaml
2022/02/20 09:17:27 starting Beehive Redis server ...

Development

  • Install
brew install go
brew install docker
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
brew install goreleaser/tap/goreleaser
  • Start MySQL and Redis
docker compose up -d
  • Run main.go
air