Cmd Login Network
Post account and password with curl or wget.
curl
1 2 3 4 5 6
| #!/bin/bash echo "[Usage]" echo "\t"'./Login $ACC $PASS' ACCOUNT=$1 PASS=$2 curl -d "username=$ACCOUNT&password=$PASS" http://p.nju.edu.cn/portal_io/login
|
wget
1 2 3 4 5 6
| #!/bin/bash echo "[Usage]" echo "\t"'./Login $ACC $PASS' ACCOUNT=$1 PASS=$2 wget -O /dev/null --post-data "username=$ACCOUNT&password=$PASS" http://p.nju.edu.cn/portal_io/login
|