Kali-linux :arping命令

Kali-linux :arping命令ARP协议是“AddressResolutionProtocol”(地址解析协议)的缩写。在同一以太网中,通过地址解析协议,源主机可以通过目的主机的IP地址获得目的主机的MAC地址。arping程序就是完成上述过程的程序。arping,用来向局域网内的其它主机发送ARP请求的指令,它可以用来测试局域网内的某个IP是否已被使用。root@pgg:/home/pgg#arping–helpARPing2.21,byThomasHabetsthomas@habets.seusage:

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

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

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

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:

-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.net/139698.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长

相关推荐

  • java创建文件和目录

    java创建文件和目录创建文件和目录的关键技术点如下:1、File类的createNewFile根据抽象路径创建一个新的空文件,当抽象路径制定的文件存在时,创建失败2、File类的mkdir方法根据抽象路径创建目录3、File类的mkdirs方法根据抽象路径创建目录,包括创建必需但不存在的父目录4、File类的createTempFile方法创建临时文件,可以制定临时文件的文件名前

    2022年6月18日
  • string和stringstream用法详解「建议收藏」

    string和stringstream用法详解「建议收藏」一、stringstring 是C++提供的字串型態,和C的字串相比,除了有不限长度的优点外,还有其他许多方便的功能。要使用 string,必須先加入这一行:#include接下來要宣告一个字串变量,可以写成:strings;我们也可以在宣告的同时让它设成某个字串:strings=”TCGS”;而要取得其中某一個字元,和传统C的字串

    2022年5月7日
  • Linux路由删除_删除路由命令 route delete

    Linux路由删除_删除路由命令 route deleteLinux中增加软路由的两种方法第一种:routeadd-net172.16.6.0netmask255.255.255.0gw172.16.2.254deveth0/*增加一条网络172.16.6.0/24经过172.16.2.254eth0*//*-net增加网络-host增加主机netmask子网掩码gw网关dev装置,设备,这里是你的网卡名*/ro…

    2022年10月4日
  • Hmily(3)

    Hmily(3)5.提供端的方法也需要Hmily注解,当然也会有确认取消方法,执行切面方法DubboHmilyTransactionInterceptor#interceptor这个时候的context不会为空,转成对象HmilyTransactionContext,HmilyTransactionAspectServiceImpl#invoke找出合适的处理类HmilyTransactionFactorySe…

    2022年5月11日
  • linux shell 循环处理文件夹每个文件

    linux shell 循环处理文件夹每个文件在linux下,如果有一个文件夹,下面有好几个文件。每个文件如abc.csv这种格式。我想一个个处理文件,并且取得前缀abc,生成新文件abc.text.代码如下。注意我这里采用的是把*.cnf处理成*.csvfeatureSAT12是我需要调用的程序,在DIMACS上一个文件夹。#!/bin/bashPATH=”DIMACS”//最好使用绝对路径cd$PATHfor

    2022年7月24日
  • 最全的android图片加密

    最全的android图片加密在android开发过程中有些时候一些重要的图片,我们不希望用户通过文件管理直接能查看,我们该怎么办呢,当然你可以把图片放在android的内部存储中,data/data/下,但毕竟androidroot用户一大堆,还是解决不了问题。那么我们就需要对图片进行加密,当然加密的方法有很多种,下面给大家推荐我常用的2中方法,基本上可以解决大部分问题。   1、国际标准的AES加密,通过加密流存储

    2022年6月21日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号