July 21, 2024
Comment changer la MAC adresse de votre Airport dans Snow Leopard

Comment changer la MAC adresse de votre Airport dans Snow Leopard

Posted February 12, 2010 at 11:41pm by iClarified
Voici les instructions pour changer la MAC adresse de votre adaptateur WIFI dans Snow Leopard.

L'adresse Media Access Control (adresse MAC) est un identifiant unique affecté a tous les adaptateurs réseaux ou carte réseaux.

Notez que ces instructions ont fonctionné pour nous sur un MacBook Pro tournant sous Snow Leopard 10.6.2. Nous ne pouvons pas confirmer qu'elles fonctionneront pour un autre système d'opération ou d'autres matériels.

Première étape
Lancez Terminal depuis votre dossier Applications:Utilitaires.
Comment changer la MAC adresse de votre Airport dans Snow Leopard

Deuxième étape
Entrez ifconfig en1 | grep ether pour trouver l'adresse MAC actuelle de votre adaptateur WIFI.
Comment changer la MAC adresse de votre Airport dans Snow Leopard

Troisième étape
Assurez vous que votre Airport est allumé et entrez ce qui suit dans la fenêtre du Terminal pour la dissocier des autres réseaux.

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
Comment changer la MAC adresse de votre Airport dans Snow Leopard

Entrez votre mot de passe administrateur quand il vous est demandé.
Comment changer la MAC adresse de votre Airport dans Snow Leopard

Quatrième étape
Entrez la commande suivante pour changer votre MAC adresse

sudo ifconfig en1 ether 00:11:22:33:44:55

Remplacez 00:11:22:33:44:55 avec l'adresse de votre choix.
Comment changer la MAC adresse de votre Airport dans Snow Leopard

Cinquième étape
Pour vérifier que le changement est correctement effectué, entrez ifconfig en1 | grep ether dans la fenêtre du Terminal.
Comment changer la MAC adresse de votre Airport dans Snow Leopard

Comment changer la MAC adresse de votre Airport dans Snow Leopard

*Attention le redémarrage de l'ordinateur réinitialise la MAC adresse à sa valeur par défaut.
Add Comment
Would you like to be notified when someone replies or adds a new comment?
Yes (All Threads)
Yes (This Thread Only)
iClarified Icon
Would you like to be notified when we post a new Apple news article or tutorial?
Comments (9)
You must login or register to add a comment...
Florent - April 4, 2010 at 12:06pm
It works fine under 10.6.3 By the way, the command " sudo ifconfig en1 down " + " sudo ifconfig en1 ether xx:xx:xx:xx:xx:xx " now only works under 10.6.2. If you upgrade your MacOS X to 10.6.3 you'll get this message : ioctl (SIOCAIFADDR) Device power is off Of course, if you tried with airport switched up, you won't get this but the command won't have any effect. I've reported this issue.
calsim - February 14, 2011 at 7:12pm
It seems to work fine under Mac OSX 10.6.6
onu - February 14, 2010 at 4:37pm
and "airport express" ?? how to spoof adress? pls
EvilPenguin - February 13, 2010 at 2:23am
Here is a binary for this: http://nakedproductions.us/Harddrive/MACaddy
Macsl21 - February 13, 2010 at 12:42am
This doesn't really work. This used to work in 10.5.x, but they fixed/broke this in 10.6.x. What happens is it all appears to work, just as your screenshots show, but...you'll be unable to log into a wifi network that requires a password. If you go to Preferences->Network, you'll see if you click on your Airport icon and the Advanced button that it will show your old MAC address. Somehow the MAC address is being changed only in one of two locations. It's the changing of the second location that apparently nobody has been able to figure out and which would allow us to change our MAC address for any practical use. If anyone has any ideas, please post and I'll test.
gmcd2200 - April 6, 2010 at 11:37pm
random mac addr code below. ####################################### #!/bin/ksh # # Written by Graeme Mc Donough # Copy and manipulate this .. but give me credit. for the code thanks. # Version 1.0 16-04-2010 # # # This script is called "rand_mac.ksh" # # # This script is free.. enjoy.. # This script was written to work with Mac Osx 10.6 # Mac OSX 10.6 ksh has a bug.. so I added a work around in the script. # # Assumptions # * you have put in a link for the airport to /usr/sbin # * you will run this script with "sudo ./rand_mac.ksh" # * You will know how to use vi.. I am a unix person.. not a pico person.. so don't ask me # # NOTES # * I found a way to make the Airport auto lock back on to your fav wireless # just un-comment the 3 bottom lines. Note.. it may make the script not work well" # Go figure /shrug /usr/sbin/airport -z counter=0 GET_HEX () { if [[ ${VAR} -lt 10 ]] then HEX_VALUE=`echo ${VAR}` fi if [[ ${VAR} -eq "10" ]] then HEX_VALUE=a fi if [[ ${VAR} -eq "11" ]] then HEX_VALUE=b fi if [[ ${VAR} -eq "12" ]] then HEX_VALUE=c fi if [[ ${VAR} -eq "13" ]] then HEX_VALUE=d fi if [[ ${VAR} -eq "14" ]] then HEX_VALUE=e fi if [[ ${VAR} -eq "15" ]] then HEX_VALUE=f fi # echo "${HEX_VALUE}" } for i in {1..6}} do VAR=$((RANDOM%15)) GET_HEX FULL_HEX=`echo ${FULL_HEX}${HEX_VALUE}` VAR=$((RANDOM%15)) GET_HEX FIX_I=`echo ${i} | awk -F\} '{print $1}'` #echo $FIX_I if [ ${FIX_I} -eq 6 ] then FULL_HEX=`echo ${FULL_HEX}${HEX_VALUE}` else FULL_HEX=`echo ${FULL_HEX}${HEX_VALUE}:` fi done echo "The new randomised Mac Addr = ${FULL_HEX}" echo "Attempting to change en0 to the New Mac Addr it does not work all the time." echo " the first thing we do is wait... aournd 20 seconds ... boooring" sleep 25 ifconfig en0 ether ${FULL_HEX} echo "The (hopefully changed to tbe the same) mac addr for en0 = ${VALUE}" echo "if not .. run this again.. .. it will eventually work" #ifconfig en0 down #sleep 3 #ifconfig en0 up ######################################
Robert - May 1, 2010 at 5:11pm
I was thinking on changing the files related to airport setup in terminal for airport - anyone try this... I found them once, but can't remember where they are located.
helix - August 5, 2010 at 10:14pm
This works fine for me on 10.6.4. I'm using it to spoof my MAC address so I can get on Clearwires 4G network with my Macbook Pro even through I'm using an iSpot and the 25.00 dollar a month "i" only service plan... This is Frickin great
Luca G.
Luca G. - July 10, 2011 at 12:26pm
You must disassociate before trying to change the Mac address. The key is to run: airport -z I posted full instructions some time ago on my blog: http://www.nervous.it/lang/en-us/2009/12/mac-spoofing-on-snow-leopard/
Recent. Read the latest Apple News.
Tutorials. Help is here.
Where to Download macOS Monterey
Where to Download macOS Ventura
AppleTV Firmware Download Locations
Where To Download iPad Firmware Files From
Where To Download iPhone Firmware Files From
Deals. Save on Apple devices and accessories.