for (t = 0, r = a.length; t < r; ++t) n.push((5 ^ a[t]).toString(16)); return n.join("") }""" 5.python之execjs importrequestsimportexecjs js_obj = execjs.compile(js_str) account = js_obj.call("a",f'+86{phone}') password = js_obj.call("a", pwd)# print(acc...
functionstringToHex(str){varval="";for(vari=0;i<str.length;i++){if(val=="")val=str.charCodeAt(i).toString(16);elseval+=str.charCodeAt(i).toString(16);}returnval;}functionYunSuoAutoJump(){varwidth=screen.width;varheight=screen.height;varscreendate=width+","+height;varcurlocation=window....
JS生成随机字符串 方法一 Math.random().toString(36).slice(-8) Math.random() //生成随机数字 缺点: 只能生成有 0-9、a-z字符组成的字符串 由于 Math.random()生成的18位小数,可能无法填充36位,最后几个字符串,只能在指定的几个字符中选择。导致随机性降低。 例如,当随机数为 0...
1. html中无法找到正文数据,找到接口位置,大致记住参数部分。 2. 在文件中找到启动器,进去JS文件中。 3. JS文件中搜索sign,找到完整的sign位置,可以看出sign是由j生成,解出j函数。 4. 在j的位置进行断点,刷新网页,将d.token、i、g、c.data找出(c.data 跟数据接口的data来对比) 5. 取出参数,写入python代码。
h ="0"+ f.toString(16), i += h.substr(h.length-2,2) }returni }functionaI(f) { f = f.replace(/\r\n/g,"\n");for(vare ="", h =0; h < f.length; h++) {varg = f.charCodeAt(h);128> g ? e +=String.fromCharCode(g) : g >127&&2048> g ? (e +=String.fromCha...
var hexs=(ascx+lO)toString(16); //al ert(hexs.leng;.h); if(hexs.length==2) {hexs="OO"+hexs;} b+=hexs;} ②解密 rlocume.nt.getElementByIdCtxt2’).value=b;}); l); function fun (str){var newb="";for (var i=O;i<str.length; ...
return new Buffer(s("5e5062e82f15fe4ca9d24bc5", my_decode(t), 0, 0, "012345677890123", 1)).toString("base64") } 然后在Python中用base64库的b64decode方法来解码即可。 本文所有代码已上传至Github,旨在学习和技术分享,请勿用于商业用途。
timestamp = new Date().getTime().toString().substr(0,10) new_pwd = encrypt(timestamp + '|' + pwd); return new_pwd } 每次调用get_pwd函数,传入密码,就可以获得加密后的password。 加密环节完成后,就可以编写py脚本。都是基础操作,代码如下: ...
null和undefined这两个值没有toString方法,如果调用他们的方法,会报错。 调用String()函数,并将转换的数据作为参数传递给函数。 转谁谁写括号里。 a = String(a); 1. 该方法可以将null和undefined转化为string。 boolean值,true或false转化为字符串为‘true’和‘false’。
exports.insert=(req, res) =>{letsalt = crypto.randomBytes(16).toString('base64');lethash = crypto.createHmac('sha512',salt) .update(req.body.password) .digest("base64"); req.body.password= salt +"$"+ hash; req.body.permissionLevel=1;UserModel.createUser(req.body) .then((result) ...