From fa5a50c431d36dba05102164fe2cbe70920e5fb9 Mon Sep 17 00:00:00 2001 From: Sun Knudsen Date: Thu, 26 Aug 2021 06:57:51 -0400 Subject: [PATCH] Improved formatting --- .../README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/how-to-spoof-mac-address-and-hostname-automatically-at-boot-on-macos/README.md b/how-to-spoof-mac-address-and-hostname-automatically-at-boot-on-macos/README.md index 8c225cd..22bf2da 100644 --- a/how-to-spoof-mac-address-and-hostname-automatically-at-boot-on-macos/README.md +++ b/how-to-spoof-mac-address-and-hostname-automatically-at-boot-on-macos/README.md @@ -129,16 +129,23 @@ EOF ### Step 8: reboot and confirm hostname and MAC address have been spoofed +#### Spoofed hostname + ```console -# Spoofed hostname $ scutil --get HostName Gatlins-MacBook-Pro +``` -# Spoofed MAC address +#### Hardware MAC address + +```console $ ifconfig en0 | grep ether | awk '{print $2}' 20:ee:28:31:03:f6 +``` -# Hardware MAC address +#### Hardware MAC address + +```console $ networksetup -listallhardwareports | awk -v RS= '/en0/{print $NF}' 9c:f4:8e:d6:2b:7d ```