arpspoof.py 文件源码

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

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

            _LOGGER.info("Enabling internet for device IP: %s MAC: %s",
                         victimIP, victimMAC)

            del self._devices[index]

            send(ARP(op=2, pdst=victimIP, hwdst=victimMAC, psrc=self._router_ip,
                     hwsrc=self._router_mac), count=4, iface=self._interface, verbose=False)
            send(ARP(op=2, pdst=self._router_ip, hwdst=self._router_mac, psrc=victimIP,
                     hwsrc=victimMAC), count=4, iface=self._interface, verbose=False)

        except:
            _LOGGER.error("Error when restoring IP: %s", victimIP)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号