Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fzerorubigd/go0r
A simple ssh honeypot in golang
https://github.com/fzerorubigd/go0r
Last synced: 2 months ago
JSON representation
A simple ssh honeypot in golang
- Host: GitHub
- URL: https://github.com/fzerorubigd/go0r
- Owner: fzerorubigd
- Created: 2014-12-11T22:03:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-07T14:01:48.000Z (over 9 years ago)
- Last Synced: 2024-08-04T23:10:05.559Z (4 months ago)
- Language: Go
- Homepage:
- Size: 106 KB
- Stars: 34
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-honeypot - **31**星
README
# Simple ssh honypot in Golang
A simple, around 100 line of code, ssh honeypot written in golang.
## The name
Its base on persian proverb "گریه کردن بر روی گور بدون مرده " (cry over the empty grave) and the word goor (گور means the Grave in persian).## How to use it
This is the (wrong) steps :```bash
go get -u -v github.com/fzerorubigd/go0r
# config folder could be $HOME/.config/go0r or /etc/go0r or ./config
CONFIG_FOLDER=/etc/go0r
# create a host key, password and anything is not important at all! just hit enter
ssh-keygen -f $CONFIG_FOLDER/host_key
# go0r port to use, normally :22 :) must run with sudo in that case, and do not forget :
echo "port=\":22\"" > $CONFIG_FOLDER/config.toml
# address of host key we create in secound step
echo "host_key=\"$CONFIG_FOLDER/host_key\"" >> $CONFIG_FOLDER/config.toml
# run the application!
$GOPATH/bin/go0r
```And then try to login into ssh server on "port" and watch the output :)
Also, you can use GOOR_PORT , GOOR_HOST_KEY environment variables to set the config values.## Note
Running this as root is dangerous. run it as nobody, on some port > 1024, then use iptable to redirect traffic from
port 22 to this app port.