首页 > 学技术 > 技术网文 > 网络技术 > 正文

[精彩] 知道mac如何查找ip呢


来源 chinaunix.net 酷勤网整理

如题



 apen 回复于:2005-10-11 09:03:26

查一下ARP表,如果有条件的话可以利用SNMP从交换机和路由器获限ARP表,这样的话整个网络上的ARP表都可以得到。


 Jambo 回复于:2005-10-11 13:02:09

要是在一个局域网里面,还可以装一个sniffer,然后过滤一下,就能得到


 arnon 回复于:2005-10-11 16:17:03

用TCPNetView 就可以了


 快乐玩家 回复于:2005-10-12 10:29:10

引用:原帖由 "apen"]查一下ARP表,如果有条件的话可以利用SNMP从交换机和路由器获限ARP表,这样的话整个网络上的ARP表都可以得到。
 发表:



这个是正解,速度最快

另外,也可以在本地 ping本网段, grep 出相配的记录,或 sniffier  arp广播包,如果是在 gateway,则可以 netstat -rn,直接得到对应表

以上情况,仅限于局域网中


 我爱臭豆腐 回复于:2005-10-12 16:34:30

^_^前一段时间我也遇到这样的一个事情.于是就自己总结了一下.我个人感觉比使用snmp是快一点.这个直接就生成了一个文件.方便快捷:) 
希望能够帮助上楼主.
另外你这个还不算什么.我作的那个人家还要求我将每个机器的网卡在那个交换机的端口上面都要找出来.如果不是我使用这些工具几百个端口我要去查的话非要吐血才行.

http://blog.chinaunix.net/article.php?articleId=48815&blogId=12

nmap 扫描mac地址
最近干的一个工作就是要对出整个数据中心里面的服务器的网卡插在了那个交换机的那个端口上面.
经过总结发现合理使用的snmp和一些工具完全可以省去用手去看的工作.
其中一个最重要的功能是将ip地址和mac的对应表列出来.
所以我就使用了nmap这个工具.正好今天把nmap升级到了最新的版本.

linux : Latest Stable i386 Nmap RPM: nmap-3.93-1.i386.rpm
windows:Nmap 3.90 and later require WinPcap 3.1 or later. Latest stable Nmap command-line zipfile: nmap-3.93-win32.zip


使用的方法:
nmap -sP -PI -PT -on ipandmaclist.txt 192.168.1.0/24
完事后就得到了一个txt文件里面就是ip地址和mac地址.


 :em18:


 dingyi129 回复于:2005-10-12 17:16:29

好哇,很有用!


 我爱臭豆腐 回复于:2005-10-12 17:30:44

引用:原帖由 "dingyi129"]好哇,很有用!
 发表:



大家有兴趣可以试试.至少我感觉还是比较方便的 :em17:


 枫影谁用了 回复于:2005-10-13 08:27:04

引用:原帖由 "我爱臭豆腐" 发表:

nmap 扫描mac地址
最近干的一个工作就是要对出整个数据中心里面的服务器的网卡插在了那个交换机的那个端口上面.
经过总结发现合理使用的snmp和一些工具完全可以省去用手去看的工作.
其中一个最重要的功能是将ip..........




