Jump to content

[TuT] [Ubuntu/BT5] Randomize MAC Address on start up.


Recommended Posts

 

1) load macchanger from the repositories

 

This is a simple, well documented, self-explanatory program that requires manual running - we want to automate it.

 

2) write a small script:

 

#!/bin/sh
# run macchanger at boot
    
    sudo service network-manager stop

    sudo macchanger -A eth1
    sudo macchanger -A wlan1

    sudo service network-manager start

exit 0

 

Note the wlan / eth codes might need tweaking

 

3) Save this as macrotator in /etc/init.d/ and make it executable

 

4) Register the script by running:

 

sudo update-c.d macrotator defaults

 

5) Reboot

 

::Confirmed on Ubuntu 12.10 & BackTrack 5 R3::

 

Original Source:

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...