Created
May 15, 2024 18:59
-
-
Save EECOLOR/f6b939d15de60040f9a6da325d77425b to your computer and use it in GitHub Desktop.
Send wake on lan to MAC
This file contains 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
MAC=11:22:33:44:55:66 | |
echo -e $(echo $(printf 'f%.0s' {1..12}; printf "$(echo $MAC | sed 's/://g')%.0s" {1..16}) | sed -e 's/../\\x&/g') | nc -w1 -u -b 255.255.255.255 4000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment