首页 最新 热门 推荐

  • 首页
  • 最新
  • 热门
  • 推荐

ARPing使用方法

  • 25-02-19 10:00
  • 3868
  • 7210
blog.csdn.net

ARPing 2.24,由 Thomas Habets [email protected] 开发 用法:arping [ -0aAbdDeFpPqrRuUvzZ ] [ -w <秒> ] [ -W <秒> ] [ -S <主机/ip> ] [ -T <主机/ip> ] [ -s ] [ -t ] [ -c <计数> ] [ -C <计数> ] [ -i <接口> ] [ -m <类型> ] [ -g <组> ] [ -V <vlan> ] [ -Q <优先级> ] <主机/ip/MAC | -B>

选项:

  1. -0 使用此选项时,以源IP地址0.0.0.0进行ping操作。当你尚未配置你的接口时使用此选项。注意,这可能会导致MAC-ping无响应。这是-S 0.0.0.0的别名。
  2. -a 可听见的ping。
  3. -A 仅统计与请求地址匹配的地址(这*WILL*破坏大多数你正在做的事情。只有在你同时arping许多主机时才有用。参见arping-scan-net.sh示例)。
  4. -b 类似于-0,但是使用广播源地址(255.255.255.255)。注意,这可能会导致arping无响应,因为这不是主机的正常行为。
  5. -B 如果你想使用255.255.255.255作为地址,用这个选项代替主机。
  6. -c 计数
  7. 仅发送计数请求。
  8. -C 计数
  9. 无论-c和-w如何,仅等待这么多回复。
  10. -d 查找重复的回复。如果有来自两个不同MAC地址的回答,则以1退出。
  11. -D 显示回答为感叹号,未收到的数据包显示为点。
  12. -e 类似于-a,但在没有回复时发出蜂鸣声。
  13. -F 不要试图对接口名称进行智能处理。(即使没有给出这个开关,-i会覆盖智能性)
  14. -g 组
  15. 将setgid()设置为此组,而不是nobody组。
  16. -h 显示帮助信息并退出。
  17. -i 接口
  18. 使用指定的接口。
  19. -m 类型
  20. 用于传入数据包的时间戳类型。在ping时使用-vv列出可用的类型。
  21. -q 不显示消息,除了错误消息。
  22. -Q pri 设置802.1p优先级。应与802.1Q(-V)一起使用。默认为0。
  23. -r 原始输出:仅显示每个回复的MAC/IP地址。
  24. -R 原始输出:类似于-r,但显示“另一个”,可以与-r结合使用。
  25. -s MAC 设置源MAC地址。你可能需要与此选项一起使用-p。
  26. -S IP 类似于-b和-0,但是设置了源地址。注意,如果目标没有路由到IP,这可能会导致arping无响应。如果你不拥有你正在使用的IP,你可能需要在接口上启用混杂模式(使用-p)。使用这个开关,你可以找出一个主机拥有的IP地址,而不需要自己占用一个IP地址。
  27. -t MAC 设置在ping IP地址时使用的目標MAC地址。
  28. -T IP 使用-T作为目标地址,当ping不会响应广播ping但可能响应定向广播的MAC时。
  29. 示例:
  30. 要检查MAC-A的地址,使用对MAC-B和IP-B的了解。
  31. $ arping -S -s -p
  32. -p 在接口上启用混杂模式,如果你不“拥有”你正在使用的MAC地址,请使用此选项。
  33. -P 发送ARP回复而不是请求。与-U一起使用时很有用。
  34. -u 在ping MAC时显示索引=收到/发送而不是仅显示索引=收到。
  35. -U 发送未经请求的ARP。
  36. -v 详细输出。使用两次以获得更多消息。
  37. -V num 添加802.1Q标签。默认不添加VLAN标签。
  38. -w 秒 在ping退出之前指定超时时间,无论发送或接收了多少数据包。
  39. -W 秒 等待两次ping之间的时间。
  40. -z 启用seccomp
  41. -Z 禁用seccomp(默认)

