The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
|
Tutorial [Ubuntu/BT5] Randomize MAC Address on start up.
filter_list
|
|
|
Thirteen Years of Service
Posts: 113
Threads: 37
[Ubuntu/BT5] Randomize MAC Address on start up. 01-08-2013, 09:26 AM
#1
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:
Code:
#!/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:
Code:
sudo update-c.d macrotator defaults
5) Reboot
::Confirmed on Ubuntu 12.10 & BackTrack 5 R3::
Original Source:
Quote:http://ubuntuforums.org/showthread.php?t=1542046
•
Thirteen Years of Service
Posts: 21
Threads: 5
RE: [Ubuntu/BT5] Randomize MAC Address on start up. 01-08-2013, 10:24 AM
#2
Nice tutorial Goon. This will be pretty useful to some people here I'm sure.
•
Thirteen Years of Service
Posts: 1,256
Threads: 7
RE: [Ubuntu/BT5] Randomize MAC Address on start up. 01-08-2013, 04:44 PM
#3
why use an external tool, ifconfig eth0 FF:FF:FF:FF:FF:FF
•
Thirteen Years of Service
Posts: 1,759
Threads: 199
RE: [Ubuntu/BT5] Randomize MAC Address on start up. 01-08-2013, 08:00 PM
#4
Just waiting on a spare blank disk then I'm getting BT5R3 too. Nice tut.
•
Thirteen Years of Service
Posts: 113
Threads: 37
RE: [Ubuntu/BT5] Randomize MAC Address on start up. 01-09-2013, 01:33 AM
#5
(01-08-2013, 04:44 PM)w00t Wrote: why use an external tool, ifconfig eth0 FF:FF:FF:FF:FF:FF
This 'tool' will make it change for you, each time you reboot.
•
Thirteen Years of Service
Posts: 900
Threads: 52
RE: [Ubuntu/BT5] Randomize MAC Address on start up. 01-09-2013, 09:25 PM
#6
Nice tutorial Goon, keep it up bro.
Jabber: charon@exploit.im
•
Thirteen Years of Service
Posts: 1,256
Threads: 7
RE: [Ubuntu/BT5] Randomize MAC Address on start up. 01-09-2013, 11:55 PM
#7
(01-09-2013, 01:33 AM)Goon. Wrote: (01-08-2013, 04:44 PM)w00t Wrote: why use an external tool, ifconfig eth0 FF:FF:FF:FF:FF:FF
This 'tool' will make it change for you, each time you reboot.
If you use a shell script to load it, why not use that same shell script to pull data from /dev/random and pop it into the MAC?
•
Thirteen Years of Service
Posts: 113
Threads: 37
RE: [Ubuntu/BT5] Randomize MAC Address on start up. 01-10-2013, 12:06 AM
#8
(01-09-2013, 11:55 PM)w00t Wrote: (01-09-2013, 01:33 AM)Goon. Wrote: (01-08-2013, 04:44 PM)w00t Wrote: why use an external tool, ifconfig eth0 FF:FF:FF:FF:FF:FF
This 'tool' will make it change for you, each time you reboot.
If you use a shell script to load it, why not use that same shell script to pull data from /dev/random and pop it into the MAC?
Lol, If i coded it myself I'd have an answer to that question. xD
•
Users browsing this thread: