alauda / honeypot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Attentions: 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.

About

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 90.6%Language:Dockerfile 9.4%