前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Kali-linux :arping命令

Kali-linux :arping命令

作者头像
全栈程序员站长
发布2022-08-23 20:54:29
1K0
发布2022-08-23 20:54:29
举报

大家好,又见面了,我是你们的朋友全栈君。

ARP协议是“Address Resolution Protocol”(地址解析协议)的缩写。在同一以太网中,通过地址解析协议,源主机可以通过目的主机的IP地址获得目的主机的MAC地址。arping程序就是完成上述过程的程序。

arping,用来向局域网内的其它主机发送ARP请求的指令,它可以用来测试局域网内的某个IP是否已被使用。

代码语言:javascript
复制
root@pgg:/home/pgg# arping --help

ARPing 2.21, by Thomas Habets thomas@habets.se usage: arping [ -0aAbdDeFpPqrRuUv ] [ -w ] [ -W ] [ -S <host/ip> ] [ -T <host/ip ] [ -s ] [ -t ] [ -c ] [ -C ] [ -i ] [ -m ] [ -g ] [ -V ] [ -Q ] <host/ip/MAC | -B>

Options:

代码语言:javascript
复制
-0     Use this option to ping with source IP address 0.0.0.0. Use this
       when you haven't configured your interface yet.  Note that  this
       may  get  the  MAC-ping  unanswered.   This  is  an alias for -S
       0.0.0.0.
-a     Audiable ping.
-A     Only count addresses matching  requested  address  (This  *WILL*
       break  most things you do. Only useful if you are arpinging many
       hosts at once. See arping-scan-net.sh for an example).
-b     Like -0 but source broadcast source  address  (255.255.255.255).
       Note that this may get the arping unanswered since it's not nor-
       mal behavior for a host.
-B     Use instead of host if you want to address 255.255.255.255.
-c count
       Only send count requests.
-C count
       Only wait for this many replies, regardless of -c and -w.
-d     Find duplicate replies. Exit with 1 if there are answers from
       two different MAC addresses.
-D     Display answers as exclamation points and missing packets as dots.
-e     Like -a but beep when there is no reply.
-F     Don't try to be smart about the interface name.  (even  if  this
       switch is not given, -i overrides smartness)
-g group
       setgid() to this group instead of the nobody group.
-h     Displays a help message and exits.
-i interface
       Use the specified interface.
-m type
       Type of timestamp to use for incoming packets. Use -vv when
       pinging to list available ones.
-q     Does not display messages, except error messages.
-Q pri 802.1p priority to set. Should be used with 802.1Q (-V).
       Defaults to 0.
-r     Raw output: only the MAC/IP address is displayed for each reply.
-R     Raw output: Like -r but shows "the other one", can  be  combined
       with -r.
-s MAC Set source MAC address. You may need to use -p with this.
-S IP  Like  -b and -0 but with set source address.  Note that this may
       get the arping unanswered if the target does not have routing to
       the  IP.  If you don't own the IP you are using, you may need to
       turn on promiscious mode on the interface (with -p).  With  this
       switch  you can find out what IP-address a host has without tak-
       ing an IP-address yourself.
-t MAC Set target MAC address to use when pinging IP address.
-T IP  Use -T as target address when pinging MACs that won't respond to
       a broadcast ping but perhaps to a directed broadcast.
       Example:
       To check the address of MAC-A, use knowledge of MAC-B and  IP-B.
       $ arping -S <IP-B> -s <MAC-B> -p <MAC-A>
-p     Turn  on  promiscious  mode  on interface, use this if you don't
       "own" the MAC address you are using.
-P     Send ARP replies instead of requests. Useful with -U.
-u     Show index=received/sent instead  of  just  index=received  when
       pinging MACs.
-U     Send unsolicited ARP.
-v     Verbose output. Use twice for more messages.
-V num 802.1Q tag to add. Defaults to no VLAN tag.
-w sec Specify a timeout before ping exits regardless of how many packets have been sent or received.
-W sec Time to wait between pings.

Report bugs to: thomas@habets.se Arping home page: http://www.habets.pp.se/synscan/ Development repo: http://github.com/ThomasHabets/arping

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/139698.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年5月7,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档