Skip to content

Instantly share code, notes, and snippets.

@peterlee0127
Last active December 15, 2015 23:59
Show Gist options
  • Save peterlee0127/5344762 to your computer and use it in GitHub Desktop.
Save peterlee0127/5344762 to your computer and use it in GitHub Desktop.
#! /bin/sh
#淡江大學新版無線網路登入系統Script 適用Unix,Linux,Mac
#iOS 版本 https://itunes.apple.com/app/id541911220?mt=8
#淡水適用
user=帳號 #這裡改成自己的帳號
pass=密碼 #這裡改成自己的密碼
url=http://163.13.246.254/cgi-bin/ace_web_auth.cgi #要POST的位址
curl --data "username=$user&userpwd=$pass&login=%E7%99%BB%E5%85%A5" $url
# 特殊欄位:login=%E7%99%BB%E5%85%A5
# 來源 "登入"中文的編碼 %E7%99%BB%E5%85%A5 這欄位一樣要post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment