左耳的博客

设置背景图片

远程唤醒

远程唤醒
python远程唤醒 #!/usr/bin/python from socket import socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_BROADCAST data = b'\xFF\xFF\xFF\xFF\xFF\xFF' + b'\xaa\xbb\xcc\xdd\xee\xff' * 16 #aabbccddeeff为mac地址 sock = socket(AF_INET, SOCK_DGRAM) sock.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) sock.sendto(da...