JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > Reconnect
Reply
 
Thread Tools Display Modes
  #1  
Old 19.12.2012, 15:45
thomaz thomaz is offline
Fibre Channel User
 
Join Date: Sep 2009
Posts: 115
Default 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]]]
hardware used:
cisco epc 3208
linksys e3000 tomato 1.28 by shibby (tomato.groov.pl)

Last edited by thomaz; 25.12.2012 at 13:12.
Reply With Quote
  #2  
Old 19.12.2012, 16:00
thomaz thomaz is offline
Fibre Channel User
 
Join Date: Sep 2009
Posts: 115
Default

plsdelete

Last edited by thomaz; 19.12.2012 at 17:24.
Reply With Quote
  #3  
Old 19.12.2012, 17:57
Freeloader
Guest
 
Posts: n/a
Default

So is it working? Delete what? The whole thread
Reply With Quote
  #4  
Old 19.12.2012, 19:28
thomaz thomaz is offline
Fibre Channel User
 
Join Date: Sep 2009
Posts: 115
Default

nope only the posting.

and yep it works like a charm ... goodbye dd-wrt.

Last edited by thomaz; 19.12.2012 at 19:33.
Reply With Quote
  #5  
Old 20.12.2012, 13:57
thomaz thomaz is offline
Fibre Channel User
 
Join Date: Sep 2009
Posts: 115
Default

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
when u do it yourself then be sure that the editor doesnt do windows "^M" stuff at the end of each line !!!


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"
motorola modem:
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"
Attached Files
File Type: zip reconnect.sh.zip (326 Bytes, 343 views)

Last edited by thomaz; 20.12.2012 at 14:07.
Reply With Quote
  #6  
Old 20.09.2015, 01:34
Coldblackice
Guest
 
Posts: n/a
Default

This is great! Just what I've been looking for. Does it still work?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:42.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.