MCPcopy Create free account
hub / github.com/Semporia/Scripts / randomString

Function randomString

jd_upgrade.js:14–20  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

12const UA = `jdapp;iPhone;${jdVersion};${Math.ceil(Math.random()*2+12)}.${Math.ceil(Math.random()*4)};${randomString(40)};network/wifi;model/iPhone12,1;addressid/0;appBuild/167741;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS ${iphoneVersion[0]}_${iphoneVersion[1]} like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1`
13const UUID = UA.split(';') && UA.split(';')[4] || ''
14function randomString(e) {
15 e = e || 32;
16 let t = "abcdefhijkmnprstwxyz2345678", a = t.length, n = "";
17 for (i = 0; i < e; i++)
18 n += t.charAt(Math.floor(Math.random() * a));
19 return n
20}
21
22let cookiesArr = [];
23if ($.isNode()) {

Callers 1

jd_upgrade.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected