ChrisTang's recent timeline updates
ChrisTang

ChrisTang

V2EX member #213037, joined on 2017-02-04 01:41:45 +08:00
ChrisTang's recent replies
Feb 11, 2017
Replied to a topic by infinity1207 Python 用 Django 撸的第二个作品:三十撸啊撸
宕机了?
Feb 11, 2017
Replied to a topic by ChrisTang 问与答 如何正确的保存验证码
@shiny 感谢!直接把整个页面保存到本地再读取图片的方式确实可行。
Feb 11, 2017
Replied to a topic by ChrisTang 问与答 如何正确的保存验证码
@shiny 小白,对验证码知之甚少,还望赐教
Feb 11, 2017
Replied to a topic by ChrisTang 问与答 如何正确的保存验证码
@nanlong selenium 类工具可以实现截图,但这里暂不考虑这种方式。

@popok 但通过 Charles 抓包发现, randomid 确实是需要向服务器提交的。
Feb 4, 2017
Replied to a topic by ChrisTang JavaScript 如何分析 js 代码的运行
@m31271n 看到了。请问这段代码中,下面两段分别什么意思呢?以及 b 赋值是什么呢?

a = c.length ? c[0].value : d.length ? d[0].value : "";
d = b.find("input[name\x3demail]")








function l(b) {
b.on("submit", function() {
var c = b.find("#session_key-login"), d = b.find("input[name\x3demail]"), a, e, f;
a = c.length ? c[0].value : d.length ? d[0].value : "";
Date.now || (Date.now = function() {
return (new Date).getTime()
}
);
c = Date.now();
d = m().join(":");
f = a + ":" + d;
window.jsRandomCalculator ? (e = window.jsRandomCalculator.computeJson ? window.jsRandomCalculator.computeJson({
ts: c,
n: d,
email: a
}) : window.jsRandomCalculator.compute(d, a, c),
a = window.jsRandomCalculator.version) : a = e = "";
g("client_ts", c, b);
g("client_r", f, b);
g("client_output", e, b);
g("client_n", d, b);
g("client_v", a, b)
})
}
function m() {
var b = [], c;
for (c = 0; 3 > c; c++)
b[c] = Math.floor(9E8 * Math.random()) + 1E8;
return b
}
function g(b, c, d) {
var a = $("input[name\x3d" + b + "]", d);
a.length ? a.val(c) : (a = document.createElement("input"),
a.setAttribute("type", "hidden"),
a.setAttribute("name", b),
a.setAttribute("value", c),
d.append(a))
Feb 4, 2017
Replied to a topic by ChrisTang JavaScript 如何分析 js 代码的运行
@former 非常感谢,请问可有格式化 js 代码的工具么? http://jsbeautifier.org/ http://www.danstools.com/javascript-beautify/ 刚刚试过这两个,貌似会删掉部分代码,在格式化后的代码中搜不到 client 相关关键词。

最为关键的是这个五个相关的函数

粗看 client_ts 貌似用到了 jsRandomCalculator ,好像是随机数生成器。。。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3325 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 13:06 · PVG 21:06 · LAX 06:06 · JFK 09:06
♥ Do have faith in what you're doing.