TMAC for Linux

TMAC, a simple bash program, written for the purpose of changing the MAC address of Network Interface Card (NIC) in Linux based system, provided it has Bash environment.

This tool attempts to change the MAC address of Network Interface Cards (NIC) in Linux systems by choosing a randomly-generated MAC address. The chosen MAC address is randomized in following way:
-It chooses it's first 3 octets needed for MAC address from a list of MAC vendors list provided from IEEE, which can be found here.
-The rest 3 octets are a set of complete randomly-generated hexadecimal numbers obtained with help of Pseudo-random-generator system variable.

All it needs is a Linux machine with BASH shell environment.

Looking at the subject, many people would have already been saying that "What the heck? Why do I need a MAC-address-changer for my Linux? When I already have 'one-command-solution' for that. Its so simple...

user@localhost:~$ sudo ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx

See? It's done."

But, isn't that a pain, when you have to do the same thing every time you login to your system?
The response I would expect is "What crap? All I need to do is - just put that command in $HOME/.bashrc. It's simple as that."

Now, what if, you want to randomize it each and every time you login to your system?
"mmm... [:-/] "
And, what if, you are setting the MAC address of your NIC with some random hex-chars, whose vendor still to be born on the earth?
"mmm... [:-/] "

So, the purpose of making this tool, was to generate a random-MAC address from a KNOWN MAC-vendors list and assigning the same to specified device.
That is why, effectively, it needs 2 files to work. One, a text file containing a list of MAC-vendors, used "AS IS" from IEEE's website and other one, being the bash program.

Also, there can be a question like "Why, on the earth, do I ever need to change my MAC address?"
I would ask those ones with this question in mind to go through this link
http://www.theregister.co.uk/2010/04/22/google_streetview_logs_wlans/

Well Google, anyway knows a lot about you and me.

So, this is it. I'm really happy to release this tool and little curious though, to receive the suggestions from you people and any kind of feedback would be appreciable.
I know, there must be lot more improvements to make it work better.
So, this is my request all of Linux users, please try this once at least and send me your suggestions/feedbacks.
I really would like to hear ANY kind of feedback about it, doesn't matter, even if someone would like to warn me with "Never ever, TRY TO MAKE SUCH KIND OF TOOL AGAIN or I'm gonna sue you, coz my system got crashed as soon as i RUN your tool."

Moreover, if you want to make this tool run each time you login and randomize your MAC address. I would suggest you, appending the command 'bash $PWD/tmac.sh -R <device>' in the '$HOME/.bashrc' file.


Well, for Windows users, as they already must be knowing about TMAC, Technitium MAC Address Changer. More info.


Download TMAC for Linux.
http://sourceforge.net/projects/tmac/files/latest/download