View Single Post
  #2  
Old 21.08.2019, 07:07
ligh7c ligh7c is offline
Modem User
 
Join Date: Aug 2019
Posts: 2
Default

I've also tried editing the jdownloader reconnect file and creating a new variable for modemip but that doesn't seem to work. I still have to replace the "Router IP" in the Jdownloader reconnect options to match the modem to get the modem lines to run properly. Running this code works for either the modem or the router depending upon which IP is entered into the Jdownloader reconnect options.

This leads me to believe the code is correct but jdownloader won't let multiple IP addresses be referenced in a single LiveHeader script. Is this correct?

Here is the code I've modified in jd.controlling.reconnect.pluginsinc.liveheader.LiveHeaderReconnectSettings.json

Code:
{
  "modemip" : "192.168.100.1",
  "password" : "password"
  "routerip" : "192.168.100.1",
  "autoreplaceipenabled" : true,
  "alreadysendtocollectserver3" : false,
  "script" : "\r\n\t[[[HSRC]]]\r\n\r\n   [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET / HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%modemip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\" postraw=\"true\"]]]\r\n        POST /goform/login HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        content-type: application/x-www-form-urlencoded\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%modemip%%%\r\n        content-length: 49\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cache-control: no-cache\r\n\r\n6c6f67696e557365726e616d653d61646d696e266c6f67696e50617373776f72643d6d6f746f726f6c61263d4c6f67696e\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /MotoHome.asp HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%modemip%%%\r\n        connection: Keep-Alive\r\n        cache-control: no-cache\r\n        dnt: 1\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /MotoSwInfo.asp HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%modemip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /MotoSecurity.asp HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%modemip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\" postraw=\"true\"]]]\r\n        POST /goform/MotoSecurity HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        content-type: application/x-www-form-urlencoded\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%modemip%%%\r\n        content-length: 79\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cache-control: no-cache\r\n\r\n5573657249643d264f6c6450617373776f72643d264e65775573657249643d2650617373776f72643d2650617373776f72645265456e7465723d264d6f746f5365637572697479416374696f6e3d31\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET / HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%routerip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET / HTTP/1.1\r\n        accept: text/html, application/xhtml+xml, */*\r\n        accept-language: en-US\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        accept-encoding: gzip, deflate\r\n        Host: %%%routerip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        authorization: Basic cm9vdDo3ODZrZW5zaGlub3dueg==\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /status-home.asp?_=1566362542856 HTTP/1.1\r\n        x-requested-with: XMLHttpRequest\r\n        accept: */*\r\n        accept-language: en-US\r\n        accept-encoding: gzip, deflate\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        Host: %%%routerip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        authorization: Basic cm9vdDo3ODZrZW5zaGlub3dueg==\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /js/wireless.jsx?_http_id=TIDda802f2016144d2c HTTP/1.1\r\n        x-requested-with: XMLHttpRequest\r\n        accept: text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01\r\n        accept-language: en-US\r\n        accept-encoding: gzip, deflate\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        Host: %%%routerip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        authorization: Basic cm9vdDo3ODZrZW5zaGlub3dueg==\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /js/status-data.jsx?_http_id=TIDda802f2016144d2c HTTP/1.1\r\n        x-requested-with: XMLHttpRequest\r\n        accept: text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01\r\n        accept-language: en-US\r\n        accept-encoding: gzip, deflate\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        Host: %%%routerip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        authorization: Basic cm9vdDo3ODZrZW5zaGlub3dueg==\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /tools-ping.asp?_=1566362542857 HTTP/1.1\r\n        x-requested-with: XMLHttpRequest\r\n        accept: */*\r\n        accept-language: en-US\r\n        accept-encoding: gzip, deflate\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        Host: %%%routerip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        authorization: Basic cm9vdDo3ODZrZW5zaGlub3dueg==\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\"]]]\r\n        GET /tools-shell.asp?_=1566362542858 HTTP/1.1\r\n        x-requested-with: XMLHttpRequest\r\n        accept: */*\r\n        accept-language: en-US\r\n        accept-encoding: gzip, deflate\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        Host: %%%routerip%%%\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        authorization: Basic cm9vdDo3ODZrZW5zaGlub3dueg==\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n    [[[STEP]]]\r\n        [[[REQUEST raw=\"true\" postraw=\"true\"]]]\r\n        POST /shell.cgi HTTP/1.1\r\n        accept: */*\r\n        accept-language: en-US\r\n        content-type: text/plain;charset=UTF-8\r\n        accept-encoding: gzip, deflate\r\n        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko\r\n        Host: %%%routerip%%%\r\n        content-length: 570\r\n        dnt: 1\r\n        connection: Keep-Alive\r\n        cache-control: no-cache\r\n        cookie: tomato_status_overview_refresh=3; tomato_shellcmd=MAC%253D%2560%2528date%253B%2520cat%2520%2Fproc%2Finterrupts%2529%2520%257C%2520md5sum%2520%257C%2520sed%2520-r%2520%2527s%2F%255E%2528.%257B10%257D%2529.*%2524%2F%255C1%2F%253B%2520s%2F%2528%255B0-9a-f%255D%257B2%257D%2529%2F%255C1%253A%2Fg%253B%2520s%2F%253A%2524%2F%2F%253B%2527%2560%250Aecho%2520%252200%253A%2524%257BMAC%257D%2522%250Aservice%2520wan%2520stop%250Aifconfig%2520vlan2%2520down%250Aifconfig%2520vlan2%2520hw%2520ether%252000%253A%2524%257BMAC%257D%250Anvram%2520set%2520def_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%2520%250Anvram%2520set%2520wan_mac%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520set%2520wan_hwaddr%253D%252200%253A%2524%257BMAC%257D%2522%250Anvram%2520commit%250Aservice%2520wan%2520start\r\n        authorization: Basic cm9vdDo3ODZrZW5zaGlub3dueg==\r\n\r\n616374696f6e3d6578656375746526636f6d6d616e643d4d4143253344253630253238646174652533422532306361742532302f70726f632f696e74657272757074732532392532302537432532306d643573756d2532302537432532307365642532302d72253230253237732f2535452532382e25374231302537442532392e2a2532342f253543312f253342253230732f253238253542302d39612d66253544253742322537442532392f253543312533412f67253342253230732f2533412532342f2f2533422532372536302530416563686f25323025323230302533412532342537424d41432537442532322530417365727669636525323077616e25323073746f702530416966636f6e666967253230766c616e32253230646f776e2530416966636f6e666967253230766c616e322532306877253230657468657225323030302533412532342537424d41432537442530416e7672616d2532307365742532306465665f68776164647225334425323230302533412532342537424d41432537442532322532302530416e7672616d25323073657425323077616e5f6d616325334425323230302533412532342537424d41432537442532322530416e7672616d25323073657425323077616e5f68776164647225334425323230302533412532342537424d41432537442532322530416e7672616d253230636f6d6d69742530417365727669636525323077616e2532307374617274265f687474705f69643d54494464613830326632303136313434643263\r\n        [[[/REQUEST]]]\r\n    [[[/STEP]]]\r\n\r\n[[[/HSRC]]]\r\n",
  "username" : "user"
}

Last edited by ligh7c; 21.08.2019 at 07:09.
Reply With Quote