Skip to content

Instantly share code, notes, and snippets.

@reycn
Created September 1, 2018 14:11
Show Gist options
  • Select an option

  • Save reycn/6e0391e18f01813a3f65d1a6962071fc to your computer and use it in GitHub Desktop.

Select an option

Save reycn/6e0391e18f01813a3f65d1a6962071fc to your computer and use it in GitHub Desktop.
五行代码登录深圳大学城(北大清华哈工大)校园网
# 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