honeypot

command module
v0.0.0-...-9fd0705 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

README

honeypot

Honeypot to capture all request to reverse-engine a client.

It'll write all client request to stdout or a log file.

How to run

Run as host process

$ git clone https://github.com/alauda/honeypot.git && cd honeypot
$ go build
$ ./honeypot -port 12345 -log logs/cap.log

Where parameters:

  • port: server listen port;
  • log: logs will be wrote to this file. If not specified will print out to stdout .

Run in Docker container

$ git clone https://github.com/alauda/honeypot.git && cd honeypot
$ docker build -t honeypot .
$ docker run -d --name=honeypot -p 12345:8080 -v `pwd`/logs/:/honeypot/logs honeypot -log logs/cap.log

Attention: since running in containers, honeypot will listen on port 8080(defined in Dockerfile), so you need not specify it as a command line parameter, you should use Docker's port-mapping to host.

Run in Kubernetes with ko

export KO_DOCKER_REPO=registry/proejct/repo
kubectl create ns honeypot
kustomize build config/default | ko apply -f -

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL