ravemir / meo-wifi-login Goto Github PK
View Code? Open in Web Editor NEWAllows automated login through a MEO Wifi Premium hotspot
Allows automated login through a MEO Wifi Premium hotspot
OSX: 10.9.5
Python: 2.7.5
I run the script, the following message appears:
/Library/Python/2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
The problem is in python earlier than 2.7.9.
restrictions in their ssl module that limit the configuration that urllib3 can apply
Update python or install
pip install requests[security]
This installs following extra packages:
pyOpenSSL
ndg-httpsclient
pyasn1
Please note that this is not required for python-2.7.9+
I'm getting <Response [200]> response.
(This is an enhancement issue.)
cryptography
depends on OpenSSL and on some systems requires a suitable build environment to install, so being able to use a pure python library as an alternative would be a plus.
pyaes
is a pure python AES library and it seems to be the most suitable for the job.
Now only the GET method is supported (jsonp) and the url is also different.
curl --insecure "https://servicoswifi.apps.meo.pt/HotspotConnection.asmx/[email protected]&password=XXX&navigatorLang=pt&callback=foo"
(This is an enhancement issue)
requests
is a great library, but it's not included with Python and urllib
has probably been good enough for these purposes for a while.
Might be worth checking out.
It should be easy to be compatible with both python 3 and 2.
(I meant to add an "enhancement" label but it doesn't look like I can do that.)
Hi @ravemir
Just tried your script without success. I noticed they changed the link again.
The original page now returns "Conteúdo indisponível de momento."
I noticed now that the login calls something like:
https://servicoswifi.apps.meo.pt/HotspotConnection.svc/Login?callback=jQuery00000000000_00000000&[email protected]&password=XXXXXXXX==&navigatorLang=en&_=0000000000
.svc instead of .asmx and also this jQuery callback.
Still trying to figure out if those numbers have any sequence or meaning.
Cheers
Hey there,
MEO-WiFi is now hashing the passwords on login.
It's no longer possible to login with plain text.
Is there anyway we can avoid this in your script?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.