R问一下扫描的结果 在那里??
为何的我是这样的结果?
引用:[yushin@localhost ~]$ nmap -sP -PI -PT -on ipandmaclist.txt 192.168.0.0/24
Warning:  You are not root -- using TCP pingscan rather than ICMP

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-10-13 08:22 CST
Failed to resolve given hostname/IP: ipandmaclist.txt.  Note that you can't use '/mask' AND '[1-4,7,100-]' style IP ranges
Host 192.168.0.1 appears to be up.
Host 192.168.0.3 appears to be up.
Host 192.168.0.10 appears to be up.
Host 192.168.0.21 appears to be up.
Host 192.168.0.22 appears to be up.
Host 192.168.0.50 appears to be up.
Host 192.168.0.51 appears to be up.
Host 192.168.0.55 appears to be up.
Host 192.168.0.97 appears to be up.
Host 192.168.0.100 appears to be up.
Host 192.168.0.178 appears to be up.
Host 192.168.0.222 appears to be up.
Host 192.168.0.228 appears to be up.
Host 192.168.0.234 appears to be up.
Host 192.168.0.236 appears to be up.
Host 192.168.0.239 appears to be up.
Host 192.168.0.240 appears to be up.
Host 192.168.0.247 appears to be up.
Host 192.168.0.251 appears to be up.
Host 192.168.0.253 appears to be up.
Nmap run completed -- 256 IP addresses (20 hosts up) scanned in 14.163 seconds




[color=red]不好意.思....要root用户才行!

可以啦...[/color]


 我爱臭豆腐 回复于:2005-10-13 08:52:51

引用:原帖由 "枫影谁用了"]
 发表:




怎么样啊?好使吧:) :em11:


 我爱臭豆腐 回复于:2005-10-13 08:54:00

另外nmap有新版本了.建议你去升级一个新的.这个软件每次出新的后我马上就去升级:)


 枫影谁用了 回复于:2005-10-13 09:04:21

引用:原帖由 "我爱臭豆腐"]另外nmap有新版本了.建议你去升级一个新的.这个软件每次出新的后我马上就去升级:)
 发表:



可不可以给一个使用手册?最好是中文的..因为英文的话我可以man nmap..

呵呵


 枫影谁用了 回复于:2005-10-13 09:04:52

引用:原帖由 "我爱臭豆腐" 发表:



怎么样啊?好使吧:) :em11:



很好使.... :em02:  :em02:  :em02:  :em02:  :em02:  :em02:


 platinum 回复于:2005-10-13 09:51:01

引用:
[yushin@localhost ~]$ nmap -sP -PI -PT -on ipandmaclist.txt 192.168.0.0/24 
Warning:  You are not root -- using TCP pingscan rather than ICMP 

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-10-13 08:22 CST 
Failed to resolve given hostname/IP: ipandmaclist.txt.  Note that you can't use '/mask' AND '[1-4,7,100-]' style IP ranges 
Host 192.168.0.1 appears to be up. 
Host 192.168.0.3 appears to be up. 
Host 192.168.0.10 appears to be up. 
Host 192.168.0.21 appears to be up. 
Host 192.168.0.22 appears to be up. 
Host 192.168.0.50 appears to be up. 
Host 192.168.0.51 appears to be up. 
Host 192.168.0.55 appears to be up. 
Host 192.168.0.97 appears to be up. 
Host 192.168.0.100 appears to be up. 
Host 192.168.0.178 appears to be up. 
Host 192.168.0.222 appears to be up. 
Host 192.168.0.228 appears to be up. 
Host 192.168.0.234 appears to be up. 
Host 192.168.0.236 appears to be up. 
Host 192.168.0.239 appears to be up. 
Host 192.168.0.240 appears to be up. 
Host 192.168.0.247 appears to be up. 
Host 192.168.0.251 appears to be up. 
Host 192.168.0.253 appears to be up. 
Nmap run completed -- [color=red]256 IP addresses [/color](20 hosts up) scanned in 14.163 seconds 


怎么说扫描了 256 个 IP ?


 我爱臭豆腐 回复于:2005-10-13 09:57:25

引用:原帖由 "枫影谁用了" 发表:


可不可以给一个使用手册?最好是中文的..因为英文的话我可以man nmap..

呵呵



中文的我也没有.nmap的网站上面有一个中文的老版本的说明书如果是你想看的话可以看看.

http://www.insecure.org/nmap/nmap-fingerprinting-article-cn.html

引用:原帖由 "platinum" 发表:

怎么说扫描了 256 个 IP ?



