beave/sshpot
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Name:
sshpot
Description:
An ssh server that never authenticates. Instead, it logs the username,
password, IP address and time of every login attempt.
Installation:
1. Generate an RSA public key for use by the server:
> ssh-keygen -t rsa
2. Edit config.h to set the desired options. In particular, you must set
RSA_KEYFILE to the path to the public key generated in step one. LOGFILE
must be set to a location where the user running sshpot can write.
3. Compile the software:
> make
# make install (optional, but necessary to listen on ports < 1024.)
Usage:
sshpot [-h]
-h --help Display this usage information.
-l --listen {addr} Listen address; defaults to 0.0.0.0.
-p --port <port> Port to listen on; defaults to 22.
-r --rsa <file> RSA Key file; defaults to ./sshpot.rsa.key.
-L --logfile <file> Output log file; defaults to sshpot_auth.log
-s --syslog Log output to syslog.
-u --user <username> Username to drop privs to; defaults to 'nobody'.
-g --group <group> Group to drop privs to; defaults to 'nogroup'.
-d --daemon Become a daemon.
-t --delay <#> Seconds to delay between auth attempts; default 2s.
-c --chroot <dir> Run in a chroot environment.
-b --banner <banner> SSH Banner; defaults to 'OpenSSH_6.7p1 Debian-5+deb8u3'.
Dependencies:
libssh http://www.libssh.org/