in reply to banner grabbing

It's quite logical that you have to place the $sock->print() outside of the while loop for two reasons:

Replies are listed 'Best First'.
Re: Re: banner grabbing
by semio (Friar) on Oct 04, 2002 at 18:18 UTC
    Hi Jaap

    It's quite logical that you have to place the $sock->print() outside of the while loop

    If you try this, I think you'll see that banners will not be returned for ports 21 or 22. This was the basis for my original question, e.g. why I'm seeing different behavior on a port by port basis based on where I place the $sock->print() statement. Thanks for the feedback though.

    cheers, -semio