应该是包括了0这个ip地址:)


 platinum 回复于:2005-10-13 10:05:38

0 和 255 不是代表网络地址和广播地址吗?这两个也计算在内一起 scan ?


 枫影谁用了 回复于:2005-10-13 10:14:44

引用:原帖由 "我爱臭豆腐" 发表:


应该是包括了0这个ip地址:)




嘿嘿!看到了!


 西山晴雪 回复于:2005-10-13 10:20:13

引用:原帖由 "我爱臭豆腐" 发表:

nmap 扫描mac地址
最近干的一个工作就是要对出整个数据中心里面的服务器的网卡插在了那个交换机的那个端口上面.
经过总结发现合理使用的snmp和一些工具完全可以省去用手去看的工作.
其中一个最重要的功能是将ip?.........


能具体说说你是如何使用snmp和一些工具来察看网卡和交换机的对应端口呢


 我爱臭豆腐 回复于:2005-10-13 10:48:26

引用:原帖由 "platinum"]0 和 255 不是代表网络地址和广播地址吗?这两个也计算在内一起 scan ?
 发表:



在man里面看到的.但是我个人感觉不是一个太满意的答案.你可以对付看看.
TARGET SPECIFICATION

       Everything that isn’t an option (or option argument) in nmap is treated
       as  a  target  host specification.  The simplest case is listing single
       hostnames or IP addresses on the command line.  If you want to  scan  a
       subnet  of  IP  addresses,  you  can append /mask to the hostname or IP
       address.  mask must be between 0 (scan the whole Internet) and 32 (scan
       the  single  host  specified).  Use /24 to scan a class "C" address and
       /16 for a class "B".

       Nmap also has a more powerful notation which lets  you  specify  an  IP
       address  using  lists/ranges  for  each element.  Thus you can scan the
       whole class "B" network  192.168.*.*  by  specifying  "192.168.*.*"  or
       "192.168.0-255.0-255" or even "192.168.1-50,51-255.1,2,3,4,5-255".  And
       of course you can use the mask notation: "192.168.0.0/16".   These  are
       all  equivalent.  If you use asterisks ("*"), remember that most shells
       require you to escape them with  back  slashes  or  protect  them  with
       quotes.

       Another  interesting  thing  to do is slice the Internet the other way.
       Instead of scanning all the hosts in a class "B", scan  "*.*.5.6-7"  to
       scan  every IP address that ends in .5.6 or .5.7 Pick your own numbers.
       For more information on specifying hosts to scan, see the examples sec-
       tion.



EXAMPLES

       Here  are some examples of using nmap, from simple and normal to a lit-
       tle more complex/esoteric.  Note that actual numbers  and  some  actual
       domain names are used to make things more concrete.  In their place you
       should substitute addresses/names from your  own  network.   I  do  not
       think  portscanning  other networks is illegal; nor should portscans be
       construed by others as an attack.  I have scanned hundreds of thousands
       of  machines  and  have  received  only  one complaint.  But I am not a
       lawyer and some (anal) people may  be  annoyed  by  nmap  probes.   Get
       permission first or use at your own risk.

       nmap -v target.example.com

       This  option  scans  all reserved TCP ports on the machine target.exam-
       ple.com .  The -v means turn on verbose mode.

       nmap -sS -O target.example.com/24

       Launches a stealth SYN scan against each machine that is up out of  the
       255  machines  on  class "C" where target.example.com resides.  It also
       tries to determine what operating system is running on each  host  that
       is  up  and  running.  This requires root privileges because of the SYN
       scan and the OS detection.

       nmap -sX -p 22,53,110,143,4564 198.116.*.1-127

       Sends an Xmas tree scan to the first half of each of the 255 possible 8
       bit  subnets  in  the  198.116 class "B" address space.  We are testing
       whether the systems run sshd, DNS, pop3d, imapd, or  port  4564.   Note
       that  Xmas  scan doesn’t work on Microsoft boxes due to their deficient
       TCP stack.  Same goes with CISCO, IRIX, HP/UX, and BSDI boxes.

       nmap -v --randomize_hosts -p 80 *.*.2.3-5

       Rather than focus on a specific IP range, it is  sometimes  interesting
       to  slice  up  the  entire  Internet  and scan a small sample from each
       slice.  This  command  finds  all  web  servers  on  machines  with  IP
       addresses  ending in .2.3, .2.4, or .2.5.  If you are root you might as
       well add -sS.  Also you will find more interesting machines starting at
       127.  so you might want to use "127-222" instead of the first asterisks
       because that section has a  greater  density  of  interesting  machines
       (IMHO).

       host -l company.com | cut  -d  -f 4 | ./nmap -v -iL -

       Do  a  DNS zone transfer to find the hosts in company.com and then feed
       the IP addresses to nmap.  The above commands are for my GNU/Linux box.
       You may need different commands/options on other operating systems.


