上传者: 38677806
|
上传时间: 2021-11-22 17:36:19
|
文件大小: 40KB
|
文件类型: -
发送端代码:
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import socket
import struct
raw_socket = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.htons(0x1234))
raw_socket.bind((eth0, 0))
packet = struct.pack(!6s6sH, \xff\xff\xff\xff\xff\xff, \xaa\xaa\xaa\xaa\xaa\xaa, 0x1234)
while True:
p