Changing MAC address via nvram

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
mkaand
DD-WRT User


Joined: 06 Jan 2008
Posts: 307
Location: Istanbul

PostPosted: Fri Aug 11, 2017 11:10    Post subject: Changing MAC address via nvram Reply with quote
Hi;

I tried to change my remote router's WAN MAC address via following command. Now router doesn't give me response but it behinds captive portal and VPN (so maybe router didn't brick)

Did I do wrong something? Is it brick now or not? I will go to remote router location on next week.

Quote:
#!/bin/bash
a=00:60:2F$(hexdump -n3 -e '/1 ":%02X"' /dev/random)
nvram set wan_hwaddr=$a;
nvram set def_hwaddr=$a;
nvram commit;
echo $a;
reboot


Router Model: TP-Link WR1043ND

_________________
Kaan's World | @mkaand | PLEX Archive | Trakt.tv
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6867
Location: Romerike, Norway

PostPosted: Sat Aug 12, 2017 8:18    Post subject: Reply with quote
Flush the ARP Table on the device that the router is connected to.
mkaand
DD-WRT User


Joined: 06 Jan 2008
Posts: 307
Location: Istanbul

PostPosted: Sat Aug 12, 2017 9:52    Post subject: Reply with quote
Per Yngve Berg wrote:
Flush the ARP Table on the device that the router is connected to.


Hi, currently I do not have access to router (remote). I will go to place that router there next tuesday. I just wonder my code can brick the router or not? Maybe captive portal doesn't let router connect with begining 00 mac address. I will change the line with this:

D2:4A$(hexdump -n4 -e '/1 ":%02X"' /dev/random)

It gerneates like this macs which is similiar the original mac:
D2:4A:F1:A4:AA:F0

Captive Portal checks the mac address. I use public wifi for internet. What I want to do, Their system just give 10 hours daily access. I want to bypass that via changing mac. I have two user/pass for captive portal. I wrote a code it changes mac + user/pass. I can send user pass via wget. But I afraid of did I brick my router or not. I will find out next tuesday.

_________________
Kaan's World | @mkaand | PLEX Archive | Trakt.tv
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum