python发送伪造的arp请求
来源:懂视网
责编:小采
时间:2020-11-27 14:29:58
python发送伪造的arp请求
python发送伪造的arp请求: 代码如下:#!/usr/bin/env pythonimport socket s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW)s.bind((lo, 0)) src_addr = \x50\x3d\xe5\x0e\x35\x3fdst_addr = \xff\xff\xff\xff\x
导读python发送伪造的arp请求: 代码如下:#!/usr/bin/env pythonimport socket s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW)s.bind((lo, 0)) src_addr = \x50\x3d\xe5\x0e\x35\x3fdst_addr = \xff\xff\xff\xff\x

代码如下:
#!/usr/bin/env python
import socket
s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW)
s.bind(("lo", 0))
src_addr = "\x50\x3d\xe5\x0e\x35\x3f"
dst_addr = "\xff\xff\xff\xff\xff\xff"
ethertype = "\x08\x06"
s.send(dst_addr+src_addr+ethertype+"\x00\x01"+"\x08\x00"+"\x06"+"\x04"+"\x00\x01"+src_addr+"\x7f\x00\x00\x01"+"\x00\x00\x00\x00\x00\x00"+"\x7f\x00\x00\x01")
python发送伪造的arp请求
python发送伪造的arp请求: 代码如下:#!/usr/bin/env pythonimport socket s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW)s.bind((lo, 0)) src_addr = \x50\x3d\xe5\x0e\x35\x3fdst_addr = \xff\xff\xff\xff\x