![]() |
Re: Hook when connecting to a wifi network?
Quote:
wget --no-check-certificate google.com (before i connected to free wifi without logging) but it didn't save any index.html. I only found a file called cp?r\=http\:\%2F. I open it but I don't know what i have to search. that file contain: <!DOCTYPE html> <html lang="it" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"/> <title>FreeWi-Fi Genova</title> <link rel="stylesheet" href="/cp/assets/fullpage.css" charset="utf-8"/> <script type="text/javascript" src="/cp/assets/jquery.js"></script> <script type="text/javascript" src="/cp/assets/jquery_url_parser.js"></script> <script type="text/javascript" src="/cp/assets/utilities.js"></script> </head> <body> <div id="container"> <div id="banner"> <div class="navcontainer"> <h1>Benvenuto in FreeWi-Fi Genova</h1> <h2>Il portale di accesso gratuito ad Internet offerto dal Comune di Genova</h2> </div> </div> <div id="main"> <!-- <div style="float:left;border-right:1px dotted gray;padding-right:50px;"> --> <div style="margin:0 auto;width:51%;border-right:1px dotted gray;border-left:1px dotted gray;padding-right:60px;padding-left:60px;"> <h4>Inserisci le tue credenziali per navigare!</h4> <form method="post" action="https://selfcare.freewifigenova.it:8081/login" onSubmit="redirectOnSubmit('r', '#original_url')"> <input id="original_url" name="original_url" value="http://www.google.com" type="hidden" /> <table> <tr><td><label for="username">Nome Utente:</label></td><td><input id="username" name="username" type="text"></td></tr> <tr><td><label for="password">Password:</label></td><td><input id="password" name="password" type="password"></td></tr> <tr><td> </td></tr> <tr> <td colspan="2"> <center><input name="commit" type="submit" value="Login"></center> </td> </tr> </table> </form> <p> Hai dimenticato la password? <a href="https://selfcare.freewifigenova.it/owums/account/reset">Recuperala!</a> </p> <p> Se non sei registrato, puoi registrarti <a href="https://selfcare.freewifigenova.it/owums/account/signup">qui</a> </p> <p> Per gestire il tuo account, vai alla <a href="https://selfcare.freewifigenova.it/owums/account/login">pagina personale</a> </p> </div> </div> <div id="footer"> <div class="fotext" align="center"> Copyright (C) 2011 - <a href="http://www.caspur.it/">CASPUR</a> | Cambia lingua: <img src="/cp/images/admin/it.gif" alt="it" /> <a href="/cp/en/" onclick="redirectOnClick2('#change-locale')" id="change-locale"> <img src="/cp/images/admin/en.gif" alt="en" /> </a> </div> </div> </div> </body> </html this is the right file where can I retrive the informations I need? thank's |
Re: Hook when connecting to a wifi network?
Yeah, there's a form you usually fill out by hand in that HTML. You'll have to flex your HTML muscles to figure out the key and value pairs which would be sent if you were to submit the form manually, and craft a wget/curl request which does the same thing, to send in your script.
I don't have time to help with that at the moment, sorry, but maybe you can find someone else. Try HTML IRC channels, perhaps. |
Re: Hook when connecting to a wifi network?
my university connection uses a proxy, with a specified port, username and password to connect to the interent.
I have the connection set-up on my phone, but only the browser (because it asks for username and pass) and mail are able to use the proxy connection. Could this method be used to give the username and pass to the connection when connected, so other application will work on proxy? I might be talking ***t, so excuse me if it turns out that what I'm talking about is irrelevant. |
| All times are GMT. The time now is 07:04. |
vBulletin® Version 3.8.8