LWN: Comments on "Nmap 5.00 released" https://lwn.net/Articles/341648/ This is a special feed containing comments posted to the individual LWN article titled "Nmap 5.00 released". en-us Thu, 16 Oct 2025 17:24:16 +0000 Thu, 16 Oct 2025 17:24:16 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Nmap 5.00 released https://lwn.net/Articles/342547/ https://lwn.net/Articles/342547/ tialaramex <div class="FormattedComment"> and so netcat has a flag to set this socket option. I'm happy with that. What I was reacting adversely to was the suggestion that keepalive should be the default.<br> </div> Tue, 21 Jul 2009 09:49:30 +0000 Nmap 5.00 released https://lwn.net/Articles/342172/ https://lwn.net/Articles/342172/ dankamongmen <div class="FormattedComment"> bounded LRU, buddy<br> </div> Sun, 19 Jul 2009 09:21:45 +0000 Nmap 5.00 released https://lwn.net/Articles/342045/ https://lwn.net/Articles/342045/ dankamongmen <div class="FormattedComment"> i think you're right. embarrassing!<br> </div> Sat, 18 Jul 2009 06:54:23 +0000 Nmap 5.00 released https://lwn.net/Articles/342038/ https://lwn.net/Articles/342038/ speedster1 &gt;&gt; The <b><i>feature of socat</i></b> I most often use that's lacking in nc(at) is <b>AF_UNIX support</b>. <p> &gt;Would someone really have written socat(1) and not taken the time to include PF_UNIX? <p> I think you read that backwards -- the parent poster was actually applauding AF_UNIX support as a great socat feature. Sat, 18 Jul 2009 05:11:49 +0000 Nmap 5.00 released https://lwn.net/Articles/341961/ https://lwn.net/Articles/341961/ dankamongmen <div class="FormattedComment"> GOPEN:&lt;filename&gt;<br> (Generic open) This address type tries to handle any file system<br> entry except directories usefully. &lt;filename&gt; may be a relative<br> or absolute path. If it already exists, its type is checked. In<br> case of a UNIX domain socket, socat connects; if connecting<br> fails, socat assumes a datagram socket and uses sendto() calls.<br> If the entry is not a socket, socat opens it applying the<br> O_APPEND flag. If it does not exist, it is opened with flag<br> O_CREAT as a regular file (example).<br> Option groups: FD,REG,SOCKET,NAMED,OPEN<br> See also: OPEN, CREATE, UNIX-CONNECT<br> <p> Furthermore, SOCKET-* are fully generic on the socket(2) system call (they accept three params, for a domain, protocol, and local address.<br> <p> Would someone really have written socat(1) and not taken the time to include PF_UNIX?<br> <p> </div> Fri, 17 Jul 2009 20:40:42 +0000 Nmap 5.00 released https://lwn.net/Articles/341925/ https://lwn.net/Articles/341925/ quotemstr <div class="FormattedComment"> socat is nice (aside from the massive set of options). The feature of socat I most often use that's lacking in nc(at) is &lt;b&gt;AF_UNIX support&lt;/b&gt;. <br> </div> Fri, 17 Jul 2009 18:20:33 +0000 Nmap 5.00 released https://lwn.net/Articles/341910/ https://lwn.net/Articles/341910/ dlang <div class="FormattedComment"> if firewalls (including NAT devices) didn't drop info about the connection after some period of inactivity you would have the equivalent of a memory leak because a system crash or reboot would leave the device 'tracking' a connection that the endpoint no longer knows about, and will never close.<br> <p> routers and firewalls don't have infinite resources, so if you never timeout 'idle' connections you will eventually crash instead and take out everything <br> </div> Fri, 17 Jul 2009 17:30:19 +0000 Nmap 5.00 released https://lwn.net/Articles/341833/ https://lwn.net/Articles/341833/ foom I dearly wish the majority of NAT gateways and firewalls out there didn't drop TCP connections after 10 minutes of inactivity. But they do. It sucks, yes. But that's what's out there... <p> My home NAT (linksys) did this. (until I replaced it with a linux box). And a non-natting firewall (Cisco, I think) at my workplace does this between certain internal networks! <p> I'm sure glad you have a non-broken network, but a great many people don't. Fri, 17 Jul 2009 15:05:36 +0000 Nmap 5.00 released https://lwn.net/Articles/341761/ https://lwn.net/Articles/341761/ nix <div class="FormattedComment"> Oh, there's nothing wrong with socat's documentation. It's just that if you print the manpage out it's 40 pages long. It has *so many* options that trying to find the one you want is quite painful, even though they're all fairly regular. The options had to be classified along multiple dimensions to make sense of them...<br> <p> (I picked Emacs for a reason: it too has excellent documentation and is huge.)<br> </div> Fri, 17 Jul 2009 10:35:58 +0000 Nmap 5.00 released https://lwn.net/Articles/341753/ https://lwn.net/Articles/341753/ tzafrir <div class="FormattedComment"> netcat and similar tools are one of those things that should also be usable on broken networks, if possible.<br> </div> Fri, 17 Jul 2009 09:08:44 +0000 Nmap 5.00 released https://lwn.net/Articles/341750/ https://lwn.net/Articles/341750/ fyodor <div class="FormattedComment"> For IPv6 we support TCP scanning (connect()-style), host discovery (connect) style), version detection, and NSE in Nmap. So you have the basics. Also, pretty much every part of Ncat should support IPv6 (there might be some aspects which don't due to lack of testing, but we'd consider that a bug to be quickly fixed). Ndiff supports IPv6 too.<br> <p> However, Nmap cannot do the raw packet IPv6 stuff, such as UDP scan or the raw-packet TCP port scans (SYN, FIN, etc.) or raw packet host discovery modes. I agree that it would be great to add that functionality, and we're always looking for volunteers!<br> </div> Fri, 17 Jul 2009 08:38:17 +0000 Nmap 5.00 released https://lwn.net/Articles/341748/ https://lwn.net/Articles/341748/ tialaramex <div class="FormattedComment"> On the SO_KEEPALIVE issue, some of us don't have broken networks, and the constant pressure to give in and put every node on the Internet the other side of two layers of amateur hour NAT and have it only ever sort-of work with HTTP and nothing else is exactly the sort of thing that gives us a headache.<br> <p> One of the things we should have learned from the "browser wars" era web experience is that meekly going along with whatever craziness is currently dominant doesn't get you progress, just more pain. The standard says your TCP connection doesn't need keep alive packets, so there's no reason to send them by default.<br> <p> More practically, if I have a quiescent connection, and I pull the rug out from under it, then put the rug back before using it, I expect it not to notice. With SO_KEEPALIVE the OS will notice and drop the connection. So forcing SO_KEEPALIVE throws away a feature I use. No thanks.<br> </div> Fri, 17 Jul 2009 08:26:03 +0000 Nmap 5.00 released https://lwn.net/Articles/341743/ https://lwn.net/Articles/341743/ arekm <div class="FormattedComment"> Very incomplete IPv6 support, well.. There always will be 6.00 and others.<br> </div> Fri, 17 Jul 2009 07:28:14 +0000 Nmap 5.00 released https://lwn.net/Articles/341709/ https://lwn.net/Articles/341709/ drag <div class="FormattedComment"> Ya...<br> <p> I find quite a large number of what should be very good and high quality open source projects that are just utterly and completely useless do to shitty, out of date, or non-existent documentation.<br> <p> Just a rant. A side note.<br> <p> Just a reminder to myself a others.. the quality of your documentation is more important then the quality of your code.<br> </div> Thu, 16 Jul 2009 23:09:21 +0000 Nmap 5.00 released https://lwn.net/Articles/341706/ https://lwn.net/Articles/341706/ foom Hm, two things I use that seems to be missing in ncat vs. the nc available on debian: <p> <pre> -q secs quit after EOF on stdin and delay of secs -k set keepalive option on socket </pre> <p> The -q argument is somewhat like ncat's --send-only, except that it allows receiving data too, as long as you haven't closed stdin yet. I use that one a fair bit. Generally as -q0. I want the client to be able to send and receive data, but to be in control of closing the connection. The -k option is pretty self-explanatory -- it's useful when you're going through firewalls. Although really, I don't know why SO_KEEPALIVE isn't just on <em>by default</em> in the network stack with a timeout of 8 minutes, these days... Thu, 16 Jul 2009 22:58:40 +0000 Nmap 5.00 released https://lwn.net/Articles/341701/ https://lwn.net/Articles/341701/ fyodor Good question. I have always loved Hobbit's original netcat, but it hasn't been maintained in more than a decade and it is missing modern features. Our <a href="http://nmap.org/ncat/">Ncat</a> is cross-platform (even us Linux devotees need to use or debug something on Windows or Mac once in a while) and offers things like SSL encryption, IPv6, a neat "connection brokering" feature for connecting machines behind NAT gateways, socks/http proxy (and proxy chaining) support, and many other goodies. We wrote a details <a href="http://nmap.org/ncat/guide/index.html">Ncat Users' Guide</a> detailing common tasks that are easier with Ncat. Thu, 16 Jul 2009 22:10:36 +0000 Nmap 5.00 released https://lwn.net/Articles/341697/ https://lwn.net/Articles/341697/ nix <div class="FormattedComment"> A short and comprehensible manpage? A set of options short enough that <br> people learning it don't die of starvation before they're finished?<br> <p> socat is amazing, but it's pretty much the Emacs of netcats.<br> <p> </div> Thu, 16 Jul 2009 20:53:06 +0000 Nmap 5.00 released https://lwn.net/Articles/341694/ https://lwn.net/Articles/341694/ nix <div class="FormattedComment"> Nice to know that the most significant feature of them all got a major <br> enhancement:<br> <p> 'The compile-time Nmap ASCII dragon is now more ferocious thanks to better <br> teeth alignment.'<br> <p> (On a more serious note, the network topology graphing looks seriously <br> nifty. Can't wait to try it.)<br> </div> Thu, 16 Jul 2009 20:38:44 +0000 Nmap 5.00 released https://lwn.net/Articles/341690/ https://lwn.net/Articles/341690/ chmouel <div class="FormattedComment"> what's the different between this ncat version and the other widely available <br> versions of netcat?<br> </div> Thu, 16 Jul 2009 20:13:56 +0000 Nmap 5.00 released https://lwn.net/Articles/341680/ https://lwn.net/Articles/341680/ dankamongmen <div class="FormattedComment"> Thanks for the (as always) excellent work, Fyodor! ncat sounds a lot like socat -- what was socat missing that ncat brings to the table?<br> <p> <a href="http://www.dest-unreach.org/socat/">http://www.dest-unreach.org/socat/</a><br> </div> Thu, 16 Jul 2009 19:09:00 +0000 Nmap 5.00 released https://lwn.net/Articles/341674/ https://lwn.net/Articles/341674/ fyodor Thanks for mentioning the <a href="http://nmap.org/5/">new release</a>, and I hope my fellow LWN members enjoy it! We've also made <a href="http://nmap.org/5/#changes-zenmap">major improvements</a> to the <a href="http://nmap.org/zenmap/">Zenmap GUI and results viewer</a>. But if I had to pick one thing, I think I'm most excited about <a href="http://nmap.org/ncat/">Ncat</a>. I find myself using it every day now for one thing or another. Thu, 16 Jul 2009 19:06:39 +0000