Nmap Development mailing list archives
Re: nmap -sT localhost showing ephemeral ports?
From: Daniel Miller <bonsaiviking () gmail com>
Date: Fri, 14 Feb 2014 11:21:26 -0600
On 02/08/2014 05:33 PM, Kris Katterjohn wrote:
I think the attached patch detects and fixes this. It seems to work on my Linux system, and I think I haven't used any non-portable calls. I'd appreciate testing.On 02/08/2014 04:09 PM, Jacek Wielemborek wrote: ========================================= 20:17:03 bonsaiviking $ <ketilmore6> turns out the nmap -p 1-65000 was finding open ports by accident because source port sometimes was equal to destination port. (birthday paradox) 20:17:07 bonsaiviking $ wtf 20:18:58 bonsaiviking $ confirmed on svn r32703 20:19:31 bonsaiviking $ but only with -sT ========================================= What do you think about it? I didn't feel like reading the IRC log, but this seems reasonable enough... I fixed this problem in raw scans a long time ago[1] (r4368). I'm interested to know how many operating systems do this with connect(). How many different systems have been tested?
Dan
Attachment:
self-connect.diff
Description:
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- nmap -sT localhost showing ephemeral ports? Jacek Wielemborek (Feb 08)
- Re: nmap -sT localhost showing ephemeral ports? Kris Katterjohn (Feb 08)
- Re: nmap -sT localhost showing ephemeral ports? Daniel Miller (Feb 08)
- Re: nmap -sT localhost showing ephemeral ports? Daniel Miller (Feb 14)
- Re: nmap -sT localhost showing ephemeral ports? Daniel Miller (Feb 14)
- Re: nmap -sT localhost showing ephemeral ports? Daniel Miller (Feb 15)
- Re: nmap -sT localhost showing ephemeral ports? Kris Katterjohn (Feb 08)
- Re: nmap -sT localhost showing ephemeral ports? Fyodor (Feb 12)
- Re: nmap -sT localhost showing ephemeral ports? Robin Wood (Feb 12)
- Re: nmap -sT localhost showing ephemeral ports? Fyodor (Feb 13)
- Re: nmap -sT localhost showing ephemeral ports? Robin Wood (Feb 12)