{"id":1913,"date":"2018-05-30T06:09:45","date_gmt":"2018-05-29T21:09:45","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=1913"},"modified":"2018-06-08T19:43:06","modified_gmt":"2018-06-08T10:43:06","slug":"try-gnu-mac-changermacchengr","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2018\/05\/30\/try-gnu-mac-changermacchengr\/","title":{"rendered":"MAC\u30a2\u30c9\u30ec\u30b9\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u5909\u66f4\u3057\u3066\u304f\u308c\u308bGNU MAC Changer\u3092\u8a66\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u7c21\u5358\u306bMAC\u30a2\u30c9\u30ec\u30b9\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u507d\u88c5\u3067\u304d\u308b GNU MAC Changer \u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<ul>\n<li><a href='https:\/\/github.com\/alobbs\/macchanger' title='alobbs\/macchanger: GNU MAC Changer'>alobbs\/macchanger: GNU MAC Changer<\/a><\/li>\n<\/ul>\n<h2>\u5c0e\u5165<\/h2>\n<pre><code class='language-shell' lang='shell'>$ sudo apt install macchanger\r\n<\/code><\/pre>\n<p>\u5c0e\u5165\u6642\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u6709\u52b9\u306b\u306a\u308b\u3068\u304d\u306b<code>macchanger<\/code>\u3092\u6709\u52b9\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u805e\u3044\u3066\u304d\u307e\u3059\uff0e<\/p>\n<pre><code class='language-shell' lang='shell'> \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 Configuring macchanger \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\r\n \u2502                                                                           \u2502 \r\n \u2502 Please specify whether macchanger should be set up to run automatically   \u2502 \r\n \u2502 every time a network device is brought up or down. This gives a new MAC   \u2502 \r\n \u2502 address whenever you attach an ethernet cable or reenable wifi.           \u2502 \r\n \u2502                                                                           \u2502 \r\n \u2502 Change MAC automatically?                                                 \u2502 \r\n \u2502                                                                           \u2502 \r\n \u2502                    &lt;Yes&gt;                       &lt;No&gt;                       \u2502 \r\n \u2502                                                                           \u2502 \r\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \r\n                                                                               \r\n<\/code><\/pre>\n<p><a data-flickr-embed=\"true\"  href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/40859672860\/in\/dateposted\/\" title=\"20180529_21:05:46-14602\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm2.staticflickr.com\/1750\/40859672860_93921f1871.jpg\" width=\"500\" height=\"160\" alt=\"20180529_21:05:46-14602\"\/><\/a><\/p>\n<p>\u3042\u3068\u3067\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f <code>sudo dpkg<span style='font-family:Merriweather, \"PT Serif\", Georgia, \"Times New Roman\", STSong, serif'>-<\/span>reconfigure macchanger<\/code> \u3067\u518d\u5ea6\u8a2d\u5b9a\u3067\u304d\u307e\u3059\uff0e<\/p>\n<h2>help<\/h2>\n<pre><code class='language-shell' lang='shell'>$ macchanger --help\r\nGNU MAC Changer\r\nUsage: macchanger [options] device\r\n\r\n  -h,  --help                   Print this help\r\n  -V,  --version                Print version and exit\r\n  -s,  --show                   Print the MAC address and exit\r\n  -e,  --ending                 Don&#39;t change the vendor bytes\r\n  -a,  --another                Set random vendor MAC of the same kind\r\n  -A                            Set random vendor MAC of any kind\r\n  -p,  --permanent              Reset to original, permanent hardware MAC\r\n  -r,  --random                 Set fully random MAC\r\n  -l,  --list[=keyword]         Print known vendors\r\n  -b,  --bia                    Pretend to be a burned-in-address\r\n  -m,  --mac=XX:XX:XX:XX:XX:XX\r\n       --mac XX:XX:XX:XX:XX:XX  Set the MAC XX:XX:XX:XX:XX:XX\r\n\r\nReport bugs to https:\/\/github.com\/alobbs\/macchanger\/issues\r\n\r\n<\/code><\/pre>\n<h2>\u73fe\u5728\u306eMAC\u30a2\u30c9\u30ec\u30b9\u78ba\u8a8d<\/h2>\n<p><code>wls1<\/code>\u306eMAC\u30a2\u30c9\u30ec\u30b9\u306f<code>00:22:fa:33:45:6a<\/code>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e<\/p>\n<pre><code class='language-shell' lang='shell'>$ ip link show wls1 \r\n2: wls1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000\r\n    link\/ether 00:22:fa:33:45:6a brd ff:ff:ff:ff:ff:ff\r\n<\/code><\/pre>\n<h2>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u30c0\u30a6\u30f3<\/h2>\n<p>up\u306e\u307e\u307e\u3060\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\uff0e(<code>[ERROR] Could not change MAC: interface up or insufficient permissions: Operation not permitted<\/code>)<\/p>\n<pre><code class='language-shell' lang='shell'>$ sudo ip link set dev wls1 down\r\n<\/code><\/pre>\n<h2>MAC\u30a2\u30c9\u30ec\u30b9\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u5909\u66f4<\/h2>\n<pre><code class='language-shell' lang='shell'>$ sudo macchanger -r wls1\r\nCurrent MAC:   de:ed:be:ef:01:23 (unknown)\r\nPermanent MAC: 00:22:fa:33:45:6a (Intel Corporate)\r\nNew MAC:       7a:a9:98:47:10:1a (unknown)\r\n<\/code><\/pre>\n<h2>mac\u30a2\u30c9\u30ec\u30b9\u3092\u5143\u306b\u623b\u3059<\/h2>\n<pre><code class='language-shell' lang='shell'>$ sudo macchanger -p wls1\r\nCurrent MAC:   78:a9:98:e1:2e:f8 (unknown)\r\nPermanent MAC: 00:22:fa:33:45:6a (Intel Corporate)\r\nNew MAC:       00:22:fa:33:45:6a (Intel Corporate)\r\n<\/code><\/pre>\n<h2>\u30d9\u30f3\u30c0\u30fcID\u306f\u4fdd\u6301\u3057\u3066\u30e9\u30f3\u30c0\u30e0\u306b\u5909\u66f4<\/h2>\n<p>\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4f7f\u3044\u52dd\u624b\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u306d\uff0e<\/p>\n<pre><code class='language-shell' lang='shell'>$ sudo macchanger -e wls1\r\nCurrent MAC:   00:22:fa:33:45:6a (Intel Corporate)\r\nPermanent MAC: 00:22:fa:33:45:6a (Intel Corporate)\r\nNew MAC:       00:22:fa:db:b9:ed (Intel Corporate)\r\n<\/code><\/pre>\n<h2>\u624b\u52d5\u8a2d\u5b9a<\/h2>\n<p>\u3053\u308c\u306f<code>ip link set dev wls1 de:ed:be:ef:01:23<\/code>\u3084<code>ifconfig wls1 hw ether de:ed:be:ef:01:23<\/code>\u3068\u540c\u3058\u306a\u306e\u3067\u3042\u307e\u308a<code>macchanger<\/code>\u3092\u4f7f\u3046\u610f\u5473\u306a\u3044\u3067\u3059\u306d\uff0e<\/p>\n<pre><code class='language-shell' lang='shell'>$ sudo macchanger --mac=de:ed:be:ef:01:23 wls1\r\nCurrent MAC:   00:22:fa:33:45:6a (Intel Corporate)\r\nPermanent MAC: 00:22:fa:33:45:6a (Intel Corporate)\r\nNew MAC:       de:ed:be:ef:01:23 (unknown)\r\n<\/code><\/pre>\n<h2>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u30a2\u30c3\u30d7<\/h2>\n<p>up\u3057\u3066\u4f55\u6642\u3082\u306e\u3088\u3046\u306b\u5229\u7528\u3057\u307e\u3059\uff0e<\/p>\n<pre><code class='language-shell' lang='shell'>$ sudo ip link set dev wls1 up\r\n<\/code><\/pre>\n<h2>\u81ea\u52d5\u8d77\u52d5\u6642\u306e\u52d5\u4f5c<\/h2>\n<p><code>\/etc\/network\/if<span style='font-family:Merriweather, \"PT Serif\", Georgia, \"Times New Roman\", STSong, serif'>-<\/span>pre<span style='font-family:Merriweather, \"PT Serif\", Georgia, \"Times New Roman\", STSong, serif'>-<\/span>up.d\/macchanger<\/code>, <code>\/etc\/network\/if<span style='font-family:Merriweather, \"PT Serif\", Georgia, \"Times New Roman\", STSong, serif'>-<\/span>post<span style='font-family:Merriweather, \"PT Serif\", Georgia, \"Times New Roman\", STSong, serif'>-<\/span>down.d\/macchanger<\/code>\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\u3053\u306e\u4e2d\u3092\u898b\u308b\u3068\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code><span style='font-family:Merriweather, \"PT Serif\", Georgia, \"Times New Roman\", STSong, serif'>-<\/span>e<\/code> option\u3067\u5b9f\u884c\u3055\u308c\u308b\u306e\u3067\u30d9\u30f3\u30c0\u30fcID\u306f\u7dad\u6301\u3057\u305f\u72b6\u614b\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u8a2d\u5b9a\u3055\u308c\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\n<pre><code class='language-shell' lang='shell'>\/usr\/bin\/{package} -e IFACE &gt;&gt; $LOGFILE 2&gt;&amp;1\r\n<\/code><\/pre>\n<p>\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306f<code>\/var\/log\/macchanger.log<\/code>\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\uff0e<\/p>\n<h2>\u74b0\u5883<\/h2>\n<pre><code>$ neofetch \r\n       _,met$$$$$gg.          mk@x200 \r\n    ,g$$$$$$$$$$$$$$$P.       ------- \r\n  ,g$$P&quot;     &quot;&quot;&quot;Y$$.&quot;.        OS: Debian GNU\/Linux unstable (sid) x86_64 \r\n ,$$P&#39;              `$$$.     Model: 74574PJ ThinkPad X200 \r\n&#39;,$$P       ,ggs.     `$$b:   Kernel: 4.16.0-1-amd64 \r\n`d$$&#39;     ,$P&quot;&#39;   .    $$$    Uptime: 2 days, 13 hours, 17 minutes \r\n $$P      d$&#39;     ,    $$P    Packages: 5718 \r\n $$:      $$.   -    ,d$$&#39;    Shell: bash 4.4.19 \r\n $$;      Y$b._   _,d$P&#39;      Resolution: 1280x800 \r\n Y$$.    `.`&quot;Y$$$$P&quot;&#39;         WM: awesome \r\n `$$b      &quot;-.__              Terminal: sakura \r\n  `Y$$                        Terminal Font: Fira Code 11 \r\n   `Y$$.                      CPU: Intel Core 2 Duo P8400 (2) @ 2.267GHz \r\n     `$$b.                    GPU: Intel\u00ae GM45 Express Chipset \r\n       `Y$$b.                 Memory: 6579MiB \/ 7871MiB \r\n          `&quot;Y$b._ \r\n              `&quot;&quot;&quot;                                    \r\n\r\n$ dpkg-query -W macchanger\r\nmacchanger      1.7.0-5.3+b1\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7c21\u5358\u306bMAC\u30a2\u30c9\u30ec\u30b9\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u507d\u88c5\u3067\u304d\u308b GNU MAC Changer \u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e alobbs\/macchanger: GNU MAC Changer \u5c0e\u5165 $ sudo apt install macch [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6,199],"tags":[338,337],"class_list":["post-1913","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-mac-address","tag-macchanger"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=1913"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1913\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=1913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=1913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=1913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}