ssh-tarpit
SSH tarpit that slowly sends an endless banner. Original idea by Chris Wellons. This is Python 3 implementation focused on safety and correctness.
Requirements
- Python 3.5.3+
Installation
From PyPI
Standard Python package installation. This package is available on PyPI:
pip3 install ssh-tarpit
From source
Run within source directory:
pip3 install .
Docker
Run:
docker run -d \
--security-opt no-new-privileges \
-p 22:2222 \
--restart unless-stopped \
--name ssh-tarpit \
yarmak/ssh-tarpit
Usage
Synopsis:
$ ssh-tarpit --help
usage: ssh-tarpit [-h] [--disable-uvloop] [-v {debug,info,warn,error,fatal}]
[-i INTERVAL] [-f [LOGFILE [LOGFILE ...]]] [-a BIND_ADDRESS]
[-p BIND_PORT] [-D]
SSH tarpit that slowly sends an endless banner
optional arguments:
-h, --help show this help message and exit
--disable-uvloop do not use uvloop even if it is available (default:
False)
-v {debug,info,warn,error,fatal}, --verbosity {debug,info,warn,error,fatal}
logging verbosity (default: info)
-i INTERVAL, --interval INTERVAL
interval between writes in seconds (default: 2.0)
-f [LOGFILE [LOGFILE ...]], --logfile [LOGFILE [LOGFILE ...]]
file(s) to log to. Empty string argument represents
stderr. Flag without arguments disables logging
completely. Default is stderr only. (default: [''])
listen options:
-a BIND_ADDRESS, --bind-address BIND_ADDRESS
bind address (default: 127.0.0.1)
-p BIND_PORT, --bind-port BIND_PORT
bind port (default: 2222)
-D, --dualstack force dualstack socket mode. Sets socket IPV6_V6ONLY
option to 0 (default: False)
Metadata
Release files for ssh-tarpit 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ssh_tarpit-0.4.2.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ssh_tarpit-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / ssh_tarpit-0.4.2.tar.gz
| Download URL | ssh_tarpit-0.4.2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55b1e431d3bec0b74584506828241deefd8e5ff7cf03b7dc0b72eb9c36cde605
|
|
BLAKE2b-256 checksum How to use checksums |
54631c05389b6d952cf20a8d2659c05684821f254ab2b0c2005c2d352bf63b53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / ssh_tarpit-0.4.2-py3-none-any.whl
| Download URL | ssh_tarpit-0.4.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
799c4d9d0c2d41705015445e6c2200fb556772b3f1d092c117c8ceba74b93b30
|
|
BLAKE2b-256 checksum How to use checksums |
9e36c4271c8d660c57cf58ca59a044f0374f1325b2f7eef1a965685688fff337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|