def __init__(self, interface):
global s, redirect_to_mac, arp
super(Arp_Spoof, self).__init__()
s = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0800))
try:
s.bind((interface, socket.htons(0x0800)))
except socket.error:
print("\033[1;31mUnable to bind to interface... unknown type\033[00m")
exit()
评论列表
文章目录