From 9d1f2c43226bb88062b4d588dffb99e99f5a7466 Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 16 Aug 2023 08:12:40 -0700 Subject: [PATCH] Update --- ...rly Generate a Randomize MAC Address on macOS.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/content/posts/macos/Properly Generate a Randomize MAC Address on macOS.md b/content/posts/macos/Properly Generate a Randomize MAC Address on macOS.md index 1049f58..39ed75a 100644 --- a/content/posts/macos/Properly Generate a Randomize MAC Address on macOS.md +++ b/content/posts/macos/Properly Generate a Randomize MAC Address on macOS.md @@ -20,7 +20,7 @@ Randomizing the mac address only makes sense if you use a not-very-unique hostna ### Improper instructions -Unfortunately, most of the guides I could find recommends randomizing the entire MAC address instead of the final 3 octets. Take guides recommending `macchanger` for example, they fail to mention that the program does [this](https://github.com/acrogenesis/macchanger/blob/main/bin/macchanger#L37): +Unfortunately, most of the guides I could find recommends randomizing the entire MAC address instead of the final 3 octets. Take the guides recommending `macchanger` for example, they fail to mention that the program does [this](https://github.com/acrogenesis/macchanger/blob/main/bin/macchanger#L37): ```rust [format('%0.2x', rand(256) & ~1), (1..5).map { format('%0.2x', rand(256)) }].join(':') @@ -32,4 +32,13 @@ Or this snippet from PrivacyGuides: These will give you completely randomized MAC addresses, which is not what we want. -### Doing it the Proper Way \ No newline at end of file +### Doing it the Proper Way + +First, you need to get the name of your network interface and its MAC address. You can check this with + +```bash +ifconfig +``` + +In most cases, your interface will be `en0`, the Wifi network interface on modern Macbooks. +