SSH tarpit that slowly sends an endless banner
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ssh_tarpit-0.4.1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for ssh_tarpit-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d490c829865c8a2f01d3a6c7cddf84fff7cca30e15d240229c1a57c5b39747 |
|
MD5 | ff8931ae9a4e84b6a2767997fe67ddf3 |
|
BLAKE2b-256 | 3ff008e13ca254f522c43b340a857966f2b2949219574acb66bf6e8ba46befa6 |