Commit b3674779 authored by wang's avatar wang

日志管理

parent 8f3dd54e
import {path} from 'ghost-cursor'
import {randint, randomFloat} from './utils.js'
import {getPX12573, createPx2} from './pxenvutils.js'
import {getPX12573, createPx2, getNoPX} from './pxenvutils.js'
import md5 from "md5";
class PxEnv {
export class PxEnv {
constructor(env, url, sid, vid, ts, num1, num2, str1, uuid, startTs, startTs2, performanceNow, px11280,
px755 = '', token = '', token2 = '',
hash = '', hash2 = '', hashv = '') {
......@@ -4756,7 +4756,10 @@ class PxEnv {
}
memory() {
this.memory_data.usedJSHeapSize += randint(1903195, 2903195)
return this.memory_data
}
createMouse() {
let paths = path(
{
......@@ -4787,15 +4790,15 @@ class PxEnv {
// "75602>44073>?2261175": "46531=77340=<1152246",
"PX12454": parseInt(this.num1), // 0III0II0
"PX11701": this.num2.substring(0, 80), // I00III
"PX11529": this.memory.usedJSHeapSize,// usedJSHeapSize
"PX11529": this.memory().usedJSHeapSize,// usedJSHeapSize
// "PX11529": 74208842,// usedJSHeapSize
"PX11555": this.memory.jsHeapSizeLimit,// jsHeapSizeLimit
"PX11833": this.memory.totalJSHeapSize,// totalJSHeapSize
"PX11555": this.memory().jsHeapSizeLimit,// jsHeapSizeLimit
"PX11833": this.memory().totalJSHeapSize,// totalJSHeapSize
// "PX11833": 80878510,// totalJSHeapSize
// "PX11840": "Fri Aug 25 2023 14:20:11 GMT+0800 (中国标准时间)",
"PX11840": new Date() + '',
// "PX12573": "e29b74b1", // parseInt(0III0III/10)
"PX12573": getPX12573(Math.floor(parseInt(ts) / 1e3), this.vid, this.uuid), // parseInt(0III0III/10)
"PX12573": getPX12573(Math.floor(parseInt(this.ts) / 1e3), this.vid, this.uuid), // parseInt(0III0III/10)
// "PX11804": "36f924a304c56d1ae9971c767ca7f510", //uuid 转换
"PX11804": createPx2(this.ua, this.uuid), //uuid 转换
"PX12118": this.str1,// 第一步返回 0ll0ll
......@@ -5023,7 +5026,7 @@ class PxEnv {
// "brand": "Chromium",
// "version": "117"
// }],
"PX12508": this.createPX12508(),
"PX12508": this.ENV.useragentdata.highvalue.brands,
"PX12549": true,
"PX11539": "831efc5e", //Me(console.log)
"PX11528": "", // Object["getOwnPropertyDescriptor"](HTMLDocument["prototype"], "cookie")["get"]
......@@ -5117,11 +5120,14 @@ class PxEnv {
// "PX11379": false
}
let noPX = getNoPX(data)
let noPX = getNoPX(data['PX11701'], data['PX11431'])
data[noPX[0]] = noPX[1]
return data
return {
"t": "PX11590",
"d": data
}
}
}
let env = new PxEnv()
console.log(env.mouses)
\ No newline at end of file
// let env = new PxEnv()
// console.log(env.mouses)
\ No newline at end of file
......@@ -84,3 +84,14 @@ export function createPx2(t, e) {
return j(N(t, e))
}
export function getNoPX(px11701, px11431) {
function $C_kKK(t, e) {
for (var n = "", r = 0; r < t.length; r++) n += String.fromCharCode(e ^ t.charCodeAt(r));
return n;
}
let res = [$C_kKK(px11701, px11431 % 10 + 2), $C_kKK(px11701, px11431 % 10 + 1)]
return res;
}
\ No newline at end of file
import log4js from 'log4js'
import qs from 'qs'
import {genPayload2, genPayload4} from "./step2.js"
import {genPc, genUuid} from "./utils.js"
import {genPc, genUuid, randint, ie} from "./utils.js"
import axios from "axios";
import {encodePayload} from './encodepayload.js'
import {PxEnv} from './px.js'
const ie = (t, e) => {
for (var n = '', r = 0; r < t.length; r++)
// console.log(e, t.charCodeAt(r), e ^ t.charCodeAt(r), String.fromCharCode(e ^ t.charCodeAt(r)))
n += String.fromCharCode(e ^ t.charCodeAt(r))
return n
}
function randint(a, b) {
return Math.floor(Math.random() * (b - a + 1) + a);
}
log4js.configure({
......@@ -81,6 +76,8 @@ class PxBypass {
this.cookies = {}
}
async sleep(ms) {
......@@ -251,6 +248,10 @@ class PxBypass {
let res = await this.do_collector(data)
this.seq++;
this.pxenv = new PxEnv('', this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
this.str1, this.uuid,
this.startTs, this.startTs2, this.performanceNow, this.px12280)
}
async step2() {
......@@ -263,9 +264,10 @@ class PxBypass {
async step3() {
this.performanceNow += randint(1000, 2000)
let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
this.str1, this.uuid,
this.startTs, this.startTs2, this.performanceNow, this.px12280)
// let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid,
// this.startTs, this.startTs2, this.performanceNow, this.px12280)
let data = [this.pxenv.get_px11590()]
let res = await this.do_collector(data)
}
......@@ -320,6 +322,7 @@ class PxBypass {
async function run() {
let px = new PxBypass()
await px.step1()
await px.step2()
await px.sleep(1500)
......
......@@ -167,7 +167,13 @@ export function randint(a, b) {
export function randomFloat(a, b) {
return Math.random() * (b - a) + a;
}
export function ie(t, e){
for (var n = '', r = 0; r < t.length; r++)
// console.log(e, t.charCodeAt(r), e ^ t.charCodeAt(r), String.fromCharCode(e ^ t.charCodeAt(r)))
n += String.fromCharCode(e ^ t.charCodeAt(r))
return n
}
export function genUuid(t, e, n, r) {
function l(t) {
return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
......
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