Computing

Mac Address Changer

Submitted by ZiZien, , Thread ID: 78937

Thread Closed
ZiZien
Member
Level:
0
Reputation:
3
Posts:
144
Likes:
10
Credits:
35
07-03-2018, 09:30 PM
#1
Do any of you know of a way to set up an automated mac address changer that will change your devices mac address say every minute, specifically looking for one that works with Linux systems, but finding one for windows would also be good.

RE: Mac Address Changer

Cuddles
The Robot <3
Level:
0
Reputation:
66
Posts:
1.88K
Likes:
43
Credits:
-109
08-03-2018, 02:04 AM
#2
This thread has been moved to Computing by a Staff member. Please use the right section next time.

RE: Mac Address Changer

hackdania
Lurker
Level:
0
Reputation:
0
Posts:
5
Likes:
0
Credits:
5
11-03-2018, 11:14 AM
#3
I don't have the solution to your problem, BUT I can point you to some ideas which might have the same effect you are looking for. If you have a router with custom firmware (tomato or dd-wrt), you can easily change the routers MAC address (which has the same effect as changing the mac address of the PC - since its really the routers mac address that your ISP is communicating with). I have tomato on my router. I myself haven't written any scripts, but a quick search on google will show examples of what to do.

RE: Mac Address Changer

Bassdrop
Neurofunk Selecta
Divine
Level:
0
Reputation:
72
Posts:
593
Likes:
109
Credits:
11.6K
11-03-2018, 03:25 PM
This post was last modified: 11-03-2018, 03:26 PM by Bassdrop
#4
Since a network device can't be active/in-use while its MAC address is being changed, you'll be constantly disabling/re-enabling your network connection by doing it every minute...

That said, to do it in Linux,you can install "macchanger" from your regular repository (or grab it from http://gnu.org/software/macchanger/ ).

Assuming the networkinterfaceyou want to change is "eth0", from a shellprompt you'll want to do the following (with root permisisons):

Code:
ifconfig eth0 down
macchanger -r eth0
ifconfig eth0 up


"ifconfig eth0 down" to disable the eth0 interface.
"macchanger -r eth0" to assign a new address (the -r flag randomizes it, or use -e instead to assign assign a random address using the same vendor.)
"ifconfig eth0 up" to bring the interface back up.

If it's a wireless card as opposed to an ethernet card, the interfacewill probablybe "wlan0" instead of "eth0" but you can list the availableinterfaces by typing "ip link show" or "ifconfig".


Then justadd a cron job (sudo crontab -e) toschedule it to runas frequently as you want.

Cheers,
B

Life is like a box of chocolates, it doesn't last as long for fat people.

RE: Mac Address Changer

ZiZien
Member
Level:
0
Reputation:
3
Posts:
144
Likes:
10
Credits:
35
OP
18-03-2018, 12:06 AM
#5
11-03-2018, 03:25 PM
Bassdrop Wrote:
Since a network device can't be active/in-use while its MAC address is being changed, you'll be constantly disabling/re-enabling your network connection by doing it every minute...

That said, to do it in Linux,you can install "macchanger" from your regular repository (or grab it from http://gnu.org/software/macchanger/ ).

Assuming the networkinterfaceyou want to change is "eth0", from a shellprompt you'll want to do the following (with root permisisons):

Code:
ifconfig eth0 down
macchanger -r eth0
ifconfig eth0 up


"ifconfig eth0 down" to disable the eth0 interface.
"macchanger -r eth0" to assign a new address (the -r flag randomizes it, or use -e instead to assign assign a random address using the same vendor.)
"ifconfig eth0 up" to bring the interface back up.

If it's a wireless card as opposed to an ethernet card, the interfacewill probablybe "wlan0" instead of "eth0" but you can list the availableinterfaces by typing "ip link show" or "ifconfig".


Then justadd a cron job (sudo crontab -e) toschedule it to runas frequently as you want.

Cheers,
B
Yeah that's ultimately what I realized, the reason I thought there may be another way was that I have this "WIFI de-auther" which is just a motherboard with a custom firmware that this guy made and it has an option that makes it change the mac constantly like every minute (might be more like every 10 seconds actually, I don't remember.) But yeah from what I can tell whenever you're changing it on normal devices it has to have it disabled.

RE: Mac Address Changer

Bassdrop
Neurofunk Selecta
Divine
Level:
0
Reputation:
72
Posts:
593
Likes:
109
Credits:
11.6K
21-03-2018, 06:34 AM
#6
18-03-2018, 12:06 AM
ZiZien Wrote:
Yeah that's ultimately what I realized, the reason I thought there may be another way was that I have this "WIFI de-auther" which is just a motherboard with a custom firmware that this guy made and it has an option that makes it change the mac constantly like every minute (might be more like every 10 seconds actually, I don't remember.) But yeah from what I can tell whenever you're changing it on normal devices it has to have it disabled.

You might have some luck with a multi-LAN/multi-WAN setup, configured in a way to delay packets or alternate between them... or use one device for regular ongoing connections which don't require MAC address changes and the other to make periodic outgoing connections which do.

Life is like a box of chocolates, it doesn't last as long for fat people.

RE: Mac Address Changer

ZiZien
Member
Level:
0
Reputation:
3
Posts:
144
Likes:
10
Credits:
35
OP
22-03-2018, 04:50 PM
#7
21-03-2018, 06:34 AM
Bassdrop Wrote:
You might have some luck with a multi-LAN/multi-WAN setup, configured in a way to delay packets or alternate between them... or use one device for regular ongoing connections which don't require MAC address changes and the other to make periodic outgoing connections which do.

So you're saying set up an ethernet with and wifi connection and make them automatically switch between each otherand when they switch it changes the mac address on whichever one gets disabled?

is making a switch like that possible?

Users browsing this thread: 1 Guest(s)