This script can be used to change a devices MAC address, hostname (and therefore also IP address). It supports several modes. Information is supplied in the -h option.
- Add this line to your .zshrc file:
alias nmac='~/path/to/file/nmac.sh' - Add the
.configfile to the folder of the script. - Add a
mac-vendors.csvfile to the same folder. Download from f.E. maclookup.app - (optional) Add a hostlist.txt file with custom hostnames to randomly choose from. Mandatory for
-moption.
This script has no further dependencies outside the macOS base system.
This script is written by snw7 and licensed under the MIT License.