I wrote such a program back in the mid 80's
before the "blast" era. It's in C.
I haven't thought mouch about it since there are
so many net tools around these days but if it
would be useful, I can dig it our and post it.