而且我这个人属于投机取巧的人.每次达到目的后就不深入钻研了.

 :em17: 

所以自己的技术一直没有什么长进.大家可千万别学习我啊.应该多和白金学习学习.他们的技术都比我好. :em17:


 我爱臭豆腐 回复于:2005-10-13 10:49:14

引用:原帖由 "西山晴雪" 发表:

能具体说说你是如何使用snmp和一些工具来察看网卡和交换机的对应端口呢

 :em11: 你是想知道window下面的还是unix下面的啊?
想知道花钱的方法呢?还是免费的方法呢? :em04:


 platinum 回复于:2005-10-13 11:39:54

引用:原帖由 "我爱臭豆腐" 发表:

而且我这个人属于投机取巧的人.每次达到目的后就不深入钻研了. 

 :em17: 

所以自己的技术一直没有什么长进.大家可千万别学习我啊.应该多和白金学习学习.他们的技术都比我好. 
 :em17: 


老大你别耍我了,你一直是我心目中的偶像呢 :em18: 
还需努力努力再努力! :em08:


 我爱臭豆腐 回复于:2005-10-13 11:47:03

引用:原帖由 "platinum" 发表:

老大你别耍我了,你一直是我心目中的偶像呢 :em18: 
还需努力努力再努力! :em08:




哥们你在努力就上天了.有的时候也看看你们讨论的东西感觉你们的基础知识都比我好. :em10: 惭愧在挨踢商业里面工作了这么多年啊.
另外你现在是不是qq也不能够使用了啊?有什么联系方式吗?比如邮件之类的.我也就能发邮件了.晚上回家后才能上网. :em10:


 platinum 回复于:2005-10-13 11:54:36

因为没有机会摸到很高端的设备,所以只能自己研究研究这些很底层的东西了。。。
不过现在回过头来看,我并没有觉得后悔,相反,越来越觉得调试那些高端设备其实很简单 ^_^


 我爱臭豆腐 回复于:2005-10-13 12:28:45

引用:原帖由 "platinum" 发表:
因为没有机会摸到很高端的设备,所以只能自己研究研究这些很底层的东西了。。。
不过现在回过头来看,我并没有觉得后悔,相反,越来越觉得调试那些高端设备其实很简单 ^_^



现在越高级的东西越智能(傻瓜)化了.有的时候研究一下底层的东西有好处.比如配置防火墙的时候多看看iptables 是绝对有帮助的.


 platinum 回复于:2005-10-13 12:36:47

引用:原帖由 "我爱臭豆腐" 发表:

另外你现在是不是qq也不能够使用了啊?有什么联系方式吗?比如邮件之类的.我也就能发邮件了.晚上回家后才能上网. :em16: 


我发站内短信了 ^_^


 西山晴雪 回复于:2005-10-13 15:09:04

引用:原帖由 "我爱臭豆腐" 发表:
:em11: 你是想知道window下面的还是unix下面的啊?
想知道花钱的方法呢?还是免费的方法呢? :em04:


