mba a écritBonjour.
Personnellement, j'utilise wicd et j'ai automatisé la connection avec un script "post-connection" :
#!/bin/sh
LOGIN="<VOTRELOGIN>"
PASSWORD="<VOTREPASSWORD>"
priv=`wget -O - "https://wifi.free.fr/" 2>/dev/null|grep 'input name="priv"'|awk -F'"' '{print $8}'`
wget -O - --post-data="login=$LOGIN&password=$PASSWORD&priv=$priv" "https://wifi.free.fr/" 2>/dev/null|grep "CONNEXION AU SERVICE REUSSIE" 1>/dev/null 2>&1 && echo "OK" && exit 0
echo "KO"
exit 1
Ca marche parfaitement ...
Mike
Hello,
J'ai recupéré ce bout de script qui marche parfaitement chez moi (je l'ai mis dans les scripts postconnexion sur wicd.
Je me pose quand meme une question: comment authentifier que la page web d'accueil est bien de free?
Je m'explique: avec ces hotspots freewifi, je me demande ce qui empecherait une ame malveillante de faire un hotspot perso, l'appeler "FreeWifi", y coller un petit serveur avec une page web adéquate....et recuperer les identifiants des honnetes passants....
en connexion manuelle, firefox "authentifie" le site (encore qu'il affiche free.fr en bleu à coté de l'adresse, je sais pas trop si bleu c'est bien...) bref...avec le script, c'est encore plus incertaint non? on peut authentifier à partir d'un site?