|
2精币
[e]
.版本 2
.支持库 spec
.程序集 窗口程序集1
.子程序 __启动窗口_创建完毕
读验证码 ()
调试输出 ()
.子程序 读验证码
图片框1.图片 = 网页_验证码读取 (“http://my.2345.com/check_code.php?0.5088111784372931”, )
.子程序 _图片框1_鼠标左键被按下, 逻辑型
.参数 横向位置, 整数型
.参数 纵向位置, 整数型
.参数 功能键状态, 整数型
读验证码 ()
.子程序 _按钮1_被单击
.局部变量 post地址, 文本型
.局部变量 post数据, 文本型
post地址 = “http://my.2345.com/login_for_index.php”
post数据 = “cmd=login&vTime=7776000&forward=http%253A%252F%252Fmy.2345.com%252F&username=” + 编辑框1.内容 + “&password=” + 编辑框2.内容 + “&pImgCode=” + 编辑框3.内容 + “&button=%B5%C7%C2%BC”
调试输出 (彗星HTTP读文本 (post地址, “post”, , , post数据, ), 0, )
[/e]
调试输出的是一堆乱码懂是什么意思 下面是调试输出的结果
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<input type="hidden" name="_ieStore" id="_ieStore" style="BEHAVIOR:url(#default#userData)" />
<div id="header"></div>
<script language="JavaScript" type="text/javascript">
var main = domain(),search_,xhr = null,ready_ = false,isIE =/*@cc_on!@*/! 1;
document.domain = main.replace("my.", "");
var em = $,cElement = $c,eName = $t;
function $(a) {
return document.getElementById(a)
}
function $c(a) {
return document.createElement(a)
}
function $t(a) {
var b = arguments[1] || document;
return b.getElementsByTagName(a)
}
function $cls(a) {
var b = arguments[1] || document,
rs = [],
o = b.getElementsByTagName("*");
for (var i = 0,
t, len = o.length; i < len; i++) {
t = o;
if (t.className == a) {
rs.push(t)
}
}
return rs
}
function domain() {
search_ = location.search;
var a = location.host,
_pos = a.indexOf(":");
return (_pos == -1) ? a: a.substring(0, _pos)
}
function g_cookie(a) {
var b = storeUtil.get(a, arguments[1]);
if (b || b == "") {
return b
} else {
return cookieStore.get(a)
}
}
function subs(a, b) {
var c = 0,
_out = "";
for (var d = 0; d < a.length; d++) { (a.charCodeAt(d) > 128) ? c += 2 : c++;
_out += a.charAt(d);
if (c >= b) return _out
}
return _out
}
function s_cookie() {
var a = [],
_para = {};
for (var b = 0,
_len = arguments.length; b < _len; b++) {
a = arguments
}
if (String.prototype.toLowerCase.apply(typeof(a[0])) != "string") {
switch (a[0].store) {
case "ie":
_para.store = ieStore.init();
break;
case "ff":
_para.store = mozillaStore.init();
break;
case "cookie":
default:
_para.store = cookieStore.init()
}
a.splice(0, 1)
}
_para.exps = typeof(a[2]) != "undefined" ? Math.ceil(a[2] / (3600 * 24)) : undefined;
_para.name = a[0];
_para.val = a[1];
_para.path = a[3];
_para.domain = a[4];
_para.secure = a[5];
storeUtil.set(_para);
return false
};
function _body() {
return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement: document.body
}
function initXhr() {
if (window.XMLHttpRequest) {
try {
xhr = new XMLHttpRequest()
} catch(e) {
xhr = false
}
} else if (window.ActiveXObject) {
try {
xhr = new ActiveXObject("Msxml2.XMLHTTP")
} catch(e) {
try {
xhr = new ActiveXObject("Microsoft.XMLHTTP")
} catch(e) {
xhr = false
}
}
}
}
String.prototype.trim = function() {
return this.replace(/(^\s*)|(\s*$)/g, "")
};
var storeUtil = {
_init: false,
init: function() {
var a = arguments[0],
_store;
if (!a) {
if (isIE) {
_store = ieStore
} else if (window.globalStorage) {
_store = mozillaStore
} else {
_store = cookieStore
}
} else {
switch (a) {
case "ie":
_store = ieStore;
break;
case "ff":
_store = mozillaStore;
break;
case "cookie":
default:
_store = cookieStore
}
}
this.store = _store.init();
this._init = this.store.isInit() ? true: false;
return this.isInit()
},
get: function(a) {
if (this.store == null) {
this.init();
}
var b = arguments[1] || this.store;
return b.get(a)
},
set: function(a) {
var b = a.store || this.store;
b.set(a)
},
del: function(a) {
var b = arguments[1] || this.store;
b.del(a)
},
isInit: function() {
return this._init
}
},
ieStore = {
exps: 180,
_init: false,
init: function() {
if (!this.isInit() && !$("_ieStore")) {
this.store = $c("INPUT"),
this.store.type = "hidden",
this.store.id = "_ieStore",
this.store.addBehavior("#default#userData");
$("header").appendChild(this.store);
this._init = true
} else if ($("_ieStore")) {
this.store = $("_ieStore");
this._init = true
}
return this
},
get: function(a) {
try {
this.store.load(a)
} catch(e) {
return null
}
return this.store.getAttribute("__store__") || null
},
set: function(a) {
var b = a.name,
_val = a.val,
_exps = typeof(a.exps) != "undefined" ? a.exps: this.exps;
var c = new Date();
c.setDate(c.getDate() + _exps);
this.store.load(b);
this.store.expires = c.toUTCString();
this.store.setAttribute("__store__", _val);
this.store.save(b)
},
del: function(a) {
this.set({
name: a
},
false, -1)
},
isInit: function() {
return this._init
}
},
mozillaStore = {
_init: false,
init: function() {
this._domain = main.replace("my.", "");
this._init = true;
return this
},
get: function(a) {
var b = window.globalStorage[this._domain].getItem(a);
return b ? b.value || 0 : null
},
set: function(a) {
window.globalStorage[this._domain].setItem(a.name, a.val)
},
del: function() {
window.globalStorage[this._domain].removeItem(_name)
},
isInit: function() {
return this._init
}
},
cookieStore = {
_init: false,
_exps: 180,
_secure: "",
init: function() {
if (!this.isInit()) {
this._domain = main.replace("my.", "");
this._init = true
};
return this
},
get: function(a) {
var b = document.cookie.split("; "),
a = a + "=";
for (var c = 0,
_len = b.length; c < _len; c++) {
if (b[c].indexOf(a) != "-1") {
try {
return decodeURIComponent(b[c].replace(a, ""))
} catch(e) {
return unescape(b[c].replace(a, ""))
}
}
}
return null
},
set: function(a) {
var b = new Date();
var c = a.name,
_val = a.val,
_exps = typeof(a.exps) != "undefined" ? a.exps: this._exps,
_domain = a.domain || this._domain,
_path = a.path || "/",
_secure = a.secure || this._secure;
b.setDate(b.getDate() + _exps);
var d = c + "=" + escape(_val) + (_exps ? ";expires=" + b.toUTCString() : "") + (_path ? ";path=" + _path: "") + (_domain ? ";domain=" + _domain: "") + (_secure ? ";secure=": "");
document.cookie = d
},
del: function(a) {
if (String.prototype.toLowerCase.apply(typeof(a)) == "string") {
_name = a;
a = {
name: _name,
val: ""
}
}
a.exps = -1;
a.secure = "";
this.set(a)
},
isInit: function() {
return this._init
}
};
storeUtil.init()
s_cookie("lastLogin","2012-01-27%2008%3A33%3A36",604800,"/","2345.com");
s_cookie("integral","",604800,"/","2345.com");
s_cookie({store:"cookie"},"name_ie","%56%49%53%54%54%55%48%51%49",604800,"/","2345.com");
s_cookie({store:"cookie"},"passid","322630",604800,"/","2345.com");
s_cookie({store:"cookie"},"uid","950804",604800,"/","2345.com");
s_cookie({store:"cookie"},"u_sec","d24cbd22544d8c71f2911523f34bb3a9|87a0c1b2421cdb107bd5b48c6624ffd9",604800,"/","2345.com");
s_cookie({store:"cookie"},"name","815667031",604800,"/","2345.com");
s_cookie({store:"cookie"},"email","localhhost@localhost.localhost",604800,"/","2345.com");
s_cookie({store:"cookie"},"discuz_auth","BnlRblM7XWMEbwJgBTZUYlQ%2FUjYGYQQxUThWPVI4AXJTLQAlAWEPJlZuBjRTPgFgAmNbMVM3XGhSOQRoXDdVMAY%2BUTZTcF12BDMCIgV2VCdUZ1JyBjcEOFE0Vj9SPAFjU2wAMgE9D2VWMAY2UzYBPAI8WzxTPlxqUjoEaVwyVTIGO1EzU29dNQRmAmEFZFQyVD5SMgZrBDFRKlZpUmMBNVMxADoBOQ84Vm8GNlMyAWkCNltmU3VcKVIqBGpcMFVsBmJRZFM3XWoEOgI%2BBXZUJFQmUmwGPARmUW1WYFJmATtTKwAi",604800,"/","2345.com");
s_cookie({store:"cookie"},"iden","c18ff8959ec341f9883b16d88bfbc67f",604800,"/","2345.com");
s_cookie("skin","",604800,"/","2345.com");
s_cookie("skinz","",604800,"/","2345.com");
s_cookie("bgid","",604800,"/","2345.com");
s_cookie({store:"cookie"},"ggbd","",604800,"/","2345.com");
s_cookie({store:"cookie"},"selfTitle","",604800,"/","2345.com");
s_cookie("code_str","",604800,"/","2345.com");
s_cookie({store:"cookie"},"code_str","",604800,"/","2345.com");
s_cookie("bgurl","",604800,"/","2345.com");
s_cookie("site_str","",604800,"/","2345.com");
s_cookie({store:"cookie"},"site_str","",604800,"/","2345.com");
s_cookie({store:"cookie"},"localNav","",604800,"/","2345.com");
s_cookie("localNav","",604800,"/","2345.com");
s_cookie({store:"cookie"},"mystyle_display","",604800,"/","2345.com");
s_cookie("mystyle_display","",604800,"/","2345.com");
s_cookie("fl","",604800,"/","2345.com");
s_cookie({store:"cookie"},"theme","",604800,"/","2345.com");
s_cookie("theme","",604800,"/","2345.com");
s_cookie({store:"cookie"},"theme_logo","",604800,"/","2345.com");
s_cookie("theme_logo","",604800,"/","2345.com");
s_cookie({store:"cookie"},"lc","",604800,"/","2345.com");
s_cookie("lc","",604800,"/","2345.com");
s_cookie({store:"cookie"},"wc","",604800,"/","2345.com");
s_cookie("wc","",604800,"/","2345.com");
s_cookie({store:"cookie"},"wc_n","",604800,"/","2345.com");
s_cookie("wc_n","",604800,"/","2345.com");
s_cookie({store:"cookie"},"wc_sf","",604800,"/","2345.com");
s_cookie("wc_sf","",604800,"/","2345.com");location.href="http://bbs.2345.com/api/passport.php?action=login&cookieTime=604800&auth=BnlRblM7XWMEbwJgBTZUYlQ%2FUjYGYQQxUThWPVI4AXJTLQAlAWEPJlZuBjRTPgFgAmNbMVM3XGhSOQRoXDdVMAY%2BUTZTcF12BDMCIgV2VCdUZ1JyBjcEOFE0Vj9SPAFjU2wAMgE9D2VWMAY2UzYBPAI8WzxTPlxqUjoEaVwyVTIGO1EzU29dNQRmAmEFZFQyVD5SMgZrBDFRKlZpUmMBNVMxADoBOQ84Vm8GNlMyAWkCNltmU3VcKVIqBGpcMFVsBmJRZFM3XWoEOgI%2BBXZUJFQmUmwGPARmUW1WYFJmATtTKwAi&forward=http%3A%2F%2Fmy.2345.com%2F&verify=fed784433675903fd1d93ce8fce93018";</script>” | 0 | (空)
|
最佳答案
查看完整内容
看下返回的文本是什么编码的 解译下应该就没问题了
|