kesshabot

command module
v0.0.0-...-87d54d0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 11 Imported by: 0

README

Ke$$ha BOT

Go Report Card Build Status

Ke$$ha bot is a SSH honeybot. It is designed to tweet everytime someone maliciously attempts to access SSH on your server.

Building

We bundled dependencies with godeps. You can use:

godep go build -o kesshad main.go

Usage

For twitter access, please export your Twitter variables:

TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_SECRET

Security

Note: Don't run this on port 22 directly as root. That would be dumb.

Run this as an unpriviled user on a port > 1024 and use IP tables to redirect the port:

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 22 -j REDIRECT --to-port 2022

Of course, change to your variables accordingly.

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