Commit 1643c24e authored by wang's avatar wang

收集环境

parent ed0ed430
...@@ -1281,7 +1281,8 @@ try { ...@@ -1281,7 +1281,8 @@ try {
var t = cr(["/init.js", "/main.min.js"], "script").resourcePath; var t = cr(["/init.js", "/main.min.js"], "script").resourcePath;
sa = t; sa = t;
} }
}(), function () { }(),
function () {
var t = i; var t = i;
try { try {
if (!navigator.permissions) return void ($r = "PX11606"); if (!navigator.permissions) return void ($r = "PX11606");
...@@ -1291,18 +1292,21 @@ try { ...@@ -1291,18 +1292,21 @@ try {
"prompt" === e.state && ($r = "PX11805"); "prompt" === e.state && ($r = "PX11805");
}); });
} catch (t) {} } catch (t) {}
}(), function () { }(),
function () {
try { try {
navigator.userAgentData && navigator.userAgentData.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion"]).then(function (t) { navigator.userAgentData && navigator.userAgentData.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion"]).then(function (t) {
ta = t; ta = t;
}); });
} catch (t) {} } catch (t) {}
}(), function () { }(),
function () {
try { try {
var t = window.performance && window.performance.memory; var t = window.performance && window.performance.memory;
t && (ea = t.jsHeapSizeLimit, na = t.totalJSHeapSize, ra = t.usedJSHeapSize); t && (ea = t.jsHeapSizeLimit, na = t.totalJSHeapSize, ra = t.usedJSHeapSize);
} catch (t) {} } catch (t) {}
}(), function () { }(),
function () {
try { try {
(ia = document.createElement("iframe")).setAttribute("style", "display:none"), ia.onload = function () { (ia = document.createElement("iframe")).setAttribute("style", "display:none"), ia.onload = function () {
oa = ia.contentWindow, ia.onload = void 0; oa = ia.contentWindow, ia.onload = void 0;
......
...@@ -14,6 +14,9 @@ def js(): ...@@ -14,6 +14,9 @@ def js():
def collect(): def collect():
print(request.data.decode()) print(request.data.decode())
return 'ok' return 'ok'
@app.route('/collect/mouse', methods=["POST"])
def collectMouse():
print(request.data.decode())
return 'ok'
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0',debug=True, port=11233) app.run(host='0.0.0.0',debug=True, port=11233)
\ No newline at end of file
This diff is collapsed.
...@@ -4,6 +4,7 @@ import axios from "axios"; ...@@ -4,6 +4,7 @@ import axios from "axios";
import {PxEnv} from './px.js' import {PxEnv} from './px.js'
import {MongoClient} from "mongodb"; import {MongoClient} from "mongodb";
import * as fs from "fs"; import * as fs from "fs";
const plt = process.platform; const plt = process.platform;
let ENVS = JSON.parse(fs.readFileSync('./env.json', 'utf-8').toString()) let ENVS = JSON.parse(fs.readFileSync('./env.json', 'utf-8').toString())
let keys = Object.keys(ENVS); let keys = Object.keys(ENVS);
...@@ -45,6 +46,7 @@ class PxBypass { ...@@ -45,6 +46,7 @@ class PxBypass {
this.pxUrl = `https://collector-${this.appId}.px-cloud.net/api/v2/collector` this.pxUrl = `https://collector-${this.appId}.px-cloud.net/api/v2/collector`
this.log = log4js.getLogger('px') this.log = log4js.getLogger('px')
this.px_11547_env = {"PX12492":"c505c10e26a1b7a7741437db9f82916b","PX12570":"765e7fec18e05461339f77d18a1f13ca","PX11352":"a1c3b153658dad38c14af23e061b7827","PX12292":"WebKit","PX11811":[],"PX11567":"WebKit WebGL","PX12032":"WebGL 1.0 (OpenGL ES 2.0 Chromium)","PX11536":["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_clip_control","EXT_color_buffer_half_float","EXT_depth_clamp","EXT_disjoint_timer_query","EXT_float_blend","EXT_frag_depth","EXT_polygon_offset_clamp","EXT_shader_texture_lod","EXT_texture_compression_bptc","EXT_texture_compression_rgtc","EXT_texture_filter_anisotropic","EXT_texture_mirror_clamp_to_edge","EXT_sRGB","KHR_parallel_shader_compile","OES_element_index_uint","OES_fbo_render_mipmap","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_blend_func_extended","WEBGL_color_buffer_float","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_debug_renderer_info","WEBGL_debug_shaders","WEBGL_depth_texture","WEBGL_draw_buffers","WEBGL_lose_context","WEBGL_multi_draw","WEBGL_polygon_mode"],"PX12149":["[1, 1]","[1, 1024]",8,"yes",8,24,8,16,32,16384,1024,16384,16,16384,30,16,16,4096,"[32767, 32767]","no_fp",23,127,127,23,127,127,23,127,127,23,127,127,23,127,127,23,127,127,23,127,127,23,127,127,23,127,127,23,127,127,23,127,127,23,127,127],"PX12352":"Google Inc. (Intel)","PX11455":"ANGLE (Intel, Intel(R) UHD Graphics 770 (0x0000A780) Direct3D11 vs_5_0 ps_5_0, D3D11)","PX11534":"WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)","PX12503":"96ff435b6ebac2817a4d5bfc475aa8e4","PX12502":"dab81cb438e9b1ecd9151a3ba33a82b8","PX11927":"5a0d7e6e100ada6058acd138addad7ef","PX12572":"348e94ec5cb046ed840466b30acfce5e","PX11477":"126.86972438948578","PX12109":"2dce8c55c6897067fdf0c76ddf6e6d50","PX12362":"0e65c2b867c725ffe41f9994c6c2454b","PX12354":"926ed8ba7284400652ca3b397cda2f6a","PX12491":"7523bf6e5dcadcffdae6b3063827e345","PX12622":"016beb17dd57a6e446b36265284c0c9c","PX12130":["$n","$r","_a","$d","$t","_e","$e","_n","_t"],"PX11386":["webdriver"],"PX12525":"7b2918caf58f83869e083dcdf3fb68d1","PX12526":"d41d8cd98f00b204e9800998ecf8427e","PX11948":1,"PX11986":true,"PX12299":true,"PX12331":false,"PX11316":false,"PX11448":true,"PX12196":"missing","PX12427":["$n","$r","_a","$d","$t","_e","$e","_n","_t"],"PX11842":[],"PX12439":["PDF Viewer::Portable Document Format::application/pdf~pdf::text/pdf~pdf","Chrome PDF Viewer::Portable Document Format::application/pdf~pdf::text/pdf~pdf","Chromium PDF Viewer::Portable Document Format::application/pdf~pdf::text/pdf~pdf","Microsoft Edge PDF Viewer::Portable Document Format::application/pdf~pdf::text/pdf~pdf","WebKit built-in PDF::Portable Document Format::application/pdf~pdf::text/pdf~pdf"],"PX12288":true,"PX12446":33,"PX12236":"fd7149bbfb316699ef918fa7bb7510a8","PX11309":"d41d8cd98f00b204e9800998ecf8427e","PX11551":"fd7149bbfb316699ef918fa7bb7510a8","PX12586":2}
// let env = fs.readFileSync('./env.json', 'utf-8') // let env = fs.readFileSync('./env.json', 'utf-8')
// env = JSON.parse(env); // env = JSON.parse(env);
...@@ -4901,7 +4903,7 @@ class PxBypass { ...@@ -4901,7 +4903,7 @@ class PxBypass {
// n.d['PX11645'] = this.url; // n.d['PX11645'] = this.url;
n.d["PX11379"] = false; n.d["PX11379"] = false;
} }
if (plt === 'darwin')console.log(JSON.stringify(data)) if (plt === 'darwin') console.log(JSON.stringify(data))
// if (typeof data === 'object') { // if (typeof data === 'object') {
// data = ht(data) // data = ht(data)
...@@ -5015,7 +5017,7 @@ class PxBypass { ...@@ -5015,7 +5017,7 @@ class PxBypass {
let result = void 0; let result = void 0;
if (inRes['ob']) { if (inRes['ob']) {
let cks = ie(atob(inRes.ob), this.version()).split('~~~~') let cks = ie(atob(inRes.ob), this.version()).split('~~~~')
if (plt === 'darwin')this.log.info(cks.length, JSON.stringify(cks, null, '\t')) if (plt === 'darwin') this.log.info(cks.length, JSON.stringify(cks, null, '\t'))
for (var ck of cks) { for (var ck of cks) {
let tmp = ck.split('|'); let tmp = ck.split('|');
...@@ -5098,7 +5100,7 @@ class PxBypass { ...@@ -5098,7 +5100,7 @@ class PxBypass {
} }
async step1() { async step1() {
if (plt === 'darwin')this.log.info("PX12095") if (plt === 'darwin') this.log.info("PX12095")
// this.log.info('setp1') // this.log.info('setp1')
let t1 = new Date().getTime(); let t1 = new Date().getTime();
...@@ -5121,14 +5123,14 @@ class PxBypass { ...@@ -5121,14 +5123,14 @@ class PxBypass {
let res = await this.do_collector(data) let res = await this.do_collector(data)
this.seq++; this.seq++;
this.pxenv = new PxEnv(this.env, this.url, this.sid, this.vid, this.ts, this.num1, this.num2, this.pxenv = new PxEnv(this.px_11547_env,this.env, this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
this.str1, this.uuid, this.str1, this.uuid,
this.startTs, this.startTs2, this.performanceNow, this.px12280) this.startTs, this.startTs2, this.performanceNow, this.px12280)
} }
async step2() { async step2() {
if (plt === 'darwin')this.log.info("PX12167") if (plt === 'darwin') this.log.info("PX12167")
this.performanceNow += randint(1000, 2000) this.performanceNow += randint(1000, 2000)
...@@ -5138,7 +5140,7 @@ class PxBypass { ...@@ -5138,7 +5140,7 @@ class PxBypass {
} }
async step3() { async step3() {
if (plt === 'darwin')this.log.info('11590') if (plt === 'darwin') this.log.info('11590')
this.performanceNow = randint(3000, 4000) this.performanceNow = randint(3000, 4000)
// let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2, // let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid, // this.str1, this.uuid,
...@@ -5149,7 +5151,7 @@ class PxBypass { ...@@ -5149,7 +5151,7 @@ class PxBypass {
} }
async step31() { async step31() {
if (plt === 'darwin')this.log.info("px11951") if (plt === 'darwin') this.log.info("px11951")
this.performanceNow = randint(3000, 4000) this.performanceNow = randint(3000, 4000)
// let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2, // let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
...@@ -5161,15 +5163,17 @@ class PxBypass { ...@@ -5161,15 +5163,17 @@ class PxBypass {
} }
async step4() { async step4() {
if (plt === 'darwin') this.log.info("px11547") if (plt === 'darwin') this.log.info("px11547")
this.performanceNow += randint(1000, 2000) this.performanceNow += randint(1000, 2000)
// let data = genPayload4(this.url, this.sid, this.vid, this.ts, this.num1, this.num2, // let data = genPayload4(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid, // this.str1, this.uuid,
// this.startTs, this.startTs2, this.performanceNow, this.px12280) // this.startTs, this.startTs2, this.performanceNow, this.px12280)
this.pxenv.performanceNow = this.performanceNow this.pxenv.performanceNow = this.performanceNow
let d = this.pxenv.get_px11547();
Object.assign(d.d, this.px_11547_env)
let data = [ let data = [
// this.pxenv.get_px11891(), // this.pxenv.get_px11891(),
this.pxenv.get_px11547()] d]
let res = await this.do_collector(data) let res = await this.do_collector(data)
} }
...@@ -5189,25 +5193,25 @@ class PxBypass { ...@@ -5189,25 +5193,25 @@ class PxBypass {
// "user-agent": this.ua, // "user-agent": this.ua,
// "cookie": cks // "cookie": cks
// } // }
let headers = { let headers = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"accept-language": "en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6", "accept-language": "en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
"cache-control": "no-cache", "cache-control": "no-cache",
"pragma": "no-cache", "pragma": "no-cache",
"priority": "u=0, i", "priority": "u=0, i",
"sec-ch-ua": "\"Google Chrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", "sec-ch-ua": "\"Google Chrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"",
"sec-ch-ua-mobile": "?0", "sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"", "sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "document", "sec-fetch-dest": "document",
"sec-fetch-mode": "navigate", "sec-fetch-mode": "navigate",
"sec-fetch-site": "same-site", "sec-fetch-site": "same-site",
"sec-fetch-user": "?1", "sec-fetch-user": "?1",
"upgrade-insecure-requests": "1", "upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
} }
let res = await axios.post(this.tlsUrl, JSON.stringify({ let res = await axios.post(this.tlsUrl, JSON.stringify({
url: 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=ATL&d1=AUS&dd1=May%2031,%202024&ADT=1&mon=true&promo=', url: 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=ATL&d1=AUS&dd1=May%2031,%202024&ADT=1&mon=true&promo=',
headers:headers, headers: headers,
allow_redirects: true, allow_redirects: true,
debug: true, debug: true,
method: "GET", method: "GET",
...@@ -5225,7 +5229,7 @@ class PxBypass { ...@@ -5225,7 +5229,7 @@ class PxBypass {
} }
async do_func(func) { async do_func(func) {
if (plt === 'darwin')this.log.info(func.t) if (plt === 'darwin') this.log.info(func.t)
this.performanceNow += randint(1000, 2000) this.performanceNow += randint(1000, 2000)
let data = [func] let data = [func]
let res = await this.do_collector(data) let res = await this.do_collector(data)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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