HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
ETag: "c82-137ce-5934febd"
Last-Modified: Mon, 05 Jun 2017 06:48:29 GMT
Date: Thu, 07 Nov 2024 03:27:04 GMT
Content-Type: text/html
Content-Length: 79822
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="shortcut icon" href="favicon.ico"/>
<link type="text/css" href="css/widget.css" rel="stylesheet" />
<link type="text/css" href="themes/neoteric/css/widget.css" rel="stylesheet" />
<link type="text/css" href="themes/neoteric/css/style.css" rel="stylesheet" />
<script type="text/javascript" src="js/libs/jquery.min.js"></script>
<script type="text/javascript" src="js/su/locale.js"></script>
<script type="text/javascript">
//<![CDATA[
try{
$.su.locale.URL_LAN_CHECK = $.su.url("/locale?form=lang");//"./data/lan.json";
$.su.locale.get();
}catch(error){
location.href = "./error.html";
};
//]]>
</script>
<script type="text/javascript" src="js/libs/encrypt.js"></script>
<script type="text/javascript" src="js/su/su.js"></script>
<script type="text/javascript" src="js/su/data/proxy.js"></script>
<script type="text/javascript" src="js/su/widget/widget.js"></script>
<script type="text/javascript" src="js/su/widget/window/msg.js"></script>
<script type="text/javascript" src="js/su/widget/form/form.js"></script>
<script type="text/javascript" src="js/su/widget/form/combobox.js"></script>
<script type="text/javascript" src="js/su/widget/form/textbox.js"></script>
<script type="text/javascript" src="js/su/widget/form/password.js"></script>
<script type="text/javascript" src="js/su/widget/form/checkbox.js"></script>
<script type="text/javascript" src="js/su/widget/form/button.js"></script>
<script type="text/javascript" src="js/su/widget/form/radio.js"></script>
<script type="text/javascript" src="js/su/widget/form/waitingbar.js"></script>
<title>Opening...</title>
</head>
<body class="login-body">
<noscript>
<meta http-equiv="refresh" content="0; url=error.html"/>
</noscript>
<div class="login-banner">
<a href="http://tp-link.com.cn" target="_blank">
<div class="logo"></div>
</a>
<h1></h1>
</div>
<!-- 未开cookie的操作提示 -->
<div id="no-cookie-msg-container" class="hidden warning">
<h4 class="title">
<span class="icon"></span>
<span class="text" id="no-cookie-text"></span>
</h4>
</div>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(e){
/*URL*/
var LOGIN_URL = $.su.url("/login?form=login");
var URL_SAVE_CONFIG = $.su.url("/userconfig?form=cfg_save");//"./data/userconfig.json";//
var ACC_PWD_URL_NEW = "";
var pwdProxy = "";
var saveConfigProxy = new $.su.Proxy({
url: URL_SAVE_CONFIG
});
var loginProxy = new $.su.Proxy({
url: LOGIN_URL
});
/*加载产品信息*/
var MODEL_NAME = $.su.locale.model;
var MODEL_DESC = MODEL_NAME.match(/[^ ]*/);
if(typeof MODEL_DESC != "string"){
MODEL_DESC = MODEL_DESC[0];
}
document.title = MODEL_DESC;
$(".login-banner h1").text($.su.CHAR.LOGIN.BANNER);
/*判断出厂*/
saveConfigProxy.read({},function(data){
if(data.config_status == "Default"){
restore_factory();
}else if(data.config_status == "Modify"){
normal_login();
}else{
restore_factory();
}
});
/*错误提示*/
//to be continued;
/*重置密码*/
function restore_factory(){
var rtHTML = "";
rtHTML += "<div class=\"login-box restore\">";
rtHTML += "<h1></h1>";
rtHTML += "<div class=\"description\"></div>";
rtHTML += "<form id=\"pre-login-form\">";
rtHTML += "<input id=\"username\" name=\"username\"/>";
rtHTML += "<inpu
1000
t id=\"password\" name=\"password\"/>";
rtHTML += "</form>";
rtHTML += "<form class=\"login-form\">";
rtHTML += "<input id=\"old_acc\" name=\"old_acc\"/>";
rtHTML += "<input id=\"old_pwd\" name=\"old_pwd\"/>";
rtHTML += "<input id=\"new_acc\" name=\"new_acc\"/>";
rtHTML += "<input id=\"new_pwd\" name=\"new_pwd\"/>";
rtHTML += "<input id=\"cfm_pwd\" name=\"cfm_pwd\"/>";
rtHTML += "<h3></h3>";
rtHTML += "<div id=\"login-btn\" class=\"login-btn\"></div>";
rtHTML += "</form>";
rtHTML += "</div>";
$("body.login-body").append(rtHTML);
$(".login-box h1").text($.su.CHAR.LOGIN.ACC_CREATE);
$(".login-box .description").text($.su.CHAR.LOGIN.DESCRIPTION);
/*pre-login*/
var usernameBox = $("#username").textbox({
cls: "login",
labelCls: "username",
inputCls: "login",
showLevel: false,
});
var passwordBox = $("#password").password({
cls: "login",
labelCls: "password",
inputCls: "login",
maxLength: 15,
allowBlank: false,
showError: false,
showLevel: false,
});
usernameBox.textbox("hide");
passwordBox.password("hide");
var loginForm = $("form#pre-login-form").form({
proxy: loginProxy,
showPrompt: false,
autoLoad:false,
fields: [
{name: "username"},
{name: "password"}
]
});
loginProxy.read({},function(data){
loginForm.form("loadData", data);
usernameBox.textbox("setValue", "admin");
passwordBox.password("setValue", "admin");
passwordBox.password("doEncrypt");
loginForm.form("submit", {
"method": "login"
}, function(data){
var token = data.stok || (function(){
var stok = "12345",
href = top.location.href;
var stokPos = href.indexOf("stok=");
if (stokPos >= 0){
stok = href.substring(stokPos+5);
};
return stok;
})();
if (localStorage){
localStorage.setItem("token", token);
};
$.su.url.stok = token;
ACC_PWD_URL_NEW = $.su.url("/admin/administration?form=accountfirstset");
var pwdProxy = new $.su.Proxy({
url: ACC_PWD_URL_NEW
});
resetForm = $("form.login-form").form({
proxy: pwdProxy,
showPrompt: false,
fields: [
{name: "old_acc"},
{name: "old_pwd"},
{name: "new_acc"},
{name: "new_pwd"},
{name: "cfm_pwd"}
]
});
}, function(error){
},function(fail){
});
});
/*acc-set*/
var old_acc = $("#old_acc").textbox({
cls:"hidden"
});
var old_pwd = $("#old_pwd").password({
showLevel:false,
cls:"hidden"
});
var new_acc = $("#new_acc").textbox({
cls: "login",
labelCls: "username",
inputCls: "login",
maxLength: 15,
allowBlank: false,
vtype: "ascii_visible",
showError: false,
tabindex: 0,
hint: $.su.CHAR.LOGIN.NEW_ACC
}).on("ev_change", function(e, value, key, keyCode){
if (key == "Enter" || keyCode == 13){
$("input#new_pwd").focus();
}
1000
});
var new_pwd = $("#new_pwd").password({
cls: "login",
vtype:"ascii_visible",
labelCls: "password",
inputCls: "login",
maxLength: 15,
allowBlank: false,
showError: false,
showLevel: false,
allowVisible: true,
hint:$.su.CHAR.LOGIN.NEW_PASS
}).on("ev_change", function(e, value, key, keyCode){
if (key == "Enter" || keyCode == 13){
$("input#cfm_pwd").focus();
}
});
var cfm_pwd = $("#cfm_pwd").password({
cls: "login",
vtype:"ascii_visible",
labelCls: "password",
inputCls: "login",
maxLength: 15,
allowBlank: false,
showError: false,
showLevel: false,
allowVisible: true,
hint:$.su.CHAR.LOGIN.NEW_PASS_CONFIRM
}).on("ev_change", function(e, value, key, keyCode){
if (key == "Enter" || keyCode == 13){
doReset();
}
});
var login_btn = $("#login-btn").button({
text: $.su.CHAR.LOGIN.CONFIRM,
handler:function(){
doReset();
}
});
var resetForm = "";
/*调整登陆框高度*/
var actHeight = parseInt(document.documentElement.clientHeight);
var marginTop = actHeight * 0.382 - 480 / 2 - 70;
marginTop = marginTop < 0 ? 0 : marginTop;
$(".login-box").css("marginTop", marginTop);
function doReset(){
if (!checkCookie() || $("#login-btn").hasClass("disabled")){
return false;
}
/*validate*/
var new_acc_value = new_acc.textbox("getValue");
var new_pwd_value = new_pwd.password("getValue");
var cfm_pwd_value = cfm_pwd.password("getValue");
if(new_acc_value.length > 15){
new_acc.textbox("setError");
$(".login-box h3").text($.su.CHAR.LOGIN.WRONG_USER_LENGTH);
return false;
}
if(!new_acc.textbox("validate")){
new_acc.textbox("setError");
$(".login-box h3").text($.su.CHAR.LOGIN.WRONG_USER_FORMAT);
return false;
}
if(new_pwd_value.length < 6 || new_pwd_value.length > 15){
new_pwd.password("setError");
$(".login-box h3").text($.su.CHAR.LOGIN.WRONG_PASS_LENGTH);
return false;
}
if(!new_pwd.password("validate")){
new_pwd.password("setError");
$(".login-box h3").text($.su.CHAR.LOGIN.WRONG_PASS_FORMAT);
return false;
}
if(cfm_pwd_value.length < 6 || cfm_pwd_value.length > 15){
cfm_pwd.password("setError");
$(".login-box h3").text($.su.CHAR.LOGIN.WRONG_PASS_LENGTH);
return false;
}
if(!cfm_pwd.password("validate")){
cfm_pwd.password("setError");
$(".login-box h3").text($.su.CHAR.LOGIN.WRONG_PASS_FORMAT);
return false;
}
if(cfm_pwd_value != new_pwd_value){
cfm_pwd.password("setError");
$(".login-box h3").text($.su.CHAR.LOGIN.PASS_DIFFERENT);
return false;
}
old_acc.textbox("setValue", "admin");
old_pwd.password("setValue","admin");
cfm_pwd.password("setValue", new_pwd.password("getValue"));
old_pwd.password("doEncrypt");
new_pwd.password("doEncrypt");
cfm_pwd.password("doEncrypt");
$(".login-box h1").text($.su.CHAR.LOGIN.IS_SETTING);
$("#login-btn").button("disable");
$("#login-btn").addClass("disabled");
resetForm
1000
.form("submit", {},function(data){
$(".login-box h1").text($.su.CHAR.LOGIN.SET_SUCCESS);
$(".login-box h3").text($.su.CHAR.LOGIN.SET_SUCCESS_TIPS);
setTimeout(function() {
setting_guide();
}, 1000);
},function(errorcode){
if(errorcode == 704 || errorcode == "704"){
errorcode = $.su.CHAR.LOGIN.SET_TIMEOUT;
}else if(errorcode == 707 || errorcode == "707"){
errorcode = $.su.CHAR.LOGIN.SET_DUPLICATE;
}else if(errorcode == 710 || errorcode == "710"){
errorcode = $.su.CHAR.LOGIN.SET_USERCONFLICT;
}else{
errorcode = $.su.CHAR.LOGIN.SET_OTHER;
}
$(".login-box h3").text(errorcode);
setTimeout(function() {
location.href = "./login.html";
}, 1000);
},function(fail){
$(".login-box h3").text($.su.CHAR.LOGIN.SET_FAIL);
$("#login-btn").button("enable");
$("#login-btn").removeClass("disabled");
});
}
}
/*设置向导*/
function setting_guide(){
$(".login-box").html("").removeClass("restore").addClass("setting-guide");
var gHTML = "";
gHTML += "<div class=\"guide-title\">";
gHTML += "<span class=\"text\"></span>";
gHTML += "<a class=\"guide-skip\" href=\"#\"></a>";
gHTML += "</div>";
gHTML += "<div class=\"guide-step\"></div>";
gHTML += "<div class=\"guide-main\">";
gHTML += "<div class=\"guide-content\"></div>";
gHTML += "<div class=\"guide-control\">";
gHTML += "<div id=\"guide-notnow\"></div>";
gHTML += "<button type=\"button\" id=\"guide-prev\"></button>";
gHTML += "<button type=\"button\" id=\"guide-next\"></button>";
gHTML += "</div>"
gHTML += "</div>";
gHTML += "<div id=\"no-password-msg\">";
gHTML += "<div id=\"no-password-msg-content\"></div>";
gHTML += "</div>";
gHTML += "<div id=\"exit-msg\">";
gHTML += "<div id=\"exit-msg-content\"></div>";
gHTML += "</div>";
$(".login-box").html(gHTML);
$(".guide-title span.text").text($.su.CHAR.LOGIN.SETTING_GUIDE);
$(".guide-control #guide-notnow").text($.su.CHAR.LOGIN.NOTNOW).hide();
var WIZARDProxy = new $.su.Proxy({
url: $.su.url("/admin/wizard?form=routeInfo"),//"./data/wizard.routeInfo.json"
async: false
});
WIZARDProxy.read({}, function(data){
if(data && data.radio){
$.su.radioCount = parseInt(data.radio, 10);
}else{
$.su.radioCount = 0;
}
/*接口样式*/
if(data && data.interfaceModel){
$.su.interfaceModel = parseInt(data.interfaceModel, 10);
}else{
$.su.interfaceModel = -1;
}
});
var current_wan = 1;
var wan_mode = 1;
var current_step = "wan_mode";
var guide_data = {};
var WIFI_NAME_5 = "";
var WIFI_NAME_2 = "";
var WIRELESS_URL = $.su.url("/admin/wlan_state?form=main_ssid");
var WIRELESS_PROXY = new $.su.Proxy({
url: WIRELESS_URL
});
WIRELESS_PROXY.read({}, function(data){
guide_data.wireless_info = {};
guide_data.wireless_info.name_2_4 = data["2.4G"];
guide_data.wireless_info.name_5 = data["5G"];
guide_data.wireless_info.pwd_sync = "on";
{
"@category" : "datascan",
"@timestamp" : "2024-11-07T03:27:10.000Z",
"app" : {
"extract" : {
"domain" : [
"w3.org",
"tp-link.com.cn"
],
"file" : [
"lan.json",
"routeinfo.json",
"userconfig.json"
],
"hostname" : [
"tp-link.com.cn",
"www.w3.org"
],
"url" : [
"http://tp-link.com.cn",
"http://www.w3.org/1999/xhtml",
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
]
},
"http" : {
"bodymd5" : "4753bc8caedd73a92cdc754b15a0a044",
"bodymmh3" : 697284792,
"header" : [
{
"value" : "c82-137ce-5934febd",
"name" : "ETag"
},
{
"value" : "Mon, 05 Jun 2017 06:48:29 GMT",
"name" : "Last-Modified"
}
],
"headermd5" : "13320d413dd852143075f33e02bd97b3",
"headermmh3" : 1556531823,
"title" : "Opening..."
},
"length" : 16384
},
"asn" : "AS4134",
"country" : "CN",
"data" : "HTTP/1.1 200 OK\r\nConnection: close\r\nTransfer-Encoding: chunked\r\nETag: \"c82-137ce-5934febd\"\r\nLast-Modified: Mon, 05 Jun 2017 06:48:29 GMT\r\nDate: Thu, 07 Nov 2024 03:27:04 GMT\r\nContent-Type: text/html\r\nContent-Length: 79822\r\n\r\n1000\r\n\ufeff<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\" />\r\n <link rel=\"shortcut icon\" href=\"favicon.ico\"/>\r\n <link type=\"text/css\" href=\"css/widget.css\" rel=\"stylesheet\" />\r\n <link type=\"text/css\" href=\"themes/neoteric/css/widget.css\" rel=\"stylesheet\" />\r\n <link type=\"text/css\" href=\"themes/neoteric/css/style.css\" rel=\"stylesheet\" />\r\n\r\n <script type=\"text/javascript\" src=\"js/libs/jquery.min.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/locale.js\"></script>\r\n <script type=\"text/javascript\">\r\n //<![CDATA[\r\n try{\r\n $.su.locale.URL_LAN_CHECK = $.su.url(\"/locale?form=lang\");//\"./data/lan.json\";\r\n $.su.locale.get();\r\n }catch(error){\r\n location.href = \"./error.html\";\r\n };\r\n //]]>\r\n </script>\r\n <script type=\"text/javascript\" src=\"js/libs/encrypt.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/su.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/data/proxy.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/widget.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/window/msg.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/form.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/combobox.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/textbox.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/password.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/checkbox.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/button.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/radio.js\"></script>\r\n <script type=\"text/javascript\" src=\"js/su/widget/form/waitingbar.js\"></script>\r\n\r\n <title>Opening...</title>\r\n</head>\r\n\r\n<body class=\"login-body\">\r\n\r\n<noscript>\r\n <meta http-equiv=\"refresh\" content=\"0; url=error.html\"/>\r\n</noscript>\r\n\r\n<div class=\"login-banner\">\r\n <a href=\"http://tp-link.com.cn\" target=\"_blank\">\r\n <div class=\"logo\"></div>\r\n </a>\r\n\t<h1></h1>\r\n</div>\r\n\r\n\r\n\r\n\r\n<!-- \u672a\u5f00cookie\u7684\u64cd\u4f5c\u63d0\u793a -->\r\n<div id=\"no-cookie-msg-container\" class=\"hidden warning\">\r\n <h4 class=\"title\">\r\n <span class=\"icon\"></span>\r\n <span class=\"text\" id=\"no-cookie-text\"></span>\r\n </h4>\r\n</div>\r\n\r\n\r\n<script type=\"text/javascript\">\r\n//<![CDATA[\r\n$(document).ready(function(e){\r\n /*URL*/\r\n var LOGIN_URL = $.su.url(\"/login?form=login\");\r\n var URL_SAVE_CONFIG = $.su.url(\"/userconfig?form=cfg_save\");//\"./data/userconfig.json\";//\r\n var ACC_PWD_URL_NEW = \"\";\r\n\r\n var pwdProxy = \"\";\r\n \r\n\r\n var saveConfigProxy = new $.su.Proxy({\r\n url: URL_SAVE_CONFIG\r\n });\r\n\r\n var loginProxy = new $.su.Proxy({\r\n url: LOGIN_URL\r\n });\r\n\r\n /*\u52a0\u8f7d\u4ea7\u54c1\u4fe1\u606f*/\r\n var MODEL_NAME = $.su.locale.model;\r\n var MODEL_DESC = MODEL_NAME.match(/[^ ]*/);\r\n if(typeof MODEL_DESC != \"string\"){\r\n MODEL_DESC = MODEL_DESC[0];\r\n }\r\n document.title = MODEL_DESC;\r\n\r\n $(\".login-banner h1\").text($.su.CHAR.LOGIN.BANNER);\r\n \r\n\r\n\r\n /*\u5224\u65ad\u51fa\u5382*/\r\n saveConfigProxy.read({},function(data){\r\n if(data.config_status == \"Default\"){\r\n restore_factory();\r\n }else if(data.config_status == \"Modify\"){\r\n normal_login();\r\n }else{\r\n restore_factory();\r\n }\r\n });\r\n\r\n /*\u9519\u8bef\u63d0\u793a*/\r\n //to be continued;\r\n /*\u91cd\u7f6e\u5bc6\u7801*/\r\n function restore_factory(){\r\n var rtHTML = \"\";\r\n rtHTML += \"<div class=\\\"login-box restore\\\">\";\r\n rtHTML += \"<h1></h1>\";\r\n rtHTML += \"<div class=\\\"description\\\"></div>\";\r\n rtHTML += \"<form id=\\\"pre-login-form\\\">\";\r\n rtHTML += \"<input id=\\\"username\\\" name=\\\"username\\\"/>\";\r\n rtHTML += \"<inpu\r\n1000\r\nt id=\\\"password\\\" name=\\\"password\\\"/>\";\r\n rtHTML += \"</form>\";\r\n rtHTML += \"<form class=\\\"login-form\\\">\";\r\n rtHTML += \"<input id=\\\"old_acc\\\" name=\\\"old_acc\\\"/>\";\r\n rtHTML += \"<input id=\\\"old_pwd\\\" name=\\\"old_pwd\\\"/>\";\r\n rtHTML += \"<input id=\\\"new_acc\\\" name=\\\"new_acc\\\"/>\";\r\n rtHTML += \"<input id=\\\"new_pwd\\\" name=\\\"new_pwd\\\"/>\";\r\n rtHTML += \"<input id=\\\"cfm_pwd\\\" name=\\\"cfm_pwd\\\"/>\";\r\n rtHTML += \"<h3></h3>\";\r\n rtHTML += \"<div id=\\\"login-btn\\\" class=\\\"login-btn\\\"></div>\";\r\n rtHTML += \"</form>\";\r\n rtHTML += \"</div>\";\r\n\r\n $(\"body.login-body\").append(rtHTML);\r\n $(\".login-box h1\").text($.su.CHAR.LOGIN.ACC_CREATE);\r\n $(\".login-box .description\").text($.su.CHAR.LOGIN.DESCRIPTION);\r\n\r\n\r\n /*pre-login*/\r\n var usernameBox = $(\"#username\").textbox({\r\n cls: \"login\",\r\n labelCls: \"username\",\r\n inputCls: \"login\",\r\n showLevel: false,\r\n });\r\n\r\n\r\n\r\n var passwordBox = $(\"#password\").password({\r\n cls: \"login\",\r\n labelCls: \"password\",\r\n inputCls: \"login\",\r\n maxLength: 15,\r\n allowBlank: false,\r\n showError: false,\r\n showLevel: false,\r\n });\r\n\r\n usernameBox.textbox(\"hide\");\r\n passwordBox.password(\"hide\");\r\n\r\n\r\n var loginForm = $(\"form#pre-login-form\").form({\r\n proxy: loginProxy,\r\n showPrompt: false,\r\n autoLoad:false,\r\n fields: [\r\n {name: \"username\"},\r\n {name: \"password\"}\r\n ]\r\n });\r\n\r\n loginProxy.read({},function(data){\r\n loginForm.form(\"loadData\", data);\r\n usernameBox.textbox(\"setValue\", \"admin\");\r\n passwordBox.password(\"setValue\", \"admin\");\r\n passwordBox.password(\"doEncrypt\");\r\n\r\n loginForm.form(\"submit\", {\r\n \"method\": \"login\"\r\n }, function(data){\r\n var token = data.stok || (function(){\r\n var stok = \"12345\",\r\n href = top.location.href;\r\n var stokPos = href.indexOf(\"stok=\");\r\n if (stokPos >= 0){\r\n stok = href.substring(stokPos+5);\r\n };\r\n return stok;\r\n })();\r\n\r\n if (localStorage){\r\n localStorage.setItem(\"token\", token);\r\n };\r\n\r\n $.su.url.stok = token;\r\n\r\n ACC_PWD_URL_NEW = $.su.url(\"/admin/administration?form=accountfirstset\");\r\n\r\n var pwdProxy = new $.su.Proxy({\r\n url: ACC_PWD_URL_NEW\r\n });\r\n\r\n resetForm = $(\"form.login-form\").form({\r\n proxy: pwdProxy,\r\n showPrompt: false,\r\n fields: [\r\n {name: \"old_acc\"},\r\n {name: \"old_pwd\"},\r\n {name: \"new_acc\"},\r\n {name: \"new_pwd\"},\r\n {name: \"cfm_pwd\"}\r\n ]\r\n });\r\n\r\n \r\n\r\n }, function(error){\r\n\r\n },function(fail){\r\n\r\n });\r\n });\r\n \r\n \r\n \r\n \r\n\r\n /*acc-set*/\r\n var old_acc = $(\"#old_acc\").textbox({\r\n cls:\"hidden\"\r\n });\r\n\r\n var old_pwd = $(\"#old_pwd\").password({\r\n showLevel:false,\r\n cls:\"hidden\"\r\n });\r\n\r\n\r\n\r\n var new_acc = $(\"#new_acc\").textbox({\r\n cls: \"login\",\r\n labelCls: \"username\",\r\n inputCls: \"login\",\r\n maxLength: 15,\r\n allowBlank: false,\r\n vtype: \"ascii_visible\",\r\n showError: false,\r\n tabindex: 0,\r\n hint: $.su.CHAR.LOGIN.NEW_ACC\r\n }).on(\"ev_change\", function(e, value, key, keyCode){\r\n if (key == \"Enter\" || keyCode == 13){\r\n $(\"input#new_pwd\").focus();\r\n }\r\n \r\n1000\r\n });\r\n\r\n var new_pwd = $(\"#new_pwd\").password({\r\n cls: \"login\",\r\n vtype:\"ascii_visible\",\r\n labelCls: \"password\",\r\n inputCls: \"login\",\r\n maxLength: 15,\r\n allowBlank: false,\r\n showError: false,\r\n showLevel: false,\r\n allowVisible: true,\r\n hint:$.su.CHAR.LOGIN.NEW_PASS\r\n }).on(\"ev_change\", function(e, value, key, keyCode){\r\n if (key == \"Enter\" || keyCode == 13){\r\n $(\"input#cfm_pwd\").focus();\r\n }\r\n });\r\n\r\n var cfm_pwd = $(\"#cfm_pwd\").password({\r\n cls: \"login\",\r\n vtype:\"ascii_visible\",\r\n labelCls: \"password\",\r\n inputCls: \"login\",\r\n maxLength: 15,\r\n allowBlank: false,\r\n showError: false,\r\n showLevel: false,\r\n allowVisible: true,\r\n hint:$.su.CHAR.LOGIN.NEW_PASS_CONFIRM\r\n }).on(\"ev_change\", function(e, value, key, keyCode){\r\n if (key == \"Enter\" || keyCode == 13){\r\n doReset();\r\n }\r\n });\r\n\r\n var login_btn = $(\"#login-btn\").button({\r\n text: $.su.CHAR.LOGIN.CONFIRM,\r\n handler:function(){\r\n doReset();\r\n }\r\n });\r\n\r\n\r\n var resetForm = \"\";\r\n\r\n /*\u8c03\u6574\u767b\u9646\u6846\u9ad8\u5ea6*/\r\n var actHeight = parseInt(document.documentElement.clientHeight);\r\n var marginTop = actHeight * 0.382 - 480 / 2 - 70;\r\n marginTop = marginTop < 0 ? 0 : marginTop;\r\n $(\".login-box\").css(\"marginTop\", marginTop);\r\n\r\n \r\n\r\n function doReset(){\r\n if (!checkCookie() || $(\"#login-btn\").hasClass(\"disabled\")){\r\n return false;\r\n }\r\n /*validate*/\r\n var new_acc_value = new_acc.textbox(\"getValue\");\r\n var new_pwd_value = new_pwd.password(\"getValue\");\r\n var cfm_pwd_value = cfm_pwd.password(\"getValue\");\r\n if(new_acc_value.length > 15){\r\n new_acc.textbox(\"setError\");\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.WRONG_USER_LENGTH);\r\n return false;\r\n }\r\n if(!new_acc.textbox(\"validate\")){\r\n new_acc.textbox(\"setError\");\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.WRONG_USER_FORMAT);\r\n return false;\r\n }\r\n\r\n\r\n if(new_pwd_value.length < 6 || new_pwd_value.length > 15){\r\n new_pwd.password(\"setError\");\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.WRONG_PASS_LENGTH);\r\n return false;\r\n }\r\n\r\n if(!new_pwd.password(\"validate\")){\r\n new_pwd.password(\"setError\");\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.WRONG_PASS_FORMAT);\r\n return false;\r\n }\r\n\r\n if(cfm_pwd_value.length < 6 || cfm_pwd_value.length > 15){\r\n cfm_pwd.password(\"setError\");\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.WRONG_PASS_LENGTH);\r\n return false;\r\n }\r\n\r\n if(!cfm_pwd.password(\"validate\")){\r\n cfm_pwd.password(\"setError\");\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.WRONG_PASS_FORMAT);\r\n return false;\r\n }\r\n\r\n if(cfm_pwd_value != new_pwd_value){\r\n cfm_pwd.password(\"setError\");\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.PASS_DIFFERENT);\r\n return false;\r\n }\r\n\r\n\r\n old_acc.textbox(\"setValue\", \"admin\");\r\n old_pwd.password(\"setValue\",\"admin\");\r\n cfm_pwd.password(\"setValue\", new_pwd.password(\"getValue\"));\r\n old_pwd.password(\"doEncrypt\");\r\n new_pwd.password(\"doEncrypt\");\r\n cfm_pwd.password(\"doEncrypt\");\r\n\r\n\r\n\r\n $(\".login-box h1\").text($.su.CHAR.LOGIN.IS_SETTING);\r\n $(\"#login-btn\").button(\"disable\");\r\n $(\"#login-btn\").addClass(\"disabled\");\r\n \r\n resetForm\r\n1000\r\n.form(\"submit\", {},function(data){\r\n $(\".login-box h1\").text($.su.CHAR.LOGIN.SET_SUCCESS);\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.SET_SUCCESS_TIPS);\r\n setTimeout(function() {\r\n setting_guide();\r\n }, 1000);\r\n },function(errorcode){\r\n if(errorcode == 704 || errorcode == \"704\"){\r\n errorcode = $.su.CHAR.LOGIN.SET_TIMEOUT;\r\n }else if(errorcode == 707 || errorcode == \"707\"){\r\n errorcode = $.su.CHAR.LOGIN.SET_DUPLICATE;\r\n }else if(errorcode == 710 || errorcode == \"710\"){\r\n errorcode = $.su.CHAR.LOGIN.SET_USERCONFLICT;\r\n }else{\r\n errorcode = $.su.CHAR.LOGIN.SET_OTHER;\r\n }\r\n $(\".login-box h3\").text(errorcode);\r\n setTimeout(function() {\r\n location.href = \"./login.html\";\r\n }, 1000);\r\n },function(fail){\r\n $(\".login-box h3\").text($.su.CHAR.LOGIN.SET_FAIL);\r\n $(\"#login-btn\").button(\"enable\");\r\n $(\"#login-btn\").removeClass(\"disabled\");\r\n });\r\n }\r\n\r\n }\r\n\r\n\r\n /*\u8bbe\u7f6e\u5411\u5bfc*/\r\n function setting_guide(){\r\n $(\".login-box\").html(\"\").removeClass(\"restore\").addClass(\"setting-guide\");\r\n var gHTML = \"\";\r\n gHTML += \"<div class=\\\"guide-title\\\">\";\r\n gHTML += \"<span class=\\\"text\\\"></span>\";\r\n gHTML += \"<a class=\\\"guide-skip\\\" href=\\\"#\\\"></a>\";\r\n gHTML += \"</div>\";\r\n gHTML += \"<div class=\\\"guide-step\\\"></div>\";\r\n gHTML += \"<div class=\\\"guide-main\\\">\";\r\n gHTML += \"<div class=\\\"guide-content\\\"></div>\";\r\n gHTML += \"<div class=\\\"guide-control\\\">\";\r\n gHTML += \"<div id=\\\"guide-notnow\\\"></div>\";\r\n gHTML += \"<button type=\\\"button\\\" id=\\\"guide-prev\\\"></button>\";\r\n gHTML += \"<button type=\\\"button\\\" id=\\\"guide-next\\\"></button>\";\r\n gHTML += \"</div>\"\r\n gHTML += \"</div>\";\r\n gHTML += \"<div id=\\\"no-password-msg\\\">\";\r\n gHTML += \"<div id=\\\"no-password-msg-content\\\"></div>\";\r\n gHTML += \"</div>\";\r\n gHTML += \"<div id=\\\"exit-msg\\\">\";\r\n gHTML += \"<div id=\\\"exit-msg-content\\\"></div>\";\r\n gHTML += \"</div>\";\r\n\r\n $(\".login-box\").html(gHTML);\r\n $(\".guide-title span.text\").text($.su.CHAR.LOGIN.SETTING_GUIDE);\r\n $(\".guide-control #guide-notnow\").text($.su.CHAR.LOGIN.NOTNOW).hide();\r\n\r\n var WIZARDProxy = new $.su.Proxy({\r\n url: $.su.url(\"/admin/wizard?form=routeInfo\"),//\"./data/wizard.routeInfo.json\"\r\n async: false\r\n });\r\n\r\n WIZARDProxy.read({}, function(data){\r\n if(data && data.radio){\r\n $.su.radioCount = parseInt(data.radio, 10);\r\n }else{\r\n $.su.radioCount = 0;\r\n }\r\n\r\n /*\u63a5\u53e3\u6837\u5f0f*/\r\n if(data && data.interfaceModel){\r\n $.su.interfaceModel = parseInt(data.interfaceModel, 10);\r\n }else{\r\n $.su.interfaceModel = -1;\r\n }\r\n\r\n\r\n });\r\n\r\n var current_wan = 1;\r\n var wan_mode = 1;\r\n var current_step = \"wan_mode\";\r\n var guide_data = {};\r\n var WIFI_NAME_5 = \"\";\r\n var WIFI_NAME_2 = \"\";\r\n var WIRELESS_URL = $.su.url(\"/admin/wlan_state?form=main_ssid\");\r\n var WIRELESS_PROXY = new $.su.Proxy({\r\n url: WIRELESS_URL\r\n });\r\n\r\n WIRELESS_PROXY.read({}, function(data){\r\n guide_data.wireless_info = {};\r\n guide_data.wireless_info.name_2_4 = data[\"2.4G\"];\r\n guide_data.wireless_info.name_5 = data[\"5G\"];\r\n guide_data.wireless_info.pwd_sync = \"on\";\r\n ",
"datamd5" : "1122d3bc8930277177d9b1fb59444021",
"datammh3" : 797964124,
"device" : {
"class" : "<enterprise field>: device.class"
},
"forward" : "42.202.21.33",
"geolocus" : {
"asn" : "AS4134",
"continent" : "AS",
"continentname" : "Asia",
"country" : "CN",
"countryname" : "China",
"domain" : [
"chinatelecom.cn",
"lntele.com"
],
"isineu" : "false",
"latitude" : "35.86166",
"location" : "35.86166,104.195397",
"longitude" : "104.195397",
"netname" : "CHINANET-LN",
"organization" : "CHINANET Liaoning province network",
"subnet" : "42.202.0.0/17"
},
"hostname" : [
"42.202.21.33"
],
"ip" : "42.202.21.33",
"ipv6" : "false",
"latitude" : "34.7732",
"location" : "34.7732,113.7220",
"longitude" : "113.7220",
"node" : {
"country" : "<enterprise field>: node.country",
"groupid" : "<enterprise field>: node.groupid",
"id" : "<enterprise field>: node.id",
"physicalcountry" : "<enterprise field>: node.physicalcountry"
},
"organization" : "Chinanet",
"port" : 9090,
"protocol" : "http",
"protocolversion" : "1.1",
"reason" : "OK",
"seen_date" : "2024-11-07",
"source" : "urlscan::redirect",
"status" : 200,
"subnet" : "42.202.16.0/21",
"tag" : "<enterprise field>: tag",
"tls" : "false",
"transport" : "tcp",
"url" : "/webpages/login.html"
}