tchivert 0f666c102f
build / build (push) Successful in 7m39s
ipv6 fixes
2024-04-06 23:20:26 +02:00
2023-07-16 01:46:28 +02:00
2023-01-06 19:58:42 +01:00
2023-01-06 19:58:42 +01:00
2023-06-30 15:43:17 +02:00
2024-04-06 02:27:00 +02:00
2024-04-06 23:20:26 +02:00

SSH-Tarpit

SSH honeypot capable of reading GeoIP databases and to output the informations in a SQLite or MySQL database. It can also be used as a tarpit to block hackers for some time.

Deployment

SQLite

Change user/pass and port if needed in the docker-compose.yml, create the database file, and then start the container:

  git clone https://git.rznet.fr/razian/ssh-tarpit.git
  cd ssh-tarpit
  vim docker-compose.yml
  touch logs.db
  docker-compose up -d

MySQL

Same as SQLite, but using the docker-compose-mysql.yml file:

  git clone https://git.rznet.fr/razian/ssh-tarpit.git
  cd ssh-tarpit
  vim docker-compose-mysql.yml
  docker-compose -f docker-compose-mysql.yml up -d

GeoIP

I use geoipupdate

Usage

Usage of ssh-tarpit:
  --db string
    	Path to SQLite database (default "./logs.db")
  --geoip string
    	Path to GeoIP databases
  --mysql_db string
    	MySQL database (default "sshtarpit")
  --mysql_host string
    	MySQL host (default "localhost")
  --mysql_pass string
    	MySQL password
  --mysql_port string
    	MySQL port (default "3306")
  --mysql_user string
    	MySQL username
  --port string
    	Port to listen on (default "2222")
  --tarpit
    	Tarpit connections (default "false")
Description
Simple SSH honeypot with GeoIP and SQLite/MySQL output
https://grafana.rznet.fr/public-dashboards/775cca2a61834340b9ca5b40d2235b71
Readme MIT 38 KiB
Languages
Go 94.7%
Dockerfile 5.3%