Dongda Campus Network One-click Login

Source: Internet
Author: User

East Campus Network is very bad use, I am connected to the network in the dormitory. When I go out to study, also want to use the net, not even.
Because the East Campus network allows only one person to use, which makes it impossible for a person to share an account with a partner. The school is mostly doing this to earn more money, which is a kind of exploitation for people who only use 2,3g for one months. Since the system is not right, why not change it?
So it can only be broken first, in the re-landing campus network. But the problem of the pit daddy appeared again, there are three buttons: Connect, disconnect, disconnect all connections.
I ordered "Disconnect network" and then "connected to the network," It also tells me: the current number of connections is more than one.
In fact, only one works: You should click "Disconnect All" and then click "Connect Network".
Then you have to analyze why this kind of tease situation: the people who make this page are mostly sympathetic to the poor, he thought that the school will certainly be enlightened to allow multiple students to share an account (but he overestimated the school), so that the middle of the button is working, the button is for multiple users to share an account of the birth. But eventually that button did not come in handy, but became cumbersome, always misleading, do not believe it can be counted, how many people in a minute first point "disconnect", and then point the "disconnect all", this shows how many times the middle button is not working, is not in line with human needs. Since the school is cruel one person an account to exploit the masses, why not delete which button?
Even on the net, suddenly opened a small window, why not the information displayed in this window to merge with the page. This makes me forced to move the mouse one more time to close it.
In fact, this feature was added later. http://jifei.neu.edu.cn/stats/dashboard?sid=12815848134566654 this link inside the parameter SID is randomly generated, sent to the server, after the server completes the query, The traffic information is saved to a hash table, the key is this random number, the value is the traffic usage situation. So this is the implementation is possible out of the bug, is likely to crash, Zhang San and John Doe at the same time landing campus network, May Zhang San see the traffic information is John Doe.
If you use Linux to log on to the campus network, you can use the following script, the user name and password can be changed.
#!/bin/bash
#use ' ping ' to check whether-connected to NEU
Ping-c2 ' www.neu.edu.cn ' | | {echo "You should connect to NEU firstly"; Exit 0;}
User= ' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx '
Password= ' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx '
temp= ' Mktemp '
#disconnect all the connections
Curl-d "uid= $user &password= $password &range=2&timeout=1&operation=disconnectall" "/HTTP/ IPGW.NEU.EDU.CN/IPGW/IPGW.IPGW "-O $temp
Iconv-f "gb2312"-T "Utf-8" $temp-o $temp
Cat $temp | grep ' <td>.*</td> '
#if Ask Connect,connect it
if test $#-eq 0;then
Curl-d "uid= $user &password= $password &range=2&timeout=1&operation=connect" "/HTTP/ IPGW.NEU.EDU.CN/IPGW/IPGW.IPGW "-O $temp
Iconv-f "gb2312"-T "Utf-8" $temp-o $temp
Cat $temp | grep ' <td>.*</td> '
Fi
#output how much.
Curl-d "uid= $user &password= $password" "Http://jifei.neu.edu.cn/stats/dashboard?sid=0"-O $temp
Curl "Http://jifei.neu.edu.cn/stats/dashboard?sid=0"-O $temp
Res= ' Cat $temp | grep ' <li>.*MB</li> '
res=${res//[<li>,<\/li>]/}
echo "$res"
Can also be opened with a Web page, the principle is to use JS to the server post form, automatic landing.
<script>
var name= ' stu_20124003 ';
var password= "Xxxxxxxxxxxxxxxxxxxxxxxxxxx";
var user= "uid=" +name+ "&password=" +password;
var data=user+ "&range=2&timeout=1&";
var x= "HTTP://IPGW.NEU.EDU.CN/IPGW/IPGW.IPGW";
var y= "Http://jifei.neu.edu.cn/stats/dashboard?sid=0";
Function post (url,data) {
var q=new xmlhttprequest ();
Q.open ("post", url);
Q.setrequestheader ("Content-type", "application/x-www-form-urlencoded");
Q.send (data);
}
Post (X,encodeuri (data+ "Operation=disconnectall"));
Post (X,encodeuri (data+ "Operation=connect"));
Post (Y,encodeuri (user));
Location=y;
</script>
These two programs will click "Disconnect all" before connecting to the campus network, then click "Connect". So as long as connected to the campus network, once opened this page will definitely landed.

Dongda Campus Network One-click Login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.