arpspoof.py 文件源码

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

项目:HomeAssistant-CustomComponents 作者: pilotak 项目源码 文件源码
def spoof(self, index):
        try:
            victimIP = self._devices[index][0]
            victimMAC = self._devices[index][1]

            send(ARP(op=2, pdst=victimIP, psrc=self._router_ip,
                     hwdst=victimMAC), iface=self._interface, verbose=False)
            send(ARP(op=2, pdst=self._router_ip, psrc=victimIP,
                     hwdst=self._router_mac), iface=self._interface, verbose=False)
        except:
            _LOGGER.error("Error when trying to spoof device IP: %s MAC: %s",
                     victimIP, victimMAC)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号