Skip to content

Instantly share code, notes, and snippets.

@berkedel
Created August 1, 2016 07:04
Show Gist options
  • Save berkedel/0d55d123b9e78c08fbb0e83aa43a0c23 to your computer and use it in GitHub Desktop.
Save berkedel/0d55d123b9e78c08fbb0e83aa43a0c23 to your computer and use it in GitHub Desktop.
Change your MAC address on iOS 7-8 (not working on iOS 9 atm)
# Require root (type "su", default password is "alpine")
nvram wifiaddr=10:9A:DD$(hexdump -n3 -e '/1 ":%02X"' /dev/random) && reboot

Hi there,

Change your MAC address on iOS 7-8

Changing your MAC address can be extremely useful in some situation. Let me give you a few:

  • You are limited by time on public networks and everyone want more than just 15 minutes of internet.
  • You want to regenerate your UDID
  • A lot of governments rely on this to find you and then intercept your datas. In France for example, secret services have full access to public Wi-Fi and therefore can locate you by using your MAC address.

With this little snippet of code, your iOS device will reboot and will looks like an iMac. Combining this with closing the 62078 port and modifying the name of your device (General > About > Name) for example to "François Hollande's iMac" will give you a better anonymity on public networks.

Special requirement

  • A jailbroken iOS device
  • MobileTerminal package or any SSH terminal to execute commands on the iOS device
  • developer-cmds & network-cmds packages (available on Cydia).

Important details

There are few non-important glitchs when the device will reboot depending on the iOS version:

  • For iOS 7: You are going to re-activate your device. An internet access will be required.
  • For iOS 8: You will be able to get the springboard but all apps will be locked down, you must connect to internet before and type your Apple password in one app. Everything should be back to normal after.

Both of these issues occur because your UDID changed (a part of the UDID is based on the MAC address). Don't worry, nothing has been deleted.

WARNING: You will not be able to revert back to your original MAC address if you do not write it down before everything. If you want to revert back, just do: sudo nvram wifiaddr=[MAC] && sudo reboot and replace [MAC] by your old MAC address.

WARNING: Don't mess with nvram, it could block your phone (here, your Wi-Fi card) if used in a wrong way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment