JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 21.08.2019, 07:03
ligh7c ligh7c is offline
Modem User
 
Join Date: Aug 2019
Posts: 2
Default Issue with 2 Reconnect Scripts for Separate Router (Generate MAC) and Modem (Reboot)

I'm trying to append two LiveHeader scripts to get a new IP address. I've successfully gotten a new IP but I have to manually run each script separately. The first script is to reboot the modem (IP 192.168.100.1) and the second script is to generate a new MAC WAN address on the router (192.168.1.1).

Appending these two scripts results in only the router code being run as Jdownloader seems to only use the Router IP (192.168.1.1) and ignores the modem ip (192.168.100.1).

I can get jdownloader to ignore the router IP script lines by using the modem IP in 'General Reconnect Options'.

So to get each script to work, the 'routerip' needs to match what is shown for 'Router IP' in the Jdownloader Reconnect Options.

Is there any way to properly append the two scripts to get jdownloader to connect to both the router (192.168.1.1) and the modem (192.168.100.1) in one script?

Here is the code where I've appended the two scripts (only the lines that reference the router IP actually run depending upon what IP is listed in the general reconnect options in Jdownloader).

Code:
	[[[HSRC]]]

   [[[STEP]]]
        [[[REQUEST raw="true"]]]
        GET / HTTP/1.1
        accept: text/html, application/xhtml+xml, */*
        accept-language: en-US
        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
        accept-encoding: gzip, deflate
        Host: %%%modemip%%%
        dnt: 1
        connection: Keep-Alive
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST raw="true" postraw="true"]]]
        POST /goform/login HTTP/1.1
        accept: text/html, application/xhtml+xml, */*
        accept-language: en-US
        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
        content-type: application/x-www-form-urlencoded
        accept-encoding: gzip, deflate
        Host: %%%modemip%%%
        content-length: 49
        dnt: 1
        connection: Keep-Alive
        cache-control: no-cache

6c6f67696e557365726e616d653d61646d696e266c6f67696e50617373776f72643d6d6f746f726f6c61263d4c6f67696e
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST raw="true"]]]
        GET /MotoHome.asp HTTP/1.1
        accept: text/html, application/xhtml+xml, */*
        accept-language: en-US
        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
        accept-encoding: gzip, deflate
        Host: %%%modemip%%%
        connection: Keep-Alive
        cache-control: no-cache
        dnt: 1
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST raw="true"]]]
        GET /MotoSwInfo.asp HTTP/1.1
        accept: text/html, application/xhtml+xml, */*
        accept-language: en-US
        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
        accept-encoding: gzip, deflate
        Host: %%%modemip%%%
        dnt: 1
        connection: Keep-Alive
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST raw="true"]]]
        GET /MotoSecurity.asp HTTP/1.1
        accept: text/html, application/xhtml+xml, */*
        accept-language: en-US
        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
        accept-encoding: gzip, deflate
        Host: %%%modemip%%%
        dnt: 1
        connection: Keep-Alive
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST raw="true" postraw="true"]]]
        POST /goform/MotoSecurity HTTP/1.1
        accept: text/html, application/xhtml+xml, */*
        accept-language: en-US
        user-agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
        content-type: application/x-www-form-urlencoded
        accept-encoding: gzip, deflate
        Host: %%%modemip%%%
        content-length: 79
        dnt: 1
        connection: Keep-Alive
        cache-control: no-cache

5573657249643d264f6c6450617373776f72643d264e65775573657249643d2650617373776f72643d2650617373776f72645265456e7465723d264d6f746f5365637572697479416374696f6e3d31
        [[[/REQUEST]]]
    [[[/STEP]]]

		[[[STEP]]]	
			[[[REQUEST]]]
			POST /goform/ChannelsSelection HTTP/1.1
			Host: %%%routerip%%%
	SADownStartingFrequency=TIDda802f2016144d2c
			[[[/REQUEST]]]
		[[[/STEP]]]
		[[[STEP]]]
			[[[REQUEST]]]
			POST /shell.cgi HTTP/1.1
			Host: %%%routerip%%%
			Authorization: Basic %%%basicauth%%%
	action=execute&command=service%20wan%20stop%0AMAC%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%20wan_mac%3D%2200%3A%24%7BMAC%7D%22%0Anvram%20set%20wan_hwaddr%3D%2200%3A%24%7BMAC%7D%22%0Anvram%20set%20def_hwaddr%3D%2200%3A%24%7BMAC%7D%22%0Aifconfig%20vlan2%20hw%20ether%20%2200%3A%24%7BMAC%7D%22%0Anvram%20commit%0Aservice%20wan%20start&_http_id=TIDda802f2016144d2c
			[[[/REQUEST]]]
		[[[/STEP]]]

[[[/HSRC]]]
I'
Reply With Quote
 

Thread Tools
Display Modes

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 00:06.
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 - 2020, Jelsoft Enterprises Ltd.