GNOME Bugzilla – Bug 467467
port scan misses some known open ports
Last modified: 2007-08-20 13:57:08 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gnome-nettool/+bug/38684 "the port scan of a machine known to have three open ports returns with only 1 listed open ports. nmpafe confirms that there are three open ports. Network Utils in OS X also confirms there are 3 open ports. the missed ports #s are 9100 and 10000. Should there be preferences for choosing how thoroughly one wishes to scan? What range of port #'s to scan? ..."
Yes, please. It seems kind of arbitrary to scan just ports up to 7000 - obviously there are lots of important ones with a higher number. This could be fixed with either: A. a higher value in the source code (say 32000 or even up to the last port, around 65000), and the user could stop it with the STOP button. B. a field could be added on the port scan GUI panel, allowing the user to enter the upper limit of the port # to be scanned, with a default value of about 65000. Thanks for your efforts to improve Gnome and its tools. :^) Fix A would be the simplest.
Confirming this feature request. 65535 is the higher value that could be set. Probably, a checkbutton could be enough. 'Full scan' (unchecked by default?) and a tooltip showing that by default it will be 7000 (or any other number).
Awesome. For comparison/reference, in OS X (for instance) the comparable port-scan tool does a full (65535) scan, w/ the option : <checkbox> only test ports between <field1-start> and <field2-stop> . This would be a more complicated fix (branching on condition that the box is checked, etc.). :^) Any chance to be able to test all ports would be a welcome improvement on an already very good piece of software.
Not really complicated to fix. The complicate thing is having a simple tool :-)
Hi German, Since I am working in Gentoo & made an overlay for the problem, fetched & unpacked the source, changed 7000 to 65535 in */src/scan.c ,and after compile, install & qmerge I got good results... the simple fix works as expected. AFAIK, my Airport BaseStation Extreme has only three ports open, and it found them all - even the 2 that are above 7000. Attached is screenshot. It did take it quite a while, but that is perhaps to be expected. ;^)
Created attachment 93963 [details] screenshot of success - higher ports found - will post after wiping IP#s.
Comment on attachment 93963 [details] screenshot of success - higher ports found - will post after wiping IP#s. ><HTML><BODY><IMG width="612" src="http://bugzilla.gnome.org/attachment.cgi?id=93962" alt="http://bugzilla.gnome.org/attachment.cgi?id=93962" style="cursor: -moz-zoom-in;"/></BODY></HTML>
I made the quick fix, changing end_port to 65535. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.