我就想知道linux下免费的方法。我最近和你一样也要核对200多台服务器网卡和交换机对应的端口。我是这么做的
我先在交换机上ping这个服务器然后show arp 察看mac地址
然后再show mac-address-table 察看核实mac地址和交换机的对应端口
能说说你有什么更简单的方法吗。


 我爱臭豆腐 回复于:2005-10-13 15:57:23

引用:原帖由 "西山晴雪" 发表:

我就想知道linux下免费的方法。我最近和你一样也要核对200多台服务器网卡和交换机对应的端口。我是这么做的
我先在交换机上ping这个服务器然后show arp 察看mac地址
然后再show mac-address-table 察看核实mac地..........


http://www.cisco.com/warp/public/477/SNMP/mactoport44800.pdf
这个就是.希望你能够发扬光大把这个东西. :em02:


 Jambo 回复于:2005-10-13 18:16:20

我的还不行
-----------
C:\nmap>;nmap -sP -PI -PT -on ip.txt 192.168.17.0/24

Starting nmap 3.70 ( http://www.insecure.org/nmap ) at 2005-10-13 18:02 中国标准
时间
Failed to resolve given hostname/IP: ip.txt.  Note that you can't use '/mask' AN
D '[1-4,7,100-]' style IP ranges
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
------------------------------
用的是3.75-win32
是不是版本太低了?


 platinum 回复于:2005-10-13 18:29:55

Failed to resolve given hostname/IP: ip.txt.  Note that you can't use '/mask' AND '[1-4,7,100-]' style IP ranges


 Jambo 回复于:2005-10-13 20:09:14

引用:原帖由 "platinum"]0-]' style IP ranges
 发表:



什么意思呢?

多等了一会,结果就出来了,就是没有-sS那么多的信息了。。。

是这个样子么?


 redwolf 回复于:2005-10-14 10:36:50

这个软件只能在LINUX下面用!唉,有XP上面用的吗?豆腐.


 我爱臭豆腐 回复于:2005-10-14 11:03:37

引用:原帖由 "redwolf"]这个软件只能在LINUX下面用!唉,有XP上面用的吗?豆腐.
 发表:




ms
下面就是花钱的了.想知道答案的话就请我吃饭吧 :em04:


 platinum 回复于:2005-10-14 11:08:34

引用:原帖由 "我爱臭豆腐" 发表:



ms
下面就是花钱的了.想知道答案的话就请我吃饭吧 :em04:


多一个不多,少一个不少 :twisted:


 快乐玩家 回复于:2005-10-14 15:42:44

哈哈,这个贴子拖的真长


 我爱臭豆腐 回复于:2005-10-14 16:50:00

帖子虽然是长一点.但是还是体现出了交流的意义.而且从这个帖子里面引伸出很多好的方法和技巧.这样就达到了目的.


 西山晴雪 回复于:2005-10-14 16:51:43

引用:原帖由 "我爱臭豆腐"]飧鼍褪?希望你能够发扬光大把这个东西. :em02:
 发表:


谢谢,我好好研究一下。完了我写个文档


 wallace888 回复于:2005-10-15 18:40:05

引用:原帖由 "西山晴雪" 发表:

谢谢,我好好研究一下。完了我写个文档




那兄弟要多多加油哟,我可关注了!


 sjf0885 回复于:2005-10-19 14:38:34

向斑竹学习!学东西要学透澈!这篇文章写的真好·支持一下!


 ljcai123 回复于:2005-10-19 16:41:09

我现在用一个软件叫arpwatch找对应关系(*nix下的),因为客户端经常不开机,所以用nmap单次搜索结果不全,arpwatch可长期积累结果


 xigua 回复于:2005-10-20 09:14:09

豆腐把windows下的搞出来嘛。。


 我爱臭豆腐 回复于:2005-10-20 10:04:53

