BadfingerD Source

BadfingerD is a simple program, written and tested on Linux systems. It should be portable to lots of other platforms as well, though it may need some adjustment.

All it does is listen for a TCP connection (on port 79 by default). When it receives a connection, it ignores input sent by the client. Instead, it executes a shell command and redirects the output back over the TCP connection. ...and that's it. It can be useful for polling in-home devices such as file servers, or re-flashed 802.11 access points or such-like.

The BadfingerD source code is avaible from GitHub.

To compile:
cc -o badfingerd badfingerd.c
For help:
badfingerd -h

That's all there is to it.