You have to get Username and password key (use router recorder). Enter them in this scriptline:

  • authen_username=ENTERUSERNAMEHERE&authen_password=ENTERPASSKEYHER
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        GET / HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /public/login.htm HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        POST /postlogin.xgi HTTP/1.1
        Host: %%%routerip%%%

authen_username=ENTERUSERNAMEHERE&authen_password=ENTERPASSKEYHER
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET / HTTP/1.1
        Host: %%%routerip%%%
		Cookie: %%%Set-Cookie%%%

        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /Home/bsc_internet.htm HTTP/1.1
        Host: %%%routerip%%%
		Cookie: %%%Set-Cookie%%%

        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /Home/reboot.xgi HTTP/1.1
        Host: %%%routerip%%%
		Cookie: %%%Set-Cookie%%%

        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /Home/restart2.htm?lanip=192.168.0.1 HTTP/1.1
        Host: %%%routerip%%%
		Cookie: %%%Set-Cookie%%%

        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /gen_restart.htm HTTP/1.1
        Host: %%%routerip%%%
		Cookie: %%%Set-Cookie%%%

        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /nonexist.htm HTTP/1.1
        Host: %%%routerip%%%
		Cookie: %%%Set-Cookie%%%

        [[[/REQUEST]]]
    [[[/STEP]]]

[[[/HSRC]]]

knowledge/wiki/reconnect/scripts/dlink-dir-100-fw112.txt · Last modified: 2016/06/27 16:34 (external edit)