我已经搞出来了啊.在前面的帖子上面不是写了吗?


 zzcu 回复于:2005-10-20 17:05:39

有在XP下用的吗?


 zhangshoug 回复于:2005-10-23 14:48:22

引用:原帖由 "我爱臭豆腐" 发表:

nmap 扫描mac地址
最近干的一个工作就是要对出整个数据中心里面的服务器的网卡插在了那个交换机的那个端口上面.
经过总结发现合理使用的snmp和一些工具完全可以省去用手去看的工作.
其中一个最重要的功能是将ip..........


和我想的一样。我在linuxforum上回了他的贴。内容如下:
你是怎么得到MAC地址的呢?是本机的MAC地址,还是别的机器的MAC地址?
如果是别的机器的MAC地址。你先扫描一下你的网络,使机器的arp表更新。
然后你试试
arp |grep 你得到的MAC地址。
注意linux里MAC地址的字母是大写的


 qy_jfm99 回复于:2005-11-04 17:34:32

可以用实用程序里的网络实用程序把


 sminpas 回复于:2005-11-05 09:43:36

如在局域网内,在网关上直接执行"arp"命令就可以列出来


 sminpas 回复于:2005-11-05 09:46:13

如主机较多,可采取如下方法:

#arp |grep "要查的MAC地址" > ipmac
#cat ipmac


 netocool 回复于:2005-11-05 10:41:01

如果知道的MAC地址是INTERNET上的一台主机,那么我可以查出相应的IP地址吗?

因为我用个客户使用ADSL拨号上网的,我需要经常登陆去管理他们的路由器
如果才能知道他的IP地址呢?


 fz-L 回复于:2005-11-16 12:45:04

这个确实好玩,前段时间有人同网段的偷棒了我的服务器ip,为了找他还把我折腾了一阵了。


 tianyayang 回复于:2005-11-16 15:07:42

用nbstat工具来扫描
Nbtstat.exe到网上去下载,超过100K了,我传不上去

[ 本帖最后由 tianyayang 于 2005-11-16 15:09 编辑 ]


 angelagod 回复于:2005-11-16 15:24:11

好文哪!我正想要做MAC与交换机端口对应的资料整理。整个公司100多台交换机和路由器,都快郁闷死了。

有没有那篇《使用SNMP查找MAC地址对应交换机端口》的中文版啊?(我懒)


 我爱臭豆腐 回复于:2005-11-17 10:42:15

引用:原帖由 angelagod 于 2005-11-16 15:24 发表
好文哪!我正想要做MAC与交换机端口对应的资料整理。整个公司100多台交换机和路由器,都快郁闷死了。

有没有那篇《使用SNMP查找MAC地址对应交换机端口》的中文版啊?(我懒) 


这个在同网段可以这么作.但是不同网段之间是不能的.


 angelagod 回复于:2005-11-17 15:28:02

咚……我要翘辫子了……

唉,只能一点一点慢慢来了。人生真是……


 我爱臭豆腐 回复于:2005-11-17 18:54:40

引用:原帖由 angelagod 于 2005-11-17 15:28 发表
咚……我要翘辫子了……

唉,只能一点一点慢慢来了。人生真是…… 


人生就是一出戏.:mrgreen:看你如何演了:m01:


 ioiioi 回复于:2005-11-17 19:31:59

nbtstat 行不行?你可以试试看。


 来诺 回复于:2005-11-17 22:29:43

CISCO设备在交换机中使用如下命令查查询到MAC所在端口位置
swich#sh mac-address-table address H.H.H


 yinlonglc 回复于:2005-11-18 09:55:45

我是新手,我想问一下,具体怎么用啊?我从你那下载下来了,但是为什么我打不开呢?


 yinlonglc 回复于:2005-11-18 09:57:53

有没有具体的操作说明啊?可不可以给我发一份学习学习呢!谢谢!
我的邮箱[email]608417@QQ.COM[/email]


 afdlove 回复于:2005-11-18 16:15:44

