Nmap Development mailing list archives

Nmap scanning error on WinXP


From: "Destroyer" <destroyer.ru () rambler ru>
Date: Mon, 14 Jul 2008 23:32:09 +0400

Hallo.
I need to scan my local network. The address of my network interface is  172.16.3.35 , mask 255.255.252.0

My ipconfig:

//////////// ip config ///////////

Homenet - Ethernet adapter:

   DNS-suffix . . :
   IP  . . . . . . . . . . . . : 192.168.10.4
   Mask of subnet . . . . . . . . . . : 255.255.255.0
   Gateway . . . . . . . . . . :

Kerio VPN - Ethernet adapter:

   DNS-suffix . . :
   IP  . . . . . . . . . . . . : 169.254.56.21
   Mask of subnet . . . . . . . . . . : 255.255.255.0
   Gateway . . . . . . . . . . :

LAN  - Ethernet adapter:

   DNS-suffix. . :
   IP-?????  . . . . . . . . . . . . : 172.16.3.35
   Mask of subnet . . . . . . . . . . : 255.255.252.0
   Gateway. . . . . . . . . . : 172.16.0.255

VPN Internet - PPP adapter:

   DNSsuffix . . :
   IP  . . . . . . . . . . . . : 89.19.166.202
   Mask of subnet . . . . . . . . . . : 255.255.255.255
   Gateway. . . . . . . . . . : 89.19.166.202


/////////// end of ipconfig ///////////
when a try:

nmap -p 21,80,139 -n 172.16.0.0/16

scanning is OK, but when I try

nmap -p 21,80,139 -n 172.17.0.0/16

or any other, not 172.16.x.x, scan fails with error:

////////// log ////////////

C:\>nmap -sS -p 21,80,139 -v -PE -n 172.17.0.0/16 2>&1

Starting Nmap 4.68 ( http://nmap.org ) at 2008-07-14 23:12 │????????? ????  (???
?)
Initiating Ping Scan at 23:12
Scanning 4096 hosts [1 port/host]
pcap_open_live(ppp0, 100, 0, 2) FAILED. Reported error: Error opening adapter: -
?????? ?? ??????  ????? ????????? ??????????. (20).  Will wait 5 seconds then re
try.
pcap_open_live(ppp0, 100, 0, 2) FAILED. Reported error: Error opening adapter: -
?????? ?? ??????  ????? ????????? ??????????. (20).  Will wait 25 seconds then r
etry.
Call to pcap_open_live(ppp0, 100, 0, 2) failed three times. Reported error: Erro
r opening adapter: -?????? ?? ??????  ????? ????????? ??????????. (20)
There are several possible reasons for this, depending on your operating system:

LINUX: If you are getting Socket type not supported, try modprobe af_packet or r
ecompile your kernel with SOCK_PACKET enabled.
*BSD:  If you are getting device not configured, you need to recompile your kern
el with Berkeley Packet Filter support.  If you are getting No such file or dire
ctory, try creating the device (eg cd /dev; MAKEDEV <device>; or use mknod).
*WINDOWS:  Nmap only supports ethernet interfaces on Windows for most operations
 because Microsoft disabled raw sockets as of Windows XP SP2.  Depending on the
reason for this error, it is possible that the --unprivileged command-line argum
ent will help.
SOLARIS:  If you are trying to scan localhost and getting '/dev/lo0: No such fil
e or directory', complain to Sun.  I don't think Solaris can support advanced lo
calhost scans.  You can probably use "-PN -sT localhost" though.


QUITTING!

/////// end of log ////////

So a figured out that nmap is able to scan 172.17.x.x without "-PE" parameter and with "-unprivileged" parameter.

But I need the "-PE" parameter and I need to scan 172.17.x.x, 172.15.x.x , 192.168.x.x addresses 

Please help me to solve this problem. Thanks in advance.



_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: