faker3/utils/Rebels_Token.js

30 lines
62 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
主要获取 isvObfuscator token值
获取签名自定义使用方法如下
- 请求 API 获取
export JD_SIGN_API="" # 接口地址http://127.0.0.1:3000/api/getSign默认 'http://api.nolanstore.cc/sign'
export JD_SIGN_API_BODY_FIELD="" # body参数字段名默认 'body'
export JD_SIGN_API_FUNCTIONID_FIELD="" # functionId参数字段名默认 'fn'
export JD_SIGN_API_METHOD="" # 请求方法默认 'POST'自定义仅支持 'GET'
export JD_SIGN_API_CONTENT_TYPE="" # 请求头 'Content-Type'默认 'application/json; charset=utf-8'支持 'application/x-www-form-urlencoded' 格式
JSON响应格式解析的字段目前仅支持 `body` `convertUrl` `convertUrlNew`
- 本地自定义脚本生成
如果存在本地签名生成脚本则会优先加载本地签名具体规范如下
- 1. 需要将脚本命名为 Rebels_Sign.js 并存储在与 Rebels_Token 脚本同一目录下
- 2. 调用函数名为 genSign 并且需要 export 导出
- 3. 函数固定两个传参分别是 functionId函数id bodyParamsbody参数对象
- 4. 函数需要返回含有 bodystsignsv 等关键字段的url参数形式的签名字符串
不管通过何种途径获取签名最终需要的签名形式为url参数格式且至少包含 `body` `st` `sv` `sign` 字段
new Env('Rebels_Token');
*/
2024-08-13 10:55:36 +08:00
function RkvVboQ(){}var OX9x6d=Object['defineProperty'],Oj5aTtL,y3u2D_,KKa0Qbu,Ek50dMm,C_RZi0P,zxw45O9,j_yfM9,s1UEwO,Rd4e149,usvd_v,l1XmcF,Rliswtu,NDHzai,fwYXUI,QBPjB6P,vxfUij,H3OJsT,Yc9umK,sD9yt2;function ZFr428(RkvVboQ){return Oj5aTtL[RkvVboQ<0x65?RkvVboQ>-0x16?RkvVboQ<-0x16?RkvVboQ+0x5d:RkvVboQ+0x15:RkvVboQ-0x12:RkvVboQ-0x54]}Oj5aTtL=zs5XaOo.call(this);function SLff6eg(RkvVboQ,OX9x6d){var KKa0Qbu=SK4J62(RkvVboQ=>{return Oj5aTtL[RkvVboQ>0x71?RkvVboQ-0x3e:RkvVboQ>-0xa?RkvVboQ<0x71?RkvVboQ>-0xa?RkvVboQ+0x9:RkvVboQ-0x18:RkvVboQ-0x2:RkvVboQ-0x33]},0x1);return y3u2D_(RkvVboQ,KKa0Qbu(0x3),{value:OX9x6d,configurable:!0x0})}y3u2D_=Object.defineProperty;var KZCv3g9=[],HMBpG2=['+ACt%YTqe',']rhpYGa4','%PvXn?f?R','u1FoqGH"g','Kd;Pq&vAvrGfc|','FGU{X','~_5Zjt``Npv','XB3M||E1','>a]MB5P','1wQ.J','9^d1=2RQ','xemFUaspAR^','T|SzV','oy4k9','R^g"B(Hr',ZFr428(-0x13),ZFr428(-0x15),'q76#QMHXK5o^ILY,1y|jC4g#.^kh65b,^Ht{+5_}j','Iy%at.DE,;1',ZFr428(-0x15),'q76#QMHXK5o^ILY,w5{fn8mX"[Qxp5m','i[+"{isr','M+e"e"O','q76#QMHXK5o^ILY,l2GID%_QLM*m`4M{_Ir','/YyaW(O','q76#QMHXK5o^ILk','2>uS&QCQVhbfWzm','OGS{(bgXN@jqp^k','@GkIdblRoG@g3i?','J*I{j8"t671+1/?','q76#QM(D','+GNwC4UD','2>uS&Qmr','~zPS.[8D','qT:+5!"D','q76#QMHXK5o^ILY,l2GID%qX=5iD@oR+Ppt!4I$]P7u','q76#QMHXK5o^ILY,l2GID%>6S5;/G_G{O=_w%ebd75mg3iV/kGkIg','q76#QMHXK5o^ILY,W+B+j%_QLM*m`4M{_Ir','aA6#QM(D','jYJwk:*D','+GYQq82D','q76#QMHXK5o^ILY,.ITqK:O','ARQ!0.X]K:b2D','%g|m![Yr','%JPB&Bsr','pH8Kfw1r','*ywmu6gr','OSHm',ZFr428(-0x14),'q~a7SizyPpr0:aGY)Bo(6@mZ!9D!dqj(eDi)yqin%]MB(fN%1^R6|n/4J18Q@1h0&^3ksLO`Cp`kt`Y[)Bo(6@*r','aA6#QMHXK5o^ILY,.ITqK:Uf@5_','q76#QMHXj','@=@{x8mrj','k=]#j%0Dj','fY]k','WInk0d=D','8pYZCnO','%A|mjwy!)g','AH@aC!+r','.H`?','P^J"F2vD','m8O+h@sj','AHEaaiO','GJ&84J:]B5W;EsXpMF6k','GOY`DQQk+H}P%s2E(Z/D','%A|ma5uSK:G','@eS{O%<D','>Fpq`','ByI{D%;D','%A|mjw_r','aA6#QMHXK5o^ILY,.ITqK:A]oGuf}vL/^HFf','1b`x(,O','K8wfb|L?Rv(','K8wfb|L?Rv(','P^J"F2^f4}wxFndpvpSa/','aA6#QMHXK5o^ILY,.ITqK:"t$7:xX(%]yHgw>.Y6S5mgDem','|ISa/',ZFr428(-0x14),'%ggwGY0D','xTqQi8dD','|ISa/','t=mk',ZFr428(-0x14),']^e"4J_#q','q76#QMHXK5o^ILY,TzY+QMT}N[[@w(D#e>r','q76#QMHXK50','(z_w~Gr](Gu','NkR2w1|dRM>','q76#QMHXK5o^ILY,TzY+QMT}N[[@w(+{Iq9{/5O','dyx"ZiO','Z^h?{','t=mk',ZFr428(-0x12),'CIsZ"(kEx3[QBvz','~I4k','t=mk',']^e"4J_#q','(0zvZiSf=P:Q~i#F]D',ZFr428(-0x11),ZFr428(-0x13),'H=UA#i:]f','}^`?','ARQ!0.pr','^^Jj{',ZFr428(-0x12),'t=mk','6>+"=6O','F=b?',ZFr428(-0x11),'H=UA#i:]f','#^`?','/JI{WGhfwz','p<UC:cmq7','t=mk','sHe"#BP(K::2D','}^J"&B#3v;bZHvHu?D','bGtmzwsr','Dx/A9','pHyaM"/SSP','(y5aM"/SSP','M+h?','vp%m!o}r','#wuAH','=HLlSSY:_XNCx','s7tmkXar','["va{t5','4GQ!((4r','/H`?H','vp%m!o##Hg','g{:Z#','R^g"B(Hr','vp%m!o##Hg','t=mk','g%3^caQ=t,gGKuS(n`**L@D',',j,7;,542Z*QmdH~Q]:)b+D','Z1w,mt^4Pih%1EP','}^`?','ARQ!0.X]K:b2D','}^J"qwy(q','8A~"7V>#+U*Y6|`p','~I4k','t=mk','ARQ!0.pr','^^Jj{','WInk0d=D','8pYZCnO','WInk0dWdFE`Mvx','OFe9ptGqK)sPT0nB6R:N3~T,`/J','fY]k','MHT>{&Ihj)t1WS<p;H:N3~T,r:tYD+RU','r`b_f`aC]V3oD+hU[Wt.','F=b?','%A|ma5uSK:G','3mS.Qx3xWDe[L1',ZFr428(-0x14),'Z#w92','Q#}92','P^J"F2^f4}wxFndpvpSa/',ZFr428(-0x14),'"lk(T&_#)gQClewsaO','JNz<mtY!PikGbXN@6XVh`2.)_dCZAa]54rt@@)Ay','PqN52H<k(X`JlOc~1j4e|>Qy+Zz6w|Y)+CaTr"R#~x2]*','FG`?P(<dHm','fY/AiK/G5P','Xm9aa,;V4}','bp&8ZJ:]v}','8p!1Io9E)g','a=Ea4LlIHg','%gUj3GLxv~','gguK',']^`?aB}r','Ng5Nd','x!3(8aQxN','c)h?{','fY/AiK/G5PNvz<h','pP"<ba0c','"Fo{kWgr','fY6khw2f=U:C[|R)}UDBTZMX@U(;597sbpRKGLC]q','tA~!*ZwpSPJ2D','}^EaXbO','>]<y)X/i0"fBDZLxDUd:l88cbr8?x0_vbg5N)z&k"+_%LLmzI!/anbu9mN','w<mE:kr6;7d?ef^z,!#','"RcysJ9EO!jgBh8`vO','zk&ZxW;Sz7KvovjFogy','|2^<IExI6~@/RqDQVO2Rw','QLj8Z)*','}^&8C4!D','QLj8mJ*','}^&8C4=D','d)+"7wgr','k3F<Ap*','|y%a]','+RvbEhN|N','{^=aaiy/f','Oxh?kee#"5W;EsopMF6k','F=b?','o+[(bU@6Y/M','o+[(u2#jPl','+RvbBj@61,7','GJ&84J:]B5W;EsXpMF6k','+ITjAJsc','^^Jj{','k3F<ApkpLxd7q:','EfIYyaLxN','JIQ"=6O','+ITjAJsc','!!.u5','Rg_E|','==XZM"O','8fdK','^C!<d_ddW','Qg(<','"lk(T&_#)gQClews`PqtNiygtdmEAa9QH(c,DpjxV0Rp0D[;(^^6`n#yIdq7r','t=mk','1M3bU$GT9rf','Qg(<','^!f$1.;_>','Qg(<',ZFr428(-0x14),'"lk(T&_#)gQClewssznhbi@H3p`kcT!3a1b[2$5A"%iQDqs6~}4gcPYl6#','GJ_"=60Ef','xxQ"Zi>6)g',