Nmap Announce mailing list archives

Follow up to nmap stub


From: "rain.forest.puppy" <rfpuppy () iname com>
Date: Wed, 30 Dec 1998 14:42:24 -0600

Hello all,

First I wanted to say thanks to the few individuals who responded
offering web/ftp space.  By mid next week the software (and some
mirrors) should be put into permanent places.

I also wanted to point out a little quicky that hit me once I got the
mail through the list.  Around approximately line 228 you'll find a
(gross) sscanf statement...due to it's length, it tends to wrap. 
However, this wrap can screw things up if you don't fix it (everything
will still compile and work, but you'll see that the stub counts all
ports as UDP ports).

The line should be:

sscanf(line,"%i%20[ ]%20[^ ]%30[ ]%20[^ ]%1024s",
                &tp,s1,s2,s1,s3,s1);

(I split it here in a better location).  The key is that there should be
a single space in each of the brackets.  I've seen versions of it where
the split is in the middle of the last bracket statement ([^ ]), which
screws things up.

Sorry for that, and have a good New Years!
.r.f.p.


Current thread: