phpKnockClient
Dec 11th, 2009 by paolo
synopsis
knock.php [options] <host> <port[:proto]> [port[:proto]] …
description
A port-knocking client implementation in PHP inspired by the knockd C implementation made by Judd Vinet.
Port knocking is a way of surreptitiously offering services on a server without advertising the fact. By delivering a special sequence of “port knocks”, a user can open up access to a port for his IP only, and close it again when he’s done.
For more information, see the port knocking website or this article that is an introduction to how, using the port-knocking technic, trusted users can manipulate firewall rules to transmit information across closed ports.
download
options
- -u
- make all ports hits use UDP (default is TCP)
- -v
- be verbose
- -h
- Syntax help.
examples
- knocks a server on 192.168.1.13 on four tcp ports: 6754, 8437, 84754, 8845.
$ knock.php 192.168.1.13 6754 8437 84754 8845
- knocks a server on myhost.mydomain.com on five ports using different protocols:
$ knock.php myhost.mydomain.com 3478:tcp 8574:udp 650:udp 3293:udp 77790:tcp
author
Written by Paolo Casarini.
reporting bugs
Report bugs to <paolo@casarini.org>.
copyright
Copyright © 2009 Paolo Casarini - License GPLv2: GNU GPL version 2 or later <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html> - This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

