<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>sujet Integration livebox et domotique... ou autre... dans ma connexion</title>
    <link>https://communaute.orange.fr/t5/ma-connexion/Integration-livebox-et-domotique-ou-autre/m-p/2247207#M267218</link>
    <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suite a des demandes pressantes, insistantes mais discrètes, je vous publie ici aussi un bout de code a finir selon vos besoins ! Il n'y a pas de raison que vous n'en profitiez pas aussi surtout si vous avez un truc genre linux qui traîne dans un coin. Ca a déjà été fait moult fois "ailleurs" mais c'est ma version faite á l'arrache... hein !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chez moi, les données sont parsées et finissent dans un format propre sur mon broker MQTT a coté de l'état de ma domotique, mes serveurs et autres firewall... vous pouvez faire en sorte que ce qui sort de cette version passe les valeur dans un fichier CSV pour surveiller en temps presque réel les taux d'erreur de votre aDSL : replacez mes "echo $TMPVAR".par ce qui vous plaît.. si vous voulez en faire autre chose : allez y... Évitez juste de revendre ça á qui que ce soit façon droits d'auteurs fermés... hein!.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;code&amp;gt;&lt;/PRE&gt;&lt;P&gt;#!/bin/ksh&lt;/P&gt;&lt;P&gt;TARGET="livebox.home"&lt;BR /&gt;USERNAME="admin"&lt;BR /&gt;PASSWORD="XXXXXXXXXXXXXXXX"&lt;/P&gt;&lt;P&gt;CURL="/usr/local/bin/curl"&lt;BR /&gt;TMPDIR="/var/tmp"&lt;BR /&gt;COOKIE_FILE="livebox.dat"&lt;BR /&gt;TMPVAR=""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Commands...&lt;BR /&gt;#&lt;BR /&gt;OPEN="authenticate?username=$USERNAME&amp;amp;password=$PASSWORD"&lt;BR /&gt;CLOSE="logout"&lt;BR /&gt;REBOOT="sysbus/NMC:reboot"&lt;BR /&gt;DSL_STS="sysbus/NeMo/Intf/dsl0:getDSLStats"&lt;BR /&gt;DSL_CFG="sysbus/NeMo/Intf/data:getMIBs"&lt;BR /&gt;LAN_CFG="sysbus/NeMo/Intf/lan:getMIBs"&lt;BR /&gt;# WIFI_STS="sysbus/Wificom:getStatus"&lt;BR /&gt;WAN_STS="sysbus/NMC:getWANStatus"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# connect&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -i -X POST -i -H "Content-type: application/json" -c $TMPDIR/$COOKIE_FILE \&lt;BR /&gt;http://$TARGET/$OPEN 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;TOKEN=${TMPVAR##*:}&lt;BR /&gt;TOKEN=${TOKEN#*\"}&lt;BR /&gt;TOKEN=${TOKEN%\"*}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#&lt;BR /&gt;# get dsl stats&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$DSL_STS 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo $TMPVAR&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get WAN status&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$WAN_STS 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo $TMPVAR&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get Wifi status&lt;BR /&gt;#&lt;BR /&gt;#TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;# -H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$WIFI_STS 2&amp;gt;/dev/null`&lt;BR /&gt;#&lt;BR /&gt;#echo $TMPVAR&lt;BR /&gt;#echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get dsl config&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;/P&gt;&lt;P&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$DSL_CFG 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#### echo $TMPVAR&lt;BR /&gt;#### echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get dsl stats&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$LAN_CFG 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#### echo $TMPVAR&lt;BR /&gt;#### echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Close ...&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -i -b $TMPDIR/$COOKIE_FILE -X POST http://$TARGET/$CLOSE 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Clean ...&lt;BR /&gt;#&lt;BR /&gt;rm $TMPDIR/$COOKIE_FILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# EoF&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;/code&amp;gt;&lt;/PRE&gt;&lt;P&gt;La commande wifi n'est pas terrible.. je cherche encore la bonne !.Par contre je suis confiant pour trouver par la suite le ON/OFF du wifi. Je n'ai pas encore eu ni le besoin ni le temps de me faire un reboot de ma livebox3... Et les configs lan et wan donnent des résultats super long... donc a super-décoder pour en sortir l'important!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Et je n'ai pas encore localiser les surveillances de débits ! Par contre la surveillance wan et dsl ca roule tout seul... J'obtiens avec ce script depuis une machine nommée tschai :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;code&amp;gt;&lt;/PRE&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;tschai$ sudo ./livebox.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"result":{"status:{"ReceiveBlocks":1,"TransmitBlocks":1,"CellDelin":0,"LinkRetrain":0,"InitErrors":0,"InitTimeouts":0,"LossOfFraming":0,"ErroredSecs":0,"SeverelyErroredSecs":0,"FECErrors":0,"ATUCFECErrors":0,"HECErrors":0,"ATUCHECErrors":0,"CRCErrors":0,"ATUCCRCErrors":0}}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"result":{"status":true,"data":{"WanState":"up","LinkType":"ethernet","LinkState":"up","MACAddress":"XX:XX:XX:XX:XX:XX","Protocol":"dhcp","ConnectionState":"Bound","LastConnectionError":"None","IPAddress":"XX:XX:XX:XX","RemoteGateway":"XX.XX.XX.XX","DNSServers":"80.10.246.132,81.253.149.2","IPv6Address":"2a01:cb19:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX","IPv6DelegatedPrefix":"2a01:cb19:XXXX:XXXX::/56"}}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tschai$&lt;/P&gt;&lt;PRE&gt;&amp;lt;/code&amp;gt;&lt;/PRE&gt;&lt;P&gt;Bon courage... a vos claviers pour les extractions de chaines qui vous plaisent...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hop!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps : avec un coup de cron par dessus... ca va tout seul en automatique!&lt;/P&gt;&lt;P&gt;ps2: c'est du ksh88 un peu imparfait mais assez portable. JDCJDR.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jun 2020 18:12:28 GMT</pubDate>
    <dc:creator>Eric_Le_Grompf</dc:creator>
    <dc:date>2020-06-21T18:12:28Z</dc:date>
    <item>
      <title>Integration livebox et domotique... ou autre...</title>
      <link>https://communaute.orange.fr/t5/ma-connexion/Integration-livebox-et-domotique-ou-autre/m-p/2247207#M267218</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suite a des demandes pressantes, insistantes mais discrètes, je vous publie ici aussi un bout de code a finir selon vos besoins ! Il n'y a pas de raison que vous n'en profitiez pas aussi surtout si vous avez un truc genre linux qui traîne dans un coin. Ca a déjà été fait moult fois "ailleurs" mais c'est ma version faite á l'arrache... hein !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chez moi, les données sont parsées et finissent dans un format propre sur mon broker MQTT a coté de l'état de ma domotique, mes serveurs et autres firewall... vous pouvez faire en sorte que ce qui sort de cette version passe les valeur dans un fichier CSV pour surveiller en temps presque réel les taux d'erreur de votre aDSL : replacez mes "echo $TMPVAR".par ce qui vous plaît.. si vous voulez en faire autre chose : allez y... Évitez juste de revendre ça á qui que ce soit façon droits d'auteurs fermés... hein!.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;code&amp;gt;&lt;/PRE&gt;&lt;P&gt;#!/bin/ksh&lt;/P&gt;&lt;P&gt;TARGET="livebox.home"&lt;BR /&gt;USERNAME="admin"&lt;BR /&gt;PASSWORD="XXXXXXXXXXXXXXXX"&lt;/P&gt;&lt;P&gt;CURL="/usr/local/bin/curl"&lt;BR /&gt;TMPDIR="/var/tmp"&lt;BR /&gt;COOKIE_FILE="livebox.dat"&lt;BR /&gt;TMPVAR=""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Commands...&lt;BR /&gt;#&lt;BR /&gt;OPEN="authenticate?username=$USERNAME&amp;amp;password=$PASSWORD"&lt;BR /&gt;CLOSE="logout"&lt;BR /&gt;REBOOT="sysbus/NMC:reboot"&lt;BR /&gt;DSL_STS="sysbus/NeMo/Intf/dsl0:getDSLStats"&lt;BR /&gt;DSL_CFG="sysbus/NeMo/Intf/data:getMIBs"&lt;BR /&gt;LAN_CFG="sysbus/NeMo/Intf/lan:getMIBs"&lt;BR /&gt;# WIFI_STS="sysbus/Wificom:getStatus"&lt;BR /&gt;WAN_STS="sysbus/NMC:getWANStatus"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# connect&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -i -X POST -i -H "Content-type: application/json" -c $TMPDIR/$COOKIE_FILE \&lt;BR /&gt;http://$TARGET/$OPEN 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;TOKEN=${TMPVAR##*:}&lt;BR /&gt;TOKEN=${TOKEN#*\"}&lt;BR /&gt;TOKEN=${TOKEN%\"*}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#&lt;BR /&gt;# get dsl stats&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$DSL_STS 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo $TMPVAR&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get WAN status&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$WAN_STS 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo $TMPVAR&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get Wifi status&lt;BR /&gt;#&lt;BR /&gt;#TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;# -H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$WIFI_STS 2&amp;gt;/dev/null`&lt;BR /&gt;#&lt;BR /&gt;#echo $TMPVAR&lt;BR /&gt;#echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get dsl config&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;/P&gt;&lt;P&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$DSL_CFG 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#### echo $TMPVAR&lt;BR /&gt;#### echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# get dsl stats&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -b $TMPDIR/$COOKIE_FILE -X POST -H 'Content-Type: application/json' \&lt;BR /&gt;-H "X-Context: $TOKEN" -d '{"parameters":{}}' http://$TARGET/$LAN_CFG 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#### echo $TMPVAR&lt;BR /&gt;#### echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Close ...&lt;BR /&gt;#&lt;BR /&gt;TMPVAR=`$CURL -i -b $TMPDIR/$COOKIE_FILE -X POST http://$TARGET/$CLOSE 2&amp;gt;/dev/null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Clean ...&lt;BR /&gt;#&lt;BR /&gt;rm $TMPDIR/$COOKIE_FILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# EoF&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;/code&amp;gt;&lt;/PRE&gt;&lt;P&gt;La commande wifi n'est pas terrible.. je cherche encore la bonne !.Par contre je suis confiant pour trouver par la suite le ON/OFF du wifi. Je n'ai pas encore eu ni le besoin ni le temps de me faire un reboot de ma livebox3... Et les configs lan et wan donnent des résultats super long... donc a super-décoder pour en sortir l'important!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Et je n'ai pas encore localiser les surveillances de débits ! Par contre la surveillance wan et dsl ca roule tout seul... J'obtiens avec ce script depuis une machine nommée tschai :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;code&amp;gt;&lt;/PRE&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;tschai$ sudo ./livebox.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"result":{"status:{"ReceiveBlocks":1,"TransmitBlocks":1,"CellDelin":0,"LinkRetrain":0,"InitErrors":0,"InitTimeouts":0,"LossOfFraming":0,"ErroredSecs":0,"SeverelyErroredSecs":0,"FECErrors":0,"ATUCFECErrors":0,"HECErrors":0,"ATUCHECErrors":0,"CRCErrors":0,"ATUCCRCErrors":0}}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"result":{"status":true,"data":{"WanState":"up","LinkType":"ethernet","LinkState":"up","MACAddress":"XX:XX:XX:XX:XX:XX","Protocol":"dhcp","ConnectionState":"Bound","LastConnectionError":"None","IPAddress":"XX:XX:XX:XX","RemoteGateway":"XX.XX.XX.XX","DNSServers":"80.10.246.132,81.253.149.2","IPv6Address":"2a01:cb19:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX","IPv6DelegatedPrefix":"2a01:cb19:XXXX:XXXX::/56"}}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tschai$&lt;/P&gt;&lt;PRE&gt;&amp;lt;/code&amp;gt;&lt;/PRE&gt;&lt;P&gt;Bon courage... a vos claviers pour les extractions de chaines qui vous plaisent...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hop!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps : avec un coup de cron par dessus... ca va tout seul en automatique!&lt;/P&gt;&lt;P&gt;ps2: c'est du ksh88 un peu imparfait mais assez portable. JDCJDR.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 18:12:28 GMT</pubDate>
      <guid>https://communaute.orange.fr/t5/ma-connexion/Integration-livebox-et-domotique-ou-autre/m-p/2247207#M267218</guid>
      <dc:creator>Eric_Le_Grompf</dc:creator>
      <dc:date>2020-06-21T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Integration livebox et domotique... ou autre...</title>
      <link>https://communaute.orange.fr/t5/ma-connexion/Integration-livebox-et-domotique-ou-autre/m-p/2599619#M315285</link>
      <description>&lt;P&gt;pour les livebox pro fibre dernière génération&lt;/P&gt;&lt;P&gt;j'ai créé les script de reboot et de récupération de certaines infos j'ai pas fini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script de reboot aussi bien en local qu'en accès distant si activé&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;echo "l'ip est : $1"&lt;BR /&gt;echo "le port est : $2"&lt;BR /&gt;echo "l'username est : $3"&lt;BR /&gt;echo "le mot de passe est : $4"&lt;/P&gt;&lt;P&gt;curl -o ./livebox/rebootlivebox_context -k 'https://'$1':'$2'/ws' -c ./livebox/rebootlivebox_cookies.txt -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0' -H 'Accept: */*' -H 'Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3' --compressed -H 'Authorization: X-Sah-Login' -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Origin: https://'$1':'$2'' -H 'Connection: keep-alive' -H 'Referer: https://'$1':'$2'/homeAuthentificationRemote.html' -H 'Cookie: UILang=fr; lastKnownIpv6TabState=visible; 45b4c072/accept-language=fr,fr-FR; 45b4c072/sessid=w/yo4rbgVvLpFBUjcaVoHK3P' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' --data-raw '{"service":"sah.Device.Information","method":"createContext","parameters":{"applicationName":"webui","username":"'$3'","password":"'$4'"}}'&lt;BR /&gt;ID=$(tail -n1 ./livebox/rebootlivebox_context | sed 's/{"status":0,"data":{"contextID":"//1'| sed 's/","username":"Remote","groups":"http,remoteadmin"}}//1')&lt;BR /&gt;ID2=$(tail -n1 ./livebox/rebootlivebox_cookies.txt | sed 's/#HttpOnly_'$1'\tFALSE\t[/]\tFALSE\t0\t//1' | sed 's/sessid\t/sessid=/1')&lt;BR /&gt;curl -o ./livebox/livebox_listeappel -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"NMC","method":"reboot","parameters":{"reason":"GUI_Reboot"}}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;et pour les infos&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;echo "l'ip est : $1"&lt;BR /&gt;echo "le port est : $2"&lt;BR /&gt;echo "l'username est : $3"&lt;BR /&gt;echo "le mot de passe est : $4"&lt;/P&gt;&lt;P&gt;rm /var/www/html/admin/livebox/*&lt;/P&gt;&lt;P&gt;curl -o /var/www/html/admin/livebox/rebootlivebox_context -k 'https://'$1':'$2'/ws' -c /var/www/html/admin/livebox/rebootlivebox_cookies.txt -X POST --compressed -H 'Authorization: X-Sah-Login' -H 'Content-Type: application/x-sah-ws-4-call+json' --data-raw '{"service":"sah.Device.Information","method":"createContext","parameters":{"applicationName":"webui","username":"'$3'","password":"'$4'"}}'&lt;BR /&gt;ID=$(tail -n1 /var/www/html/admin/livebox/rebootlivebox_context | sed 's/{"status":0,"data":{"contextID":"//1'| sed 's/","username":"Remote","groups":"http,remoteadmin"}}//1')&lt;BR /&gt;ID2=$(tail -n1 /var/www/html/admin/livebox/rebootlivebox_cookies.txt | sed 's/#HttpOnly_'$1'\tFALSE\t[/]\tFALSE\t0\t//1' | sed 's/sessid\t/sessid=/1')&lt;/P&gt;&lt;P&gt;#info wifi&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_wifi -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"NeMo.Intf.lan","method":"getMIBs","parameters":{"mibs":"wlanvap"}}'&lt;/P&gt;&lt;P&gt;#info redirection de port&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_redport -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"Firewall","method":"getPortForwarding","parameters":{"origin":"webui"}}'&lt;/P&gt;&lt;P&gt;#info dhcp&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_dhcp -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"DHCPv4.Server","method":"getDHCPServerPool","parameters":{"id":"default"}}'&lt;/P&gt;&lt;P&gt;#info dhcp ip fixe&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_ipfixe -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"DHCPv4.Server.Pool.default","method":"getStaticLeases","parameters":"default"}'&lt;/P&gt;&lt;P&gt;#info ligne téléphone&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_numtel -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"VoiceService.VoiceApplication","method":"listTrunks","parameters":{}}'&lt;/P&gt;&lt;P&gt;#info port ethernet&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_portethernet -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"NeMo.Intf.lan","method":"getMIBs","parameters":{"mibs":"eth"}}'&lt;/P&gt;&lt;P&gt;#info appel manqué&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_listeappel -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"VoiceService.VoiceApplication","method":"getCallList","parameters":[{"line":"1"}]}'&lt;/P&gt;&lt;P&gt;#info appareil manqué&lt;BR /&gt;curl -o /var/www/html/admin/livebox/livebox_listeapareil -k 'https://'$1':'$2'/ws' -X POST -H 'Content-Type: application/x-sah-ws-4-call+json' -H 'Authorization: X-Sah '$ID'' -H 'Cookie: '$ID2'' --data-raw '{"service":"TopologyDiagnostics","method":"buildTopology","parameters":{"SendXmlFile":false}}'&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 20:47:55 GMT</pubDate>
      <guid>https://communaute.orange.fr/t5/ma-connexion/Integration-livebox-et-domotique-ou-autre/m-p/2599619#M315285</guid>
      <dc:creator>infosecu</dc:creator>
      <dc:date>2021-09-29T20:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Integration livebox et domotique... ou autre...</title>
      <link>https://communaute.orange.fr/t5/ma-connexion/Integration-livebox-et-domotique-ou-autre/m-p/2602433#M315670</link>
      <description>&lt;P&gt;Bonjour&lt;/P&gt;&lt;P&gt;Je suis en train de le faire sur livebox pro v4.&lt;/P&gt;&lt;P&gt;J'arrive à m'authentifier mais pour la suite je bloque. Mais peut-être résolu dans la journée.&lt;/P&gt;&lt;P&gt;Sinon je mettrai à jour bientôt les fichiers SH et php pour la livebox pro fibre. J'ai bien avancer ce weekend&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 06:02:41 GMT</pubDate>
      <guid>https://communaute.orange.fr/t5/ma-connexion/Integration-livebox-et-domotique-ou-autre/m-p/2602433#M315670</guid>
      <dc:creator>infosecu</dc:creator>
      <dc:date>2021-10-04T06:02:41Z</dc:date>
    </item>
  </channel>
</rss>