报告错误至:[email protected] Arping主页:Synscan - Home 开发仓库:http://github.com/ThomasHabets/arping

原文:

ARPing 2.24, by Thomas Habets usage: arping [ -0aAbdDeFpPqrRuUvzZ ] [ -w ] [ -W ] [ -S ] [ -T ] [ -t ] [ -c ] [ -C ] [ -i ] [ -m <type> ] [ -g ] [ -V ] [ -Q ] 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 -s -p -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. -z Enable seccomp -Z Disable seccomp (default) Report bugs to: [email protected] Arping home page: <http://www.habets.pp.se/synscan/> Development repo: http://github.com/ThomasHabets/arping

用法:

arping 是一个用于发送 ARP(地址解析协议)请求的工具,通常用于网络扫描和分析。以下是 arping 的一些基本用法:

  1. 基本扫描:

    bash

    arping -c 3 -I eth0 192.168.1.1/24

    这个命令会对192.168.1.1/24网段进行3次ARP请求,使用eth0接口。

  2. 快速扫描:

    bash

    arping -f -c 3 192.168.1.1/24

    -f 参数用于快速扫描,不进行DNS解析。

  3. ARP Ping:

    bash

    arping -A -c 3 192.168.1.1/24

    -A 参数用于启用ARP Ping,-c 指定发送次数。

  4. 指定源IP:

    bash

    arping -S 192.168.1.100 -c 3 192.168.1.1/24

    -S 参数用于指定源IP地址。

  5. 指定目标MAC:

    bash

    arping -D 00:11:22:33:44:55 -c 3 192.168.1.1/24

    -D 参数用于指定目标MAC地址。

  6. ARP请求和响应:

    bash

    arping -r 192.168.1.1

    -r 参数用于响应ARP请求。

  7. ARP洪水攻击:

    bash

    arping -f -I eth0 192.168.1.1

    -f 参数用于洪水模式,发送大量ARP请求。

  8. ARP请求和反向解析:

    bash

    arping -R 192.168.1.1

    -R 参数用于发送ARP请求并尝试反向解析IP地址。

  9. 使用MAC地址进行扫描:

    bash

    arping -M 00:11:22:33:44:55 192.168.1.1

    -M 参数用于使用特定的MAC地址进行扫描。

  10. 指定输出文件:

    bash复制

    arping -f -I eth0 192.168.1.1/24 > arp_results.txt

    将扫描结果重定向到文件。

注:本文转载自blog.csdn.net的每次学一点的文章"https://blog.csdn.net/u011701632/article/details/143865045"。版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。如有侵权,请联系我们删除。
复制链接
复制链接
相关推荐
发表评论
登录后才能发表评论和回复 注册

/ 登录

评论记录:

未查询到任何数据!
回复评论:

分类栏目

后端 (14832) 前端 (14280) 移动开发 (3760) 编程语言 (3851) Java (3904) Python (3298) 人工智能 (10119) AIGC (2810) 大数据 (3499) 数据库 (3945) 数据结构与算法 (3757) 音视频 (2669) 云原生 (3145) 云平台 (2965) 前沿技术 (2993) 开源 (2160) 小程序 (2860) 运维 (2533) 服务器 (2698) 操作系统 (2325) 硬件开发 (2492) 嵌入式 (2955) 微软技术 (2769) 软件工程 (2056) 测试 (2865) 网络空间安全 (2948) 网络与通信 (2797) 用户体验设计 (2592) 学习和成长 (2593) 搜索 (2744) 开发工具 (7108) 游戏 (2829) HarmonyOS (2935) 区块链 (2782) 数学 (3112) 3C硬件 (2759) 资讯 (2909) Android (4709) iOS (1850) 代码人生 (3043) 阅读 (2841)

热门文章

134
游戏
关于我们 隐私政策 免责声明 联系我们
Copyright © 2020-2025 蚁人论坛 (iYenn.com) All Rights Reserved.
Scroll to Top