注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Package:Macchanger

From Funtoo
Revision as of 11:44, September 7, 2015 by Threesixes (talk | contribs) (=D)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Macchanger

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.


MAC changer is a program that will change an interfaces mac address.

root # emerge net-analyzer/macchanger

Usage

   Note

to change an address you must completely disconnect from all networks on the interface

Show Vendor Codes

root # macchanger -l

Generate a Random Address

root # macchanger -r wlan0

Pretend To Be A Burned In Address

root # macchanger -rb wlan0

Manually Assign an Address

root # macchanger -m 11:22:33:44:55:66 wlan0

Revert All Changes

root # macchanger -p wlan0

NetworkManager Autostart

The e flag will keep the vendor code, and b will pretend to be burned in resulting in random macs every interface up.

   /etc/NetworkManager/dispatcher.d/pre-up.d/macchanger.sh (bash source code) - auto change mac address
#!/bin/bash
macchanger -eb $1

The script must be executable:

root # chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/macchanger.sh

Restart NetworkManager:

root # rc-service NetworkManager restart