Very Short Knock Client Bash Script

All clients I saw were a bit too elaborate. So I wrote this one which only needs four lines and could do with less:

#!/bin/bash
target=$1; shift
echo knock $target with knock $*
for i in $*; do
echo > /dev/udp/$target/$i;
done

No comments:

Post a Comment

I appreciate comments. And I do read them.