注意:
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) m (make er show up on google better) |
Threesixes (talk | contribs) m (=D) |
||
Line 25: | Line 25: | ||
==== Revert All Changes ==== | ==== Revert All Changes ==== | ||
{{console|body=###i## macchanger -p wlan0}} | {{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