Skip to content

Instantly share code, notes, and snippets.

@mutekinootoko
Created February 16, 2021 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mutekinootoko/58965f88cb85dd7c15ad428576c8a0c3 to your computer and use it in GitHub Desktop.
Save mutekinootoko/58965f88cb85dd7c15ad428576c8a0c3 to your computer and use it in GitHub Desktop.
mac WOL
#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