Code:
MAC=`(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'` nvram set mac_wan="00:${MAC}" service wan restart nvram commit
#1
|
|||
|
|||
Cablemodem Kabelmodem & Tomato 1.28 Router MAC Changing Reconnect
EDIT: ALTERNATIVE METHOD ADDED
you have to replace the red marked values from my script with the correct ones from your system. XXXXXXXXX = frequency start value of the cable modem. XXXXXXXXXXXXXXXXXX = tomatos "http_id" cisco cablemodem first you have to look for the "frequency start value" in the cisco modem webinterface. the webinterface can be found at **External links are only visible to Support Staff** username=admin password=atlanta if it doesnt work google for other possible user:pass combinations. tomato router login to the webinterface or telnet to your router and do nvram show | grep http_id write down your http_id. now replace the red values in the script with yours: Code:
[[[HSRC]]] [[[STEP]]] [[[REQUEST]]] POST /goform/ChannelsSelection HTTP/1.1 Host: 192.168.100.1 SADownStartingFrequency=XXXXXXXXX [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /shell.cgi HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% action=execute&command=MAC%3D%60%28date%3B%20cat%20/proc/interrupts%29%20%7C%20md5sum%20%7C%20sed%20-r%20%27s/%5E%28.%7B10%7D%29.*%24/%5C1/%3B%20s/%28%5B0-9a-f%5D%7B2%7D%29/%5C1%3A/g%3B%20s/%3A%24//%3B%27%60%0Anvram%20set%20mac_wan%3D%2200%3A%24%7BMAC%7D%22%0Aservice%20wan%20restart%0Anvram%20commit&_http_id=XXXXXXXXXXXXXXXXXX [[[/REQUEST]]] [[[/STEP]]] [[[/HSRC]]] cisco epc 3208 linksys e3000 tomato 1.28 by shibby (tomato.groov.pl) Last edited by thomaz; 25.12.2012 at 13:12. |
#2
|
|||
|
|||
plsdelete
Last edited by thomaz; 19.12.2012 at 17:24. |
#3
|
|||
|
|||
So is it working? Delete what? The whole thread
|
#4
|
|||
|
|||
nope only the posting.
and yep it works like a charm ... goodbye dd-wrt. Last edited by thomaz; 19.12.2012 at 19:33. |
#5
|
|||
|
|||
ALTERNATIVE METHOD
1. enable jffs. 2. enable ftp and mount to /jffs. 3. download reconnect.sh
Spoiler:
content of reconnect.sh:
Code:
MAC=`(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'` nvram set mac_wan="00:${MAC}" service wan restart nvram commit 4. connect to the router with a ftp client and upload "reconnect.sh". 5. telnet into router and do chmod 777 /jffs/reconnect.sh with ls /jffs you can check if chmod did it and reconnect.sh is "green". 6. now you can use these curl batches: DONT FORGET TO REPLACE THE RED STUFF WITH THE CORRECT VALUES FROM YOUR SYSTEM !!! cisco modem: Code:
curl -d "SADownStartingFrequency=XXXXXXXXXXXXXXXXXX" **External links are only visible to Support Staff**curl "**External links are only visible to Support Staff**Red"><user>:<passwd>@<routerip>/shell.cgi" -d "action=execute&command=/jffs/reconnect.sh&_http_id=XXXXXXXXXXXXXXXXXX" Code:
curl "**External links are only visible to Support Staff** >nul curl "**External links are only visible to Support Staff** >nul curl "**External links are only visible to Support Staff**Red"><user>:<passwd>@<routerip>/shell.cgi" -d "action=execute&command=/jffs/reconnect.sh&_http_id=XXXXXXXXXXXXXXXXXX" Last edited by thomaz; 20.12.2012 at 14:07. |
#6
|
|||
|
|||
This is great! Just what I've been looking for. Does it still work?
|
|
|