WakeMeOnLan 软件使用WOL(Wake-on-Lan) [color=]协议对支持WOL远程唤醒技术网卡发送唤醒包来使设备在插网线且通电的情况下进入引导状态 [color=]可以通过ddns或内网穿透等技术来实现广域网开机 注意: 扫描设备时需要在设备开机且联网的状态才可以扫描到 软件下载链接: https://lisiyi.lanzoum.com/im7wX1znjhne 密码:52pj 软件截图: image.png (80.2 KB, 下载次数: 0) 下载附件 2024-5-24 23:59 上传 汉化版, 设备
用个脚本就行了。 [Python] 纯文本查看 复制代码 import os import time import socket from binascii import unhexlify def wake_on_lan(mac_address): """ Wake up machines using WOL. """ mac_bytes = unhexlify(mac_address.replace('-', '').replace(':', '')).decode('latin-1') * 16 magic_packet = b'\xff' * 6 + bytes(mac_bytes, 'latin-1') sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) sock.sendto(magic_packet, (' ', 9)) sock.close() print(f"Wake-on-LAN packet sent to {mac_address}.") def ping_host(host, timeout=1): #Ping a host and return True if successful, False otherwise. on windows response= os.system(f"ping -n 1 -w {timeout} {host} > nul") return response == 0 def wait_for_host(host, interval=1, max_attempts=60): """ Wait for a host to respond to ping. """ print(f"Waiting for {host} to wake up...") attempt = 0 while attempt