注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Package:Macchanger"
Jump to navigation
Jump to search
Threesixes (talk | contribs) (initial commit before i wreck it) |
Threesixes (talk | contribs) m (=D) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
|Homepage=https://github.com/alobbs/macchanger | |Homepage=https://github.com/alobbs/macchanger | ||
}} | }} | ||
MAC changer is a program that will change an interfaces mac address. | |||
{{console|body=###i## emerge net-analyzer/macchanger}} | {{console|body=###i## emerge net-analyzer/macchanger}} | ||
=== Usage === | === Usage === | ||
==== | {{note|to change an address you must completely disconnect from all networks on the interface}} | ||
{{console|body=###i## | ==== Show Vendor Codes ==== | ||
{{console|body=###i## macchanger -l}} | |||
==== | ==== Generate a Random Address ==== | ||
{{console|body=###i## | {{console|body=###i## macchanger -r wlan0}} | ||
==== | ==== Pretend To Be A Burned In Address ==== | ||
{{console|body=###i## | {{console|body=###i## macchanger -rb wlan0}} | ||
==== | ==== Manually Assign an Address ==== | ||
{{console|body=###i## | {{console|body=###i## macchanger -m 11:22:33:44:55:66 wlan0}} | ||
==== | ==== Revert All Changes ==== | ||
{{console|body=###i## | {{console|body=###i## 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. | |||
{{file|name=/etc/NetworkManager/dispatcher.d/pre-up.d/macchanger.sh|lang=bash|desc=auto change mac address|body= | |||
#!/bin/bash | |||
macchanger -eb $1 | |||
}} | |||
The script must be executable: | |||
{{console|body=###i## chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/macchanger.sh}} | |||
Restart NetworkManager: | |||
{{console|body=###i## rc-service NetworkManager restart}} | |||
{{EbuildFooter}} | {{EbuildFooter}} |
Latest revision as of 11:44, September 7, 2015
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