View Single Post
  #1  
Old 13.11.2011, 03:22
Dodge57
Guest
 
Posts: n/a
Default Question sur script de reconnexion Livebox

Bonjour à tous,

en utilisant l'enregistreur de JD, j'ai réalisé un script de reconnexion de ma Livebox Sagem.
Le script fonctionne mais est très long à s'executer. Ne connaissant pas ce langage je me demandais s'il n'était pas possible de réduire la quantité des lignes de commandes.
Voici ce que JD a enregistré :

Code:
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        GET / HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/browserdetection.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/HNM_Header/html/header_pc.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/common/LBPopup/kb_block.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/common/LBPopup/LBPopup.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/common/drag_resize/drag_resize.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/HNM_Header/js/script_header_pc.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/common/LBButton/LBButton/LBButton.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/ajax_fw.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/pindex.html?SID= HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/wui_log.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/resizeContentpaneContainer.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/confirmactions.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/mainmenu.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/autofocus.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/lbframework.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/utils.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/pindex.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/device_update_xml.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        POST /hnm/standard/rs/html/pindex.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%

frm_password_hash=749b80435e2d5f9dbed96da64cb7948b&frm_username=admin&frm_password=
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/device_update_xml.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/device_update_xml.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/adslstatus_rt.html?SID=d84ea63176078a4a559c3a930ee2ea66&dummy=0 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/viewperdevice.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/common/equipment/equipment.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/hardwareviews.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/viewperdevice.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/equipment_rt.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/internetconfig.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/internetconfig.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/js/validation.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/adslstatus_rt.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        POST /hnm/standard/rs/html/internetconfig.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%

frm_action=reset&frm_login=fti%2F2cb2pcp&frm_passwd=--%2B%2B--%2B%2B--
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/adslstatus_rt.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/adslstatus_rt.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /hnm/standard/rs/html/adslstatus_rt.html?SID=d84ea63176078a4a559c3a930ee2ea66 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

[[[/HSRC]]]