UDP port knocking suite with HMAC-PSK authentication.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
pyknock.py
pyknockd.py

README.md

pyknock Build status

UDP port knocking suite with HMAC-PSK authentication.

Requirements

Only Python 2.6+ or 3.3+ required.

Installation

Place file anywhere you want and run.

Usage

Server example:

./pyknockd.py MySecretPSK 'ipset add -exist myallowedset $ip timeout 3600' 'ipset del -exist myallowedset $ip'

Client example:

./pyknock.py open my-protected-host.com MySecretPSK

Client behind NAT example:

./pyknock.py -S $(curl -s https://canihazip.com/s) open my-protected-host.com MySecretPSK

See help for more options.