页面地址,查看源代码就可以了,http://test.muduche.com/lt/lt.html
我现在理解的是:
他这个是先获取随机码,但是我不知道用curl post 这个随机码的时候不知道参数名字是什么,以及请求的地址是不是login.cgi文件?
望大神指点,多谢~
页面地址,查看源代码就可以了,http://test.muduche.com/lt/lt.html
我现在理解的是:
他这个是先获取随机码,但是我不知道用curl post 这个随机码的时候不知道参数名字是什么,以及请求的地址是不是login.cgi文件?
望大神指点,多谢~
function SubmitForm() {
var Username = document.getElementById('txt_Username');
var Password = document.getElementById('txt_Password');
var appName = navigator.appName;
var version = navigator.appVersion;
if (appName == "Microsoft Internet Explorer")
{
var versionNumber = version.split(" ")[3];
if (parseInt(versionNumber.split(";")[0]) <= 6)
{
alert("不支持IE6.0及以下版本。");
return false;
}
}
if (Username.value == "") {
alert("用户名不能为空。");
Username.focus();
return false;
}
if (Password.value == "") {
alert("密码不能为空。");
Password.focus();
return false;
}
var cookie = document.cookie;
if ("" != cookie)
{
var date=new Date();
date.setTime(date.getTime()-10000);
var cookie22 = cookie + ";expires=" + date.toGMTString();
document.cookie=cookie22;
}
var cnt;
$.ajax({
type : "POST",
async : false,
cache : false,
url : '/asp/GetRandCount.asp',
success : function(data) {
cnt = data;
}
});
var Form = new webSubmitForm();
var cookie2 = "Cookie=body:" + "Language:" + Language + ":" + "id=-1;path=/";
Form.addParameter('UserName', Username.value);
Form.addParameter('PassWord', base64encode(Password.value));
document.cookie = cookie2;
Username.disabled = true;
Password.disabled = true;
SetCookie("MenuJumpIndex", "0");
Form.addParameter('x.X_HW_Token', cnt);
Form.setAction('/login.cgi');
Form.submit();
return true;
}