Created
September 1, 2018 14:11
-
-
Save reycn/6e0391e18f01813a3f65d1a6962071fc to your computer and use it in GitHub Desktop.
五行代码登录深圳大学城(北大清华哈工大)校园网
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # REQUIREMENTS: requests | |
| # coding: utf-8 | |
| import requests | |
| def login(username, password): | |
| postdata = {'action':'login','username':username,'password':password,'ac_id':'1','user_ip':'','nas_ip':'','user_mac':'','save_me':'1','ajax':'1'} | |
| print(requests.Session().post('http://10.0.10.66/include/auth_action.php', data=postdata).text) | |
| login("YOUR_USERNAME","YOUR_PASSWORD") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment