News for hackers. Stuff that matters.
Re:Knockknock: Simple, secure, and stealthy port knocking im... by ranger_danger on Tuesday August 27, 2024 @08:40PM (#41374879)
this is from 2012, must be run as root, uses python 2, and requires "hping3"
Re:Knockknock: Simple, secure, and stealthy port knocking im... by gawa on Wednesday August 28, 2024 @06:46AM (#41378102)
It also works only with iptables. And because it's from 2012, it's watching the file /var/log/kern.log [0], which was a simple way to monitor for incoming packets in 2012, but will not work anymore with systemd based distributions nowadays, since all logs are binary and thus accessible through an util such as journalctl.

Someone opened a PR to address this [1]. It tries to keep it simple in the spirit of the tool, but it adds another dependency (a systemd python module).

I like it overall. The code is so small and simple, it's easy to adapt and to keep small anyway, whatever distro and firewall one might end up use it with.

[0] https://github.com/moxie0/knockknock/blob/bf14bbffc5f1d2105c... [1] https://github.com/moxie0/knockknock/pull/7