Date: Fri, 18 Jun 2004 18:16:46 +0400 From: Alexey Karguine <bm@netmaster.ru> To: freebsd-security@freebsd.org Subject: Re: nmap not scanning networks? Message-ID: <20040618181646.6468ba8f.bm@netmaster.ru> In-Reply-To: <40D093CE.6020603@mac.com> References: <20040616220533.2ec0bc9c@tarkhil.over.ru> <40D093CE.6020603@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 Jun 2004 14:39:10 -0400 Chuck Swiger <cswiger@mac.com> wrote: > Alex Povolotsky wrote: > > Attempt to scan a network with any method except plain ping results in an error: > > truss nmap -sT -p 21 '172.19.17.*' > I can confirm the problem, anyway, although I'm not sure it's germane to > freebsd-security. :-) > > [...] > > sendto(0x4,0x8094200,0,0x0,{ AF_INET 172.19.17.0:0 },0x10) ERR#49 'Can't assign > > requested address' > > [...] > > What's strange that man on send(2) doesn't state that EADDRNOTAVAIL can ever be returned from sendto(). > nmap interprets the wildcard character in a network address to include the > all-zeros "base network address" and the all-ones "network broadcast address". > I seem to recall that some systems won't let you send traffic to the > all-zeros address which might explain the EADDRNOTAVAIL, although my > explanation is not entirely satisfactory as there are still problems: > Consider trying "nmap -sT -p 21 '172.19.17.1-255'", only it results in similar > behavior: > # nmap -sT -p 21 '10.1.1.1-10' > Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-06-16 14:29 EDT > sendto in send_ip_raw: sendto(4, packet, 28, 0, 10.1.1.1, 16) => Can't assign > requested address > Sleeping 15 seconds then retrying Try the 'su' command to became root. May be it helps you. --bm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040618181646.6468ba8f.bm>