Use shell to log on to the campus network

Deep Lan series products have two superficial ways to log on to the campus network, one is the client, one is the web page, but in the abse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
nce [ $# != 2 ]of a graphical interface under the linux should be swollen to do.
References are made here to God's blog post
It's mainly a post

Grab a package and you'll get the parameters, and here's the script available:

Login:
if; Then
echo $'usage: '$0$' username password'
Exit $?
fi
username - $1
password- $2
post_data save_me user_mac nas_ip user_ip ac_id

………….

1
2
3
4
5
6
7
............
url:http://10.0.0.55:801/include/auth_action.php"
curl -d $post the $url
echo ""

The current user logs out:
post_data's'action' auto_

logout'
url:h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ttp:[ $# != 2 ]//10.0.0.55:801/include/auth_action.php"
curl -d $post the $url
echo ""

All users offline:
if; Then
echo $'usage: '$0$' username password'
Exit $?
fi
username - $1
password- $2
post_data.........................
url:http://10.0.0.55:801/include/auth_action.php"
curl -d $post the $url
echo ""

共有 0 条评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.