彻底解决苹果ios系统_wifi_portal认证前关闭
时间:2016-01-13 19:26:23
收藏:0
阅读:8021
利用captive.apple.com可以达到连接wifi的SSID信号就自动弹出portal认证页面.
白名单captive.apple.com后将不会弹出该提示.
可是微信一键关注页面是不允许跳转到云或其他页面进行认证的,几乎不给你任何机会就中断掉wifi.一直显示取消.我们有没有办法来将取消变为完成呢?
当然答案是肯定的.
首先在portal认证页写一个自动就连接放行该设备的IP的所有数据.
auto(); //自动登录一个号
function auto(){
var str_a="auth.asp?usr=15336500020&pwd=15336500021";
var data_str_a=encodeToGB2312(str_a);
$.ajax({
type: "GET",
url: data_str_a,
success: post_fun_a(),
error: null,
timeout: 10000,
dataType: "jsonp",
cache: false
});
}
function post_fun_a(){
}
这样苹果ios的portal将由取消变成完成
接下来,延时10秒后我们将这个帐户断开和给微信一键关注的按钮css样式修改为可用状态(该脚本自行建立)
setTimeout(function(){close()},"10000");
function close(){ //接下来我们断开这个号
var str_c="userinfo.asp?opt=down&u=15336500020&i=<?php echo $i;?>&_=1452669615595";
var data_str_c=encodeToGB2312(str_c);
$.ajax({
type: "GET",
url: data_str_c,
success: post_fun_c(),
error: null,
timeout: 10000,
dataType: "jsonp",
cache: false
});
}
function post_fun_c(){
}
这样我们是不是就又给当前登录的这个帐户断开掉了网络?
苹果ios的wifi状态可是正常显示.与路由器的通讯也正常,只不过受路由器的控制无法正常上网服务.想继续上网的话还得根据提示点"微信一键关注"或其他人认证服务.
function tijiao(){ //微信一键关注开始
var str_b="auth.asp?usr=15336500025&pwd=15336500026";
var data_str_b=encodeToGB2312(str_b);
$.ajax({
type: "GET",
url: data_str_b,
success: post_fun_b(),
error: null,
timeout: 10000,
dataType: "jsonp",
cache: false
});
}
function post_fun_b(){
} //微信部分略
看到没?正常提供服务的帐户我采用了另外一个号.
还得提示下变量i是怎么来的
由上页一页跳转过来,url地址参数
<?php
if(isset($_REQUEST[‘i‘])){
$i = $_REQUEST[‘i‘];
}else{
$i="您是非法用户!";
}
?>
好吧,跳转页htm的代码也补出来
<html>
<head>
</head>
<body>
<SCRIPT>
function request(paras){
var url = location.href;
var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");
var paraObj = {}
for (i=0; j=paraString[i]; i++){
paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length);
}
var returnValue = paraObj[paras.toLowerCase()];
if(typeof(returnValue)=="undefined"){
return "";
}else{
return returnValue;
}
}
var ip = request("i");
var ld = request("ld");
//alert(ip);
window.location.href=‘auto.php?i=‘+ip+‘&ld=‘+ld;
</SCRIPT>
</body>
</html>
完整页面可向钢锅索取QQ:264059790
评论(0)