【问题标题】:can scapy arping multiple IP's at once可以一次 scapy arping 多个 IP
【发布时间】:2023-04-06 19:22:02
【问题描述】:

scapy 是否允许您一次 arping 多个 IP?

我试过 arping(['192.168.192.9','192.168.192.12']) 但得到 TypeError: unhashable type: 'list'

arping(('192.168.192.9','192.168.192.12')) 但得到 AttributeError: 'tuple' object has no attribute 'split'

【问题讨论】:

    标签: ping scapy arp


    【解决方案1】:

    这看起来像一个错误。 同时,您可以手动执行 ARP ping

    ans, unans = srp(Ether(dst="ff:ff:ff:ff:ff:ff") / ARP(pdst=["192.168.0.1", ...]), filter="arp and arp[7] = 2", timeout=3)
    

    【讨论】:

      猜你喜欢
      • 2014-03-18
      • 2022-07-08
      • 2012-02-04
      • 2022-08-20
      • 2018-01-15
      • 2014-08-05
      • 1970-01-01
      • 2022-07-27
      • 2020-10-24
      相关资源
      最近更新 更多