{"id":388,"date":"2018-10-17T10:29:55","date_gmt":"2018-10-17T10:29:55","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/how-to-change-mac-address-in-kali-linux-using-macchanger\/"},"modified":"2018-10-17T10:29:55","modified_gmt":"2018-10-17T10:29:55","slug":"how-to-change-mac-address-in-kali-linux-using-macchanger","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/how-to-change-mac-address-in-kali-linux-using-macchanger\/","title":{"rendered":"How To Change MAC Address in Kali Linux Using Macchanger"},"content":{"rendered":"<p><i>Last updated: July 11 2017<\/i><\/p>\n<p>Today you&#8217;ll learn how to spoof your MAC address in Kali Linux using macchanger.<\/p>\n<p>Before I start, there are two ways to go about changing your MAC address in Kali Linux.<\/p>\n<p>1. Using Macchanger<br \/>2. Manually\u200b<\/p>\n<p>I&#8217;ll be showing you how to do both.<\/p>\n<p><b>\u200bSo, what is macchanger?<\/b><\/p>\n<p><a href=\"https:\/\/github.com\/alobbs\/macchanger\" target=\"\">Macchanger<\/a> is a free MAC address manipulation tool that comes pre-installed in <a href=\"http:\/\/kennyvn.com\"><\/a><a href=\"http:\/\/kennyvn.com\/cheatsheet-useful-bash-commands-linux\/\">Kali Linux<\/a>.<\/p>\n<p>In short, Macchanger makes it easy to spoof or change your MAC address.<\/p>\n<p>Here&#8217;s a quick how-to navigation for those who want to jump ahead.<\/p>\n<p><b>NOTE: <\/b>If macchanger is not installed on your system, follow the steps below to install it.<\/p>\n<h3>How to install Macchanger<\/h3>\n<p>Open up a terminal and type the following:<\/p>\n<p>sudo apt-get install macchanger<\/p>\n<p>During the installation process, you&#8217;ll be asked if you want to spoof the MAC address each time you attach a ethernet cable or a network adapter.<\/p>\n<p>If you select yes, you&#8217;ll automatically be assigned a new MAC address for each interface brought up or plugged in. It&#8217;s up to you if you want to enable this or not.<\/p>\n<p>It&#8217;s up to you if you want to enable this or not.<\/p>\n<p><b>If you have mac-filtering enabled on your router, you&#8217;ll want to select NO on this one; otherwise, you won&#8217;t be able to connect to your own wifi.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"configure macchanger kali linux\" height=\"205\" src=\"http:\/\/kennyvn.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" width=\"527\" \/><\/p>\n<p>Afterwards, check to make sure it&#8217;s installed and working by typing &#8220;macchanger&#8221; in the terminal.<\/p>\n<p>It should look like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"kali linux macchanger\" height=\"167\" src=\"http:\/\/kennyvn.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" width=\"562\" \/><\/p>\n<h3>How to display available network interfaces<\/h3>\n<p>Next, we need to determine the interface we want to spoof.<\/p>\n<p>To list all available network interfaces on your system, type the following command:<\/p>\n<p>ifconfig<img loading=\"lazy\" decoding=\"async\" alt=\"ifconfig determine interface to spoof\" height=\"298\" src=\"http:\/\/kennyvn.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" width=\"569\" \/><\/p>\n<p>Depending on which interface you want to spoof, you&#8217;ll want to make sure you use the name of your interface. Mine is &#8220;wlan0.&#8221;<\/p>\n<p>Now that we know what interface to use, it&#8217;s time to get spoofin!<\/p>\n<h3>Bring down the interface you want to spoof<\/h3>\n<p>If you spoof without bringing down the interface, you&#8217;ll get the &#8220;insufficient permission&#8221; or &#8220;device is busy&#8221; error.<\/p>\n<p><b>You must always bring the interface down before changing the MAC address. <\/b><\/p>\n<p>Here&#8217;s how:<b><\/b><\/p>\n<p>ifconfig wlan0 down<\/p>\n<p>Remember to replace &#8220;wlan0&#8221; with your interface.<\/p>\n<h3>Print your MAC address<\/h3>\n<p>This will show you the current (and permanent) MAC address of an interface.<\/p>\n<p><b>-s <\/b>= print the MAC address<\/p>\n<p>macchanger -s wlan0\u200b<\/p>\n<h3>Set (specify) your MAC address<\/h3>\n<p>This will set your MAC address to whatever value you assign it.<\/p>\n<p><b>-m <\/b>= set the MAC address<\/p>\n<p>macchanger -m 11:22:33:44:55:66 wlan0<\/p>\n<h3>Change MAC address to a random vendor<\/h3>\n<p>This will randomize your MAC address and it will use one from a known vendor.<\/p>\n<p><b>NOTE: <\/b>A vendor is the manufacturer of the network interface card (ie. TP-LINK TECHNOLOGIES CO., LTD)<\/p>\n<p><b>-A <\/b>= set a random MAC address of any kind.<\/p>\n<p>macchanger -A wlan0<\/p>\n<h3>Change MAC address but use the same vendor<\/h3>\n<p>This will randomize your MAC address but it will use the same vendor as your current one.<\/p>\n<p><b>-a <\/b>= set a random MAC address of the same kind<\/p>\n<p>macchanger -a wlan0<\/p>\n<h3>Change to a fully random MAC address with no vendor<\/h3>\n<p>This will set a fully random MAC address with no vendor.<\/p>\n<p>If you were to use a <a href=\"https:\/\/macvendors.com\/\">MAC address lookup tool<\/a>, it won&#8217;t be able to detect the manufacturer because it&#8217;s completely made up.<\/p>\n<p><b>-r <\/b>= set a fully random MAC address<\/p>\n<p>macchanger -r wlan0<\/p>\n<h3>Reset (change back) to original MAC address<\/h3>\n<p>This will revert the changes and it will go back to using the permanent MAC address of the interface.<\/p>\n<p><b>-p <\/b>= reset to original MAC address \u200b<\/p>\n<p>macchanger -p wlan0<\/p>\n<h3>View a list of known MAC vendors<\/h3>\n<p>If you want to set your own MAC address, this will show you a huge list of legit MAC vendors \u200byou can choose from.<\/p>\n<p><b>-l <\/b>= print known vendors<\/p>\n<p>macchanger -l<\/p>\n<p><b>NOTE: <\/b>After making changes to the MAC address, you&#8217;ll need to bring the interface back up by typing: <i>ifconfig wlan0 up.<\/i><\/p>\n<h2>How to manually change MAC address (without using macchanger)<\/h2>\n<p>If you don&#8217;t have macchanger installed, here&#8217;s how to change your MAC address manually.<\/p>\n<p>For this to work, you have to use a MAC address from a known vendor. Fully random MAC address won&#8217;t always work.<\/p>\n<p>ifconfig wlan0 down<br \/>ifconfig \u200bwlan0 hw ether fc:c7:34:12:bc:1c<br \/>ifconfig wlan0 up<\/p>\n<p>That&#8217;s it! Let me know if you have any questions. I&#8217;ll be glad to help.<\/p>\n<p> <a href=\"http:\/\/kennyvn.com\/change-mac-address-macchanger-kali-linux\/\" target=\"_blank\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last updated: July 11 2017 Today you&#8217;ll learn how to spoof your MAC address in Kali Linux using macchanger. Before I start, there are two ways to go about changing your MAC address in Kali Linux. 1. Using Macchanger2. Manually\u200b I&#8217;ll be showing you how to do both. \u200bSo, what is macchanger? Macchanger is a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/how-to-change-mac-address-in-kali-linux-using-macchanger\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Change MAC Address in Kali Linux Using Macchanger&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":0,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}