Created
February 16, 2021 08:29
-
-
Save mutekinootoko/58965f88cb85dd7c15ad428576c8a0c3 to your computer and use it in GitHub Desktop.
mac WOL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#python2 | |
import socket | |
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.sendto('\xff'*6+'\x70\x73\xc2\xbe\xe3\x0d'*16, ('192.168.0.214', 80)) #mac address and ip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment