Giter Club home page Giter Club logo

pghoney's Introduction

pghoney

A simple Postgres honey pot inspired by Elastichoney

Getting Started

To install dependencies go get ./...

To run pghoney (default is 127.0.0.1:5432) go run *.go

To see the cli help output: go run *.go -h

Initial Release TODO:

  • Create deploy script within fflemming's fork of mhn

TODO's

  • Support SSL
  • Write integration tests using nmap + psql
  • Write integration tests using github.com/lib/pq
  • Support proper error for "cancelling" a query (12345678, very similar to SSL request)
  • Don't hardcode the md5 salt
  • Support mechanism for saving passwords in a seperate database.

pghoney's People

Contributors

ajvb avatar ffleming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pghoney's Issues

document example usage

for example, you can start a broker, start pg honey and listen to it:

# pip install hpfeeds[broker]
# https://github.com/hpfeeds/hpfeeds
HPFEEDS_ABC123_SECRET=def567 \
HPFEEDS_ABC123_PUBCHANS=pghoney.events \
HPFEEDS_ABC123_SUBCHANS=pghoney.events \
hpfeeds-broker --auth env --endpoint tcp:port=10000

# in a new terminal
git clone [email protected]:betheroot/pghoney.git && cd pghoney
go mod init github.com/betheroot/pghoney
grep -nr Siru | awk -F: ' { print $1 } ' | xargs -n1 sed -i 's#github.com/Sirupsen/logrus#github.com/sirupsen/logrus#'
go mod tidy
go build
cp pghoney.conf{.sample,}
./pghoney

# in a new terminal
nc localhost 5432

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.