{"id":949,"date":"2012-03-12T15:21:37","date_gmt":"2012-03-12T15:21:37","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=949"},"modified":"2012-03-18T07:12:04","modified_gmt":"2012-03-18T07:12:04","slug":"how-to-spoof-a-mac-address-on-the-mac-os-x-lion","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=949","title":{"rendered":"How to Spoof A MAC Address on Mac OS X Lion"},"content":{"rendered":"<p><a href=\"https:\/\/blog.designed79.co.uk\/wp-content\/uploads\/2012\/03\/change-mac-address.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-950\" title=\"change-mac-address\" src=\"https:\/\/blog.designed79.co.uk\/wp-content\/uploads\/2012\/03\/change-mac-address.jpg\" alt=\"\" width=\"620\" height=\"320\" srcset=\"https:\/\/blog.designed79.co.uk\/wp-content\/uploads\/2012\/03\/change-mac-address.jpg 620w, https:\/\/blog.designed79.co.uk\/wp-content\/uploads\/2012\/03\/change-mac-address-300x154.jpg 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>A MAC address is a unique identification number assigned to network interfaces, these can be attached to physical hardware like NIC and Wi-Fi cards or assigned to virtual machines. On some occasions, you\u2019ll need to change a MAC address to another ID.<\/p>\n<p><strong>Get a New MAC Address<\/strong><br \/>\nThe first thing you\u2019ll want to do is retrieve the intended MAC address. If you have one in mind then use that, but if you aren\u2019t trying to spoof a specific address and just need a\u00a0<a href=\"http:\/\/osxdaily.com\/2010\/11\/10\/random-mac-address-generator\/\">random<\/a>\u00a0one, use the following command to generate one with openssl:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">openssl rand -hex 6 | sed 's\/\\(..\\)\/\\1:\/g; s\/.$\/\/'<\/div><\/div>\n<p>MAC addresses are always in the format of xx:xx:xx:xx:xx:xx, yours must conform to this format in order to work. For the purpose of this walkthrough the randomly generated address of \u201cd4:33:a3:ed:f2:12 \u201d will be used.<\/p>\n<h2>Changing the MAC Address<\/h2>\n<p>If you aren\u2019t in the Terminal yet, open it now. We\u2019ll use the interface en0 for this, but yours could be en1 (read notes at bottom). The command for changing the MAC address is as follows:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx<\/div><\/div>\n<p>Replace \u201cxx:xx:xx:xx:xx:xx\u201d with the desired MAC address, in the example case this will look like:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">sudo ifconfig en0 ether d4:33:a3:ed:f2:12<\/div><\/div>\n<p>Hit return and enter the administrators password to set the new address. To confirm it has been changed, type the following:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">ifconfig en0 |grep ether<\/div><\/div>\n<p>You can also\u00a0<a href=\"http:\/\/osxdaily.com\/2012\/02\/28\/find-mac-address-mac-os-x\/\">find it in Network preferences<\/a>, though the GUI doesn\u2019t always report the MAC change immediately, instead waiting until the network connection has been cycled.<\/p>\n<p><strong>Notes &amp; Troubleshooting<\/strong><\/p>\n<ul>\n<li>If you aren\u2019t sure which interface to use (en0, en1, etc), type \u201cifconfig\u201d and find it that way. For MacBook Air without an ethernet port the en0 is usually the Wi-Fi interface, whereas a MacBook, iMac, Mac Mini, MacBook Pro, or any Mac that has an ethernet port will probably use en1 for Wi-Fi instead<\/li>\n<li>You may want to note the default hardware MAC address before beginning<\/li>\n<li>Some Macs will use the following command instead:\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">sudo ifconfig en1 Wi-Fi xx:xx:xx:xx:xx:xx<\/div><\/div>\n<p>OS X Lion and later renamed \u2018airport\u2019 to Wi-Fi and thus the naming change<\/li>\n<li>You will need access to an admin account or have the\u00a0<a href=\"http:\/\/osxdaily.com\/2012\/01\/09\/enable-root-user-account-os-x-lion\/\">root user enabled<\/a><\/li>\n<li>This has been tested on a MacBook Air and MacBook Pro running OS X 10.7 and OS X 10.8, older versions of OS X can\u00a0<a href=\"http:\/\/osxdaily.com\/2008\/01\/17\/how-to-spoof-your-mac-address-in-mac-os-x\/\">go here<\/a><\/li>\n<\/ul>\n<p>The whole process should take no more than 15 seconds or so<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A MAC address is a unique identification number assigned to network interfaces, these can be attached to physical hardware like NIC and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-949","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=949"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/949\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}