Commit 4b594add authored by 王明明's avatar 王明明

修复vy

parent e122df21
......@@ -6,8 +6,10 @@ const { createCanvas, loadImage } = require('canvas')
let fps = [
"-841148590;-1;dis;;true;true;true;-480;true;24;24;true;false;-1",
"-1079023594;-1;dis;;true;true;true;-480;true;24;24;true;false;-1",
"448809179;-1;dis;;true;true;true;-480;true;24;24;true;false;-1",
]
let ss= [30261693, 30228925]
let ss= [30261693, 30228925, 30261693]
let selectIdx = parseInt(Math.random() * 2);
// selectIdx = 1
let fpValStr = fps[selectIdx];
......@@ -18,9 +20,9 @@ let FingerprintGenerator = require('fingerprint-generator').FingerprintGenerator
let fingerprintGenerator = new FingerprintGenerator({
browsers: [
{ name: "chrome", minVersion: 87 },
// { name: "edge", minVersion: 99 },
// "safari"
{ name: "chrome", minVersion: 99 },
{ name: "edge", minVersion: 99 },
"safari"
],
devices: [
"mobile",
......@@ -29,7 +31,7 @@ let fingerprintGenerator = new FingerprintGenerator({
operatingSystems: [
// "windows", "macos",
"android",
// "ios"
"ios"
]
});
......@@ -259,11 +261,11 @@ function run(times, url, s3, bm_sz, returnData){
f8 = fingerprint.screen.availHeight
t8 = fingerprint.screen.width
J8 = fingerprint.screen.height
w8 = fingerprint.screen.innerWidth | fingerprint.screen.width
r8 = fingerprint.screen.innerHeight |fingerprint.screen.height
w8 = fingerprint.screen.innerHeight | fingerprint.screen.height
r8 = fingerprint.screen.innerWidth |fingerprint.screen.width
m8 = fingerprint.screen.outerWidth
navigator = fingerprint.navigator
navigator.plugins = 0
navigator.plugins = '0'
}
var Rs = navigator.productSub;
var ds = navigator.language;
......@@ -356,6 +358,8 @@ function run(times, url, s3, bm_sz, returnData){
Ns = parseInt(bO(Ds * 1000, 2), 10);
// mac 9744 win 9096
var q8 = ab(ua);
// "Mozilla/5.0 (Linux; Android 10; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36,uaend,12147,20030107,en-US,Gecko,
// 0,0,0,0,413251,0,412,915,412,915,412,915,412,,cpen:0,i1:0,dm:0,cwen:0,non:1,opc:0,fc:0,sc:0,wrc:1,isc:0,vib:1,bat:1,x11:0,x12:1,9033,0.488671446244,839779612453.5,0,loc:",
let data2 = [
......@@ -668,13 +672,13 @@ function run(times, url, s3, bm_sz, returnData){
var i = pe_cnt + "," + a + "," + r + "," + o + "," + m;
pe_vel =pe_vel + pe_cnt+ a + r + o + m
pact = pact + i + ';';
1 == a ? pme_cnt++ : pduce_cnt++
1 == a ? pme_cnt++ : pduce_cnt++, pe_cnt++;
ta += r;
}
function pointerEvent(){
let t = parseInt(Math.random() *100) +30
let x = parseInt(Math.random() * 229 + (229 / 2))
let y = parseInt(Math.random() * 691 + (691 / 2))
let x = parseInt(Math.random() * fingerprint.screen.width / 2 + (fingerprint.screen.width / 2))
let y = parseInt(Math.random() * fingerprint.screen.height / 2 + (fingerprint.screen.height / 2))
event114(3,x,y,t)
event114(4,x,y,t)
}
......@@ -682,13 +686,13 @@ function run(times, url, s3, bm_sz, returnData){
let vcact = '';
let vc_cnt = 0;
function event103 (t) {
a = Date.now() - bmak.startTs + Math.floor(Math.random() * (5000 - 1000)) + 2000
e = t + ',' + a + ';'
var a = Date.now() - bmak.startTs + parseInt(Math.random() * 300) + parseInt(Math.random() * 100)
var e = t + ',' + a + ';'
vcact = vcact + e;
vc_cnt ++ ;
}
if (times > 1){
if (Math.random() > 0.1) {
if (times > 0){
if (Math.random() > 0) {
for (let i = 0; i < parseInt(Math.random() * 10 + Math.random() * 10); i++) {
var s = 'qwertyuiopasdfghjklzxcvbnm1234567890;[],./\\'
keyEvent(s[parseInt(Math.random() *s.length)])
......@@ -703,25 +707,29 @@ function run(times, url, s3, bm_sz, returnData){
event110(1,offX, offY)
event110(3,offX, offY)
event110(4,offX, offY)
}
if (Math.random() > 0.1){
if (Math.random() > 0){
for (let i = 0; i < parseInt(Math.random() * 5 + Math.random() *10); i++) {
devicemotionEvent()
event103(2)
event103(3)
}
}
if (Math.random() > 0.1){
if (Math.random() > 0){
for (let i = 0; i < parseInt( Math.random() *5 + Math.random() *5) + 1; i++) {
touchEvent()
}
}
if (Math.random() > 0.1) {
if (Math.random() > 0) {
for (let i = 0; i < parseInt(Math.random() * 10 + Math.random() * 10); i++) {
orientationEvent()
}
}
if (Math.random() > 0.1) {
if (Math.random() > 0) {
for (let i = 0; i < parseInt(Math.random() * 10 + Math.random() * 5); i++) {
pointerEvent()
......@@ -869,7 +877,7 @@ function run(times, url, s3, bm_sz, returnData){
let XJ = "0,841583dac09a721cf2d2c57a09180590d9939b2b73219e5cc6b1dc72b2b04594,0123456789101112,Other";
let qJ = '-1';
let arg128 = ""["concat"](WJ, ",")["concat"](NJ, ",")["concat"](gJ)
// arg128 = ',1,940925d1b20db7e9ace7d42cb9f7efb38d0d1b3e77f44b62f059f99f534425ac'
arg128 = ',1,940925d1b20db7e9ace7d42cb9f7efb38d0d1b3e77f44b62f059f99f534425ac'
let arg131 = ""["concat"](FJ, ",")["concat"](VJ, ",")["concat"](RJ, ",")["concat"](dJ)
let arg132 = ""["concat"](XJ, ",")["concat"](qJ);
......@@ -1058,7 +1066,7 @@ function run(times, url, s3, bm_sz, returnData){
"")
data.push(
"-124",
arg124,
"",
"-126",
"")
data.push(
......@@ -1279,8 +1287,7 @@ function genSensorData(data, f3, t3, ua){
console.log(ww);
// console.log(Mw)
var zr = ""["concat"](k3(Date.now(), f3), ",")["concat"](0, ",")["concat"]
(tw, ",")["concat"](cw, ",")["concat"](Mr, ",")["concat"](0);
var zr = ""["concat"](k3(Date.now(), f3), ",")["concat"](0, ",")["concat"](cw, ",")["concat"](Mr, ",")["concat"](0);
// zr = '18,0,1,2,20'
Mw = bd(bd(bd(bd(bd(bd(bd("2;", ww[0]), fr), ww[1]), fr), zr), fr), Mw);
......
......@@ -11,7 +11,7 @@ func VueLing(carrierType, proxyUrl string) (*Akm, error) {
if err != nil {
return nil, err
}
for i := 0; i < 4; i++ {
for i := 0; i < 6; i++ {
err := akmClient.postSensorJs(i)
if err != nil {
akmClient.logger.WithError(err).Errorln("请求失败")
......
......@@ -167,13 +167,12 @@ var px = "http://user-unifflcc-region-de:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
var akmUrl = "http://lcc.unififi.com/akamai/gen"
func main() {
Debug = flag.Bool("debug", false, "本地调试")
Debug = flag.Bool("debug", true, "本地调试")
flag.Parse()
if *Debug {
px = "http://127.0.0.1:8890"
r := rand.Intn(1149) + 10000
px = fmt.Sprintf("http://user-unifflcc-region-de-sessid-%d-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600", r)
if *Debug {
//px = "http://127.0.0.1:8890"
akmUrl = "http://127.0.0.1:59001/akamai/gen"
}
fmt.Println(px)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment