arpspoof.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:HomeAssistant-CustomComponents 作者: pilotak 项目源码 文件源码
def update_cache(self):
        try:
            ans, unans = arping(self._router_ip + "/24",
                                iface=self._interface, verbose=False)

            self._arp_cache = []

            if ans:
                for s, r in ans:
                    self._arp_cache.append([r[ARP].psrc, r[Ether].src.lower()])

            _LOGGER.debug("ARP cache: %s", self._arp_cache)
        except Exception as e:
            _LOGGER.error("Error when trying update ARP cache: %s", str(e))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号