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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • IMU —— MPU9250_DMP原代码移植[通俗易懂]

    最近在使用MPU9250来学习姿态解算,查询了非常多的网上关于MPU6050和MPU9250的资料,发现内置的DMP可以计算出姿态角,可原代码是用在MSP430和STM407上的,手上有块F429的野火板子,移植过程越到非常多的巨坑,现在想记录下来给各位初学者提供一些便利。移植好的工程:https://download.csdn.net/download/zh471021698/1101721…

    2022年4月16日
    102
  • 数据库(第一范式,第二范式,第三范式)

    数据库(第一范式,第二范式,第三范式)数据库(第一范式,第二范式,第三范式)范式:英文名称是NormalForm,它是英国人E.F.Codd(关系数据库的老祖宗)在上个世纪70年代提出关系数据库模型后总结出来的,范式是关系数据库理论的基础,也是我们在设计数据库结构过程中所要遵循的规则和指导方法。目前有迹可寻的共有8种范式,依次是:1NF,2NF,3NF,BCNF,4NF,5NF,DKNF,6NF。通常所用到的只是前三个范式,

    2022年5月10日
    58
  • Qt多线程通信

    Qt多线程通信简述:1>Qt线程间共享数据主要有两种方式:1)使用共享内存。即使用一个两个线程都能够共享的变量(如全局变量),这样两个线程都能够访问和修改该变量,从而达到共享数据的目的。2)使用singal/slot机制,把数据从一个线程传递到另外一个线程。第一种方法在各个编程语言都普遍使用,而第二种方法是QT的特有的,本文主要介绍第二种。2>

    2022年6月19日
    209
  • 建立数据库连接费时吗_数据库连接错误是什么原因

    建立数据库连接费时吗_数据库连接错误是什么原因相信很多朋友都遇到过WordPress提示“建立数据库连接时出错”这个问题,英文为“Errorestablishingadatabaseconnection”。[原创文章:www.777y.com]“建立数据库错误时出错”意味着由于某种原因,您的站点PHP代码无法与MySQL数据库连接以获取显示该页面所需的数据。[本文来自:www.777y.com]数据库连接出错的原因和处理方案数据库连接…

    2022年9月24日
    2
  • js算法初窥02(排序算法02-归并、快速以及堆排序)

    上一篇,我们讲述了一些简单的排序算法,其实说到底,在前端的职业生涯中,不涉及node、不涉及后台的情况下,我目前还真的没想到有哪些地方可以用到这些数据结构和算法,但是我在前面的文章也说过了。或许你用不

    2022年3月25日
    39
  • 海贼王最新漫画图片_海贼王漫画52pk

    海贼王最新漫画图片_海贼王漫画52pk制作工具模块-隐藏身份信息的User-Agent模块;对象服务器识别不了身份信息。importrandomuser_agent_data=[{“User-Agent”:”Mozilla/5.0(WindowsNT10.0;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/65.0.3314.0Safari/537.36SE2.XMetaSr1.0″},{“Use

    2022年8月23日
    4

发表回复

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

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