python3 setup.py build
Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so
| #!/usr/bin/env bash | |
| mac_address=$1 | |
| # Strip colons from the MAC address | |
| mac_address=$(echo $mac_address | sed 's/://g') | |
| broadcast=$2 | |
| port=4343 | |
| # Magic packets consist of 12*`f` followed by 16 repetitions of the MAC address |