show arp


 ioiioi 回复于:2005-12-01 22:43:31

cacti有一个插件,TheWiness开发的,可以将每个交换机里的MAC地址全部显示出来。你可以试试看。不过nmap可以用来查mac,我还是第一次听到,明天去试试
看。


 platinum 回复于:2005-12-02 08:27:55

引用:原帖由 ioiioi 于 2005-12-1 22:43 发表
cacti有一个插件,TheWiness开发的,可以将每个交换机里的MAC地址全部显示出来。你可以试试看。不过nmap可以用来查mac,我还是第一次听到,明天去试试
看。 


傻瓜二层不带管理的那种一定不行 :mrgreen:


 jzcqx 回复于:2005-12-09 13:44:02

出现如下错误信息,望老大解决一下,谢谢
[root@router ~]# nmap -sP -PI -PT -on ipandmaclist.txt 192.168.0.0/24

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-12-09 13:42 CST
Failed to resolve given hostname/IP: ipandmaclist.txt.  Note that you can't use '/mask' AND '[1-4,7,100-]' style IP ranges


 jiangyi_hust 回复于:2005-12-10 22:15:24

ding  yi ge


 yang_826 回复于:2005-12-11 11:40:29

C:\nmap>nmap -sP -PI -PT -on ipandmaclist.txt 172.20.100.0/24

Starting nmap 3.93 ( http://www.insecure.org/nmap ) at 2005-12-11 11:27 中国标准
时间
Failed to resolve given hostname/IP: ipandmaclist.txt.  Note that you can't use
'/mask' AND '[1-4,7,100-]' style IP ranges

为什么不能创建文件?请指教!


 badile 回复于:2005-12-11 16:43:16

呵呵,nmap是正解。


 ssffzz1 回复于:2005-12-11 21:51:54

那么哪个什么ARAP协议是干什么的,动不动就那NMAP出来。


 高扬 回复于:2005-12-11 23:17:25

C:\nmap-3.93-win32>nmap -sP -PI -PT -on ipandmaclist.txt 192.168.1.0/24
WARNING: Failed to locate Winpcap. Nmap may not function properly until this is
installed!  WinPcap is freely available from http://winpcap.polito.it.

Starting nmap 3.93 ( http://www.insecure.org/nmap ) at 2005-12-11 23:09 中国标准
时间
Failed to resolve given hostname/IP: ipandmaclist.txt.  Note that you can't use
'/mask' AND '[1-4,7,100-]' style IP ranges


这是什么原因啊,伙计们,指点一下,谢谢


 我爱臭豆腐 回复于:2005-12-12 09:38:32

引用:原帖由 高扬 于 2005-12-11 23:17 发表
C:\nmap-3.93-win32>nmap -sP -PI -PT -on ipandmaclist.txt 192.168.1.0/24
WARNING: Failed to locate Winpcap. Nmap may not function properly until this is
installed!  WinPcap is freely available  ... 


WinPcap 这个软件你安装了吗?


 wanghi 回复于:2005-12-21 15:56:58

mark


 hackobe 回复于:2005-12-24 11:18:40

引用:原帖由 高扬 于 2005-12-11 23:17 发表
C:\nmap-3.93-win32>nmap -sP -PI -PT -on ipandmaclist.txt 192.168.1.0/24
WARNING: Failed to locate Winpcap. Nmap may not function properly until this is
installed!  WinPcap is freely available  ... 




把 -on 改成  -oN  看看。


 hackobe 回复于:2005-12-24 11:20:21

另外
nmap -sP -oN a.txt 192.168.1.0/24
得出的结果跟
nmap -sP -PI -PT -oN a.txt 192.168.1.0/24
的是一样的。
咋回事呢?




原文链接:http://bbs.chinaunix.net/viewthread.php?tid=624897
转载请注明作者名及原文出处



收藏本页到: