Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopot

An SSH honeypot written in Go.

gopot listens for incoming SSH connections and presents attackers with a fake interactive shell, logging every session and command to a SQLite database for later analysis. It blends in as a real Linux system spoofing a custom OS version string, serving a realistic MOTD, and responding to common shell commands while silently recording the IP address, SSH client version, and full command history of anyone who connects.

Build & run

Build and generate the host key once:

go build -o bin/gopot ./cmd/gopot/main.go
ssh-keygen -t ed25519 -f host_key -N ""

Then run:

./bin/gopot

Listens on port 2223 by default. Edit gopot.toml to configure the server and shell.

Production deployment

In order to deploy gopot in production, follow this tutorial.

License

Apache 2.0

About

Custom honeypot for my homelab.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages