Commit 7babf065 authored by wang's avatar wang

nk test

parent 37c63b29
import matplotlib.pyplot as plt
# 准备数据
x = [1, 2, 3, 4, 5]
y = [1719040755968,1719040757623,1719040760198,1719040769708,1719040774949,1719040776719,1719040779209,1719041019884,1719041261887,1719041504112,1719041804117]
y = [(i - 1719040755968) / 1000 for i in y]
print(y)
x = list(range(len(y)))
print(len(y))
# 绘制折线图
plt.plot(x, y)
# 设置图表标题
plt.title('Simple Plot')
# 设置x轴和y轴标签
plt.xlabel('x axis')
plt.ylabel('y axis')
# 显示图例
plt.legend(['Line 1'])
# 显示图表
plt.show()
\ No newline at end of file
...@@ -6,6 +6,7 @@ import {encodePayload} from './encodepayload.js' ...@@ -6,6 +6,7 @@ import {encodePayload} from './encodepayload.js'
import {PxEnv} from './px.js' import {PxEnv} from './px.js'
// import {getPayload} from "./all.js"; // import {getPayload} from "./all.js";
import * as fs from "fs"; import * as fs from "fs";
const plt = process.platform;
process.env.TZ = 'Asia/Shanghai'; process.env.TZ = 'Asia/Shanghai';
...@@ -26,8 +27,8 @@ log4js.configure({ ...@@ -26,8 +27,8 @@ log4js.configure({
}); });
class PxBypass { class PxBypass {
tag = "v8.7.8" tag = "v8.9.6"
ft = "318" ft = "330"
appId = "PXVb73hTEg" appId = "PXVb73hTEg"
ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
// ua = "Mozilla/5.0 (Linux; Android 10; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36"; // ua = "Mozilla/5.0 (Linux; Android 10; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36";
...@@ -262,30 +263,30 @@ class PxBypass { ...@@ -262,30 +263,30 @@ 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('~~~~')
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('|');
if (tmp[0] === 'o11o1ooo') { // if (tmp[0] === 'o11o1ooo') {
this.log.fatal('result', tmp[1] === '0') // this.log.fatal('result', tmp[1] === '0')
result = tmp[1] === '0' // result = tmp[1] === '0'
} // }
if (tmp[0] === 'o111oo11') { if (tmp[0] === 'o11o11o1') {
this.ts = tmp[1] this.ts = tmp[1]
} }
if (tmp[0] === '11oo1o') { if (tmp[0] === '1oo11o') {
this.ci = tmp[2] this.ci = tmp[2]
this.token = tmp[4].split('_')[0] this.token = tmp[4].split('_')[0]
this.token2 = tmp[4].split('_')[1] this.token2 = tmp[4].split('_')[1]
} }
if (tmp[0] === 'o1oo11') { if (tmp[0] === 'ooo111') {
this.hash = tmp[2] this.hash = tmp[2]
this.hash2 = tmp[3] this.hash2 = tmp[3]
this.hashv = tmp[4] this.hashv = tmp[4]
} }
if (tmp[0] === 'o111oo1o') { if (tmp[0] === 'o11o11oo') {
this.num1 = tmp[1] this.num1 = tmp[1]
} }
...@@ -307,11 +308,11 @@ class PxBypass { ...@@ -307,11 +308,11 @@ class PxBypass {
this.sid = tmp[1] this.sid = tmp[1]
} }
if (tmp[0] === '11o111') { if (tmp[0] === '1ooo11') {
this.cs = tmp[1] this.cs = tmp[1]
} }
if (tmp[0] === 'o11oo11o') { if (tmp[0] === 'o11o1ooo') {
this.cts = tmp[1] this.cts = tmp[1]
this.cookies['pxcts'] = this.cts this.cookies['pxcts'] = this.cts
} }
...@@ -323,7 +324,20 @@ class PxBypass { ...@@ -323,7 +324,20 @@ class PxBypass {
if (tmp.includes('_px2')) { if (tmp.includes('_px2')) {
this.cookies['_px2'] = tmp[3] this.cookies['_px2'] = tmp[3]
this.log.debug(`px2_decode ${atob(this.cookies['_px2'])}`) this.log.debug(`px2_decode ${atob(this.cookies['_px2'])}`)
let parsePx2 = JSON.parse(atob(this.cookies['_px2']))
// if (!parsePx2.t.toString().startsWith('6202')) {
// this.flag = true
// this.awaitTime = parsePx2.t - Date.now()
// } else {
// this.flag = false;
// }
}
if (tmp[1] === 'score') {
if (tmp[2] === '0') {
this.flag = true
} else {
this.flag = false;
}
} }
} }
...@@ -429,7 +443,7 @@ class PxBypass { ...@@ -429,7 +443,7 @@ class PxBypass {
// 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,
// this.startTs, this.startTs2, this.performanceNow, this.px12280) // this.startTs, this.startTs2, this.performanceNow, this.px12280)
this.pxenv = new PxEnv(this.env, this.url, this.sid, this.vid, this.ts, this.num1, this.num2, this.pxenv = new PxEnv(undefined, 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,
this.ci, this.token, this.token2, this.hash, this.hash2, this.hashv) this.ci, this.token, this.token2, this.hash, this.hash2, this.hashv)
...@@ -467,7 +481,7 @@ class PxBypass { ...@@ -467,7 +481,7 @@ class PxBypass {
this.pxenv.performanceNow = this.performanceNow this.pxenv.performanceNow = this.performanceNow
this.pxenv.performanceNow2 = this.pxenv.performanceNow; this.pxenv.performanceNow2 = this.pxenv.performanceNow;
this.log.info('performanceNow', this.pxenv.performanceNow) this.log.info('performanceNow', this.pxenv.performanceNow)
this.pxenv = new PxEnv(this.env, this.url, this.sid, this.vid, this.ts, this.num1, this.num2, this.pxenv = new PxEnv(undefined,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,
this.ci, this.token, this.token2, this.hash, this.hash2, this.hashv) this.ci, this.token, this.token2, this.hash, this.hash2, this.hashv)
......
...@@ -8,8 +8,8 @@ import * as fs from "fs"; ...@@ -8,8 +8,8 @@ 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);
const uri = "mongodb://lcc-spider:JIUsfhiad&^@54.183.159.9:27017/?authSource=admin&directConnection=true"; // const uri = "mongodb://lcc-spider:JIUsfhiad&^@54.183.159.9:27017/?authSource=admin&directConnection=true";
// const uri = 'mongodb://root:123456@192.168.50.110:27017/' const uri = 'mongodb://root:123456@192.168.50.110:27017/'
const client = new MongoClient(uri); const client = new MongoClient(uri);
log4js.levels.INFO.colour = 'white'; log4js.levels.INFO.colour = 'white';
...@@ -37,17 +37,20 @@ async function sleep(ms) { ...@@ -37,17 +37,20 @@ async function sleep(ms) {
class PxBypass { class PxBypass {
tag = "v8.9.6" tag = "v8.9.6"
ft = "330" ft = "330"
get ua(){
get ua() {
return this._ua; return this._ua;
} }
set ua(v){
set ua(v) {
this._ua = v; this._ua = v;
let regexs = / Chrome\/(\d+)\.\d+\./g.exec(v); let regexs = / Chrome\/(\d+)\.\d+\./g.exec(v);
if (regexs!= null){ if (regexs != null) {
this.secua = `\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"${regexs[1]}\", \"Google Chrome\";v=\"${regexs[1]}\"` this.secua = `\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"${regexs[1]}\", \"Google Chrome\";v=\"${regexs[1]}\"`
} }
// console.log(regexs) // console.log(regexs)
} }
constructor(is_local = false) { constructor(is_local = false) {
this._ua = ''; this._ua = '';
this.is_local = is_local; this.is_local = is_local;
...@@ -119,12 +122,12 @@ class PxBypass { ...@@ -119,12 +122,12 @@ class PxBypass {
this.tlsUrl = 'http://52.52.23.116/tls/forward' this.tlsUrl = 'http://52.52.23.116/tls/forward'
if (this.is_local) { if (this.is_local) {
this.tlsUrl = 'http://127.0.0.1:58000/tls/forward' this.tlsUrl = 'http://127.0.0.1:58000/tls/forward'
this.tlsUrl = 'http://192.168.50.197:58000/tls/forward' // this.tlsUrl = 'http://192.168.50.197:58000/tls/forward'
this.tlsUrl = 'http://52.52.23.116/tls/forward' // this.tlsUrl = 'http://52.52.23.116/tls/forward'
this.prox = 'http://127.0.0.1:7890' this.prox = 'http://127.0.0.1:7890'
// this.prox = 'http://brd-customer-hl_70986309-zone-web_unlocker1-country-us:4dn0oh24j9mp@brd.superproxy.io:22225' // this.prox = 'http://brd-customer-hl_70986309-zone-web_unlocker1-country-us:4dn0oh24j9mp@brd.superproxy.io:22225'
this.prox = `http://brd-customer-hl_70986309-zone-isp-session-${Math.random()}:ozfawewfxj8y@brd.superproxy.io:22225` // this.prox = `http://brd-customer-hl_70986309-zone-isp-session-${Math.random()}:ozfawewfxj8y@brd.superproxy.io:22225`
} }
...@@ -267,6 +270,7 @@ class PxBypass { ...@@ -267,6 +270,7 @@ class PxBypass {
this.env2.px11547.PX11849 = this.env2.px11590.PX11849 this.env2.px11547.PX11849 = this.env2.px11590.PX11849
delete this.env2.px11547.PX12427 delete this.env2.px11547.PX12427
delete this.env2.px11547.PX12130 delete this.env2.px11547.PX12130
delete this.env2.px11547.PX11993
this.env.navigatorparams.platform = this.env2.px11590.PX12458 this.env.navigatorparams.platform = this.env2.px11590.PX12458
this.env.navigatorparams.useragent = this.ua; this.env.navigatorparams.useragent = this.ua;
this.log.info('ua', this.ua) this.log.info('ua', this.ua)
...@@ -296,7 +300,7 @@ class PxBypass { ...@@ -296,7 +300,7 @@ class PxBypass {
try { try {
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let n = data[i]; let n = data[i];
// 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))
...@@ -540,7 +544,7 @@ class PxBypass { ...@@ -540,7 +544,7 @@ class PxBypass {
this.performanceNow += randint(1000, 2000) this.performanceNow += randint(1000, 2000)
let data = [{"t": "PX12167", "d": {"PX11648": true, "PX11645":this.url}}] let data = [{"t": "PX12167", "d": {"PX11648": true, "PX11645": this.url}}]
let res = await this.do_collector(data) let res = await this.do_collector(data)
} }
...@@ -597,7 +601,7 @@ class PxBypass { ...@@ -597,7 +601,7 @@ class PxBypass {
Object.assign(d.d, this.env2.px11547) Object.assign(d.d, this.env2.px11547)
let data = [ let data = [
// this.pxenv.get_px11891(), // this.pxenv.get_px11891(),
this.pxenv.get_px12123(), // this.pxenv.get_px12123(),
d] d]
let res = await this.do_collector(data) let res = await this.do_collector(data)
} }
...@@ -647,7 +651,7 @@ class PxBypass { ...@@ -647,7 +651,7 @@ class PxBypass {
// }) // })
// } // }
if(cks!=="")headers['cookie'] = cks; if (cks !== "") headers['cookie'] = cks;
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?s=true&o1=ATL&d1=BMI&dd1=2024-07-18&dd2=0001-01-01&mon=true&adt=1', url: 'https://booking.flyfrontier.com/Flight/InternalSelect?s=true&o1=ATL&d1=BMI&dd1=2024-07-18&dd2=0001-01-01&mon=true&adt=1',
headers: headers, headers: headers,
...@@ -706,7 +710,7 @@ class PxBypass { ...@@ -706,7 +710,7 @@ class PxBypass {
"sec-fetch-user": "?1", "sec-fetch-user": "?1",
"priority": "u=1", "priority": "u=1",
"te": "trailers" "te": "trailers"
}, },
allow_redirects: true, allow_redirects: true,
debug: true, debug: true,
method: "GET", method: "GET",
...@@ -1051,7 +1055,7 @@ class PxBypass { ...@@ -1051,7 +1055,7 @@ class PxBypass {
"PX11379": false "PX11379": false
} }
} }
] ]
let res = await this.do_collector(data) let res = await this.do_collector(data)
} }
} }
...@@ -1086,18 +1090,22 @@ async function run() { ...@@ -1086,18 +1090,22 @@ async function run() {
await px.px11590() await px.px11590()
await sleep(3000) await sleep(3000)
// if (!px.flag)await px.px11951() if (!px.flag)await px.px11951()
if (!px.flag) await px.do_func(px.pxenv.get_px11891())
// await px.step12419() // await px.step12419()
if (!px.flag) await sleep(3500) if (!px.flag) await sleep(3500)
// await px.do_func(px.pxenv.get_px12123()) if (!px.flag) await px.do_func(px.pxenv.get_px12123())
// await sleep(2000) if (!px.flag) await sleep(2000)
if (!px.flag)await px.px11547() if (!px.flag) await px.px11547()
if (!px.flag)await sleep(5000) if (!px.flag) await sleep(5000)
// //
// //
// //
// await sleep(1500) // await sleep(1500)
if (!px.flag)await px.do_func(px.pxenv.get_px11891())
px.log.info("sleep", px.awaitTime) px.log.info("sleep", px.awaitTime)
await sleep(px.awaitTime) await sleep(px.awaitTime)
await px.test() await px.test()
......
...@@ -616,7 +616,7 @@ export class PxEnv { ...@@ -616,7 +616,7 @@ export class PxEnv {
this.startTs2 = startTs2 this.startTs2 = startTs2
this.performanceNow = performanceNow this.performanceNow = performanceNow
this.performanceNow2 = randint(4400, 4600); this.performanceNow2 = randint(4400, 4600);
this.px11280 = px11280 this._px12280 = px11280
let totalJSHeapSize = randint(35903195, 39903195) let totalJSHeapSize = randint(35903195, 39903195)
this.memory_data = { this.memory_data = {
totalJSHeapSize: totalJSHeapSize, totalJSHeapSize: totalJSHeapSize,
...@@ -629,7 +629,12 @@ export class PxEnv { ...@@ -629,7 +629,12 @@ export class PxEnv {
} }
get px12280(){
return Date.now();
}
set px12280(v){
this._px12280 = v;
}
bao(data) { bao(data) {
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let g = data[i]; let g = data[i];
...@@ -659,7 +664,7 @@ export class PxEnv { ...@@ -659,7 +664,7 @@ export class PxEnv {
createMouse() { createMouse() {
this.startPoint = { this.startPoint = {
"x": randint(130, 150), "y": randint(30, 41), "x": randint(219, 519), "y": randint(506, 906),
} }
this.endPoint = { this.endPoint = {
"x": this.startPoint.x + randint(10, 20), "y": this.startPoint.y + randint(10, 20), "x": this.startPoint.x + randint(10, 20), "y": this.startPoint.y + randint(10, 20),
...@@ -752,7 +757,7 @@ export class PxEnv { ...@@ -752,7 +757,7 @@ export class PxEnv {
"PX11332": this.startTs + randint(1000, 2500), "PX11332": this.startTs + randint(1000, 2500),
"PX12248": 3600, "PX12248": 3600,
"PX11385": this.startTs, "PX11385": this.startTs,
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, //uuid "PX11496": this.uuid, //uuid
...@@ -1056,6 +1061,9 @@ export class PxEnv { ...@@ -1056,6 +1061,9 @@ export class PxEnv {
} }
let noPX = getNoPX(data['PX11701'], data['PX11431']) let noPX = getNoPX(data['PX11701'], data['PX11431'])
data[noPX[0]] = noPX[1] data[noPX[0]] = noPX[1]
let px12280 = this.px12280
data.PX12280 = px12280
return { return {
"t": "PX11590", "d": data "t": "PX11590", "d": data
} }
...@@ -1068,7 +1076,7 @@ export class PxEnv { ...@@ -1068,7 +1076,7 @@ export class PxEnv {
"PX12228": "[\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementById at new i.fn.init at i at eval , <anonymous>:1:20) at eval , <anonymous>:1:64) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke \",\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementById at new i.fn.init at i at eval , <anonymous>:1:20) at eval , <anonymous>:1:64) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke \",\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementsByClassName at eval , <anonymous>:1:29) at eval , <anonymous>:1:76) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke at Qa at Wc.evaluate \",\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementsByClassName at eval , <anonymous>:1:29) at eval , <anonymous>:1:76) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke at Qa at Wc.evaluate \"]", "PX12228": "[\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementById at new i.fn.init at i at eval , <anonymous>:1:20) at eval , <anonymous>:1:64) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke \",\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementById at new i.fn.init at i at eval , <anonymous>:1:20) at eval , <anonymous>:1:64) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke \",\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementsByClassName at eval , <anonymous>:1:29) at eval , <anonymous>:1:76) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke at Qa at Wc.evaluate \",\"TypeError: Cannot read properties of null at tr at HTMLDocument.getElementsByClassName at eval , <anonymous>:1:29) at eval , <anonymous>:1:76) at w.<computed>.e at Wc.PE at Wc.<anonymous> at ca.invoke at Qa at Wc.evaluate \"]",
"PX11902": 3, "PX11902": 3,
"PX11560": this.performance(randint(20, 30)), "PX11560": this.performance(randint(20, 30)),
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1 "PX12565": -1
...@@ -1082,7 +1090,7 @@ export class PxEnv { ...@@ -1082,7 +1090,7 @@ export class PxEnv {
"PX12414": this.startPoint.y, "PX12414": this.startPoint.y,
"PX11984":"TypeError: Cannot read properties of null (reading '0')\n at zn (https://client.px-cloud.net/PXVb73hTEg/main.min.js:1:20381)\n at HTMLBodyElement.Sv (https://client.px-cloud.net/PXVb73hTEg/main.min.js:1:143389)", "PX11984":"TypeError: Cannot read properties of null (reading '0')\n at zn (https://client.px-cloud.net/PXVb73hTEg/main.min.js:1:20381)\n at HTMLBodyElement.Sv (https://client.px-cloud.net/PXVb73hTEg/main.min.js:1:143389)",
"PX12303": "mousemove", "PX12303": "mousemove",
"PX11699": 15752, "PX11699": randint(12752, 18752),
"PX11987": "true", "PX11987": "true",
"PX12461": true, "PX12461": true,
// "PX11652": "#px-captcha-wrapper>DIV:nth-child(1)>DIV:nth-child(2)", // "PX11652": "#px-captcha-wrapper>DIV:nth-child(1)>DIV:nth-child(2)",
...@@ -1090,11 +1098,11 @@ export class PxEnv { ...@@ -1090,11 +1098,11 @@ export class PxEnv {
"PX11902": 3, "PX11902": 3,
"PX11560": this.performanceNow, "PX11560": this.performanceNow,
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, "PX12565": -1,
"PX11719": true, // "PX12307": "PX11745", "PX11719": false, // "PX12307": "PX11745",
// "PX11668": "pxhc", // "PX11668": "pxhc",
// "PX12348": false // "PX12348": false
} }
...@@ -1116,7 +1124,7 @@ export class PxEnv { ...@@ -1116,7 +1124,7 @@ export class PxEnv {
"PX11371": createPx2(this.ua, this.sid), "PX11371": createPx2(this.ua, this.sid),
"PX11902": 4, "PX11902": 4,
"PX11560": this.performance(1), "PX11560": this.performance(1),
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, // "PX11379": false "PX12565": -1, // "PX11379": false
...@@ -1358,7 +1366,7 @@ export class PxEnv { ...@@ -1358,7 +1366,7 @@ export class PxEnv {
"PX12501": md5(this.vid), "PX12501": md5(this.vid),
"PX11902": 2, "PX11902": 2,
"PX11560": this.performanceNow, // perf "PX11560": this.performanceNow, // perf
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, // "PX11379": false, "PX12565": -1, // "PX11379": false,
...@@ -1510,7 +1518,7 @@ export class PxEnv { ...@@ -1510,7 +1518,7 @@ export class PxEnv {
"PX12547": false, "PX12547": false,
"PX11902": 4, "PX11902": 4,
"PX11560": this.performance(0), // performance.now() "PX11560": this.performance(0), // performance.now()
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, "PX12565": -1,
...@@ -1543,7 +1551,7 @@ export class PxEnv { ...@@ -1543,7 +1551,7 @@ export class PxEnv {
"PX12489": "v1.9.8", "PX12489": "v1.9.8",
"PX11902": 7, "PX11902": 7,
"PX11560": this.performance(0), // performance.now(), "PX11560": this.performance(0), // performance.now(),
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, // "PX11379": false, "PX12565": -1, // "PX11379": false,
...@@ -1591,7 +1599,7 @@ export class PxEnv { ...@@ -1591,7 +1599,7 @@ export class PxEnv {
"PX11902": 8, "PX11902": 8,
"PX11560": this.performance(0), "PX11560": this.performance(0),
"PX11719": true, "PX11719": true,
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, // "PX11379": false, "PX12565": -1, // "PX11379": false,
...@@ -1775,7 +1783,7 @@ export class PxEnv { ...@@ -1775,7 +1783,7 @@ export class PxEnv {
"PX11771": "https://collector-PXVb73hTEg.px-client.net/b/g", "PX11771": "https://collector-PXVb73hTEg.px-client.net/b/g",
"PX11902": 2, "PX11902": 2,
"PX11560": this.performanceNow, "PX11560": this.performanceNow,
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": "a1a917ee-95ad-11ee-990f-64248e52548b", "PX11496": "a1a917ee-95ad-11ee-990f-64248e52548b",
"PX12564": null, "PX12564": null,
"PX12565": -1 "PX12565": -1
...@@ -1883,7 +1891,7 @@ export class PxEnv { ...@@ -1883,7 +1891,7 @@ export class PxEnv {
"PX11454": "visible", "PX11454": "visible",
"PX11902": 4, "PX11902": 4,
"PX11560": this.performanceNow, "PX11560": this.performanceNow,
"PX12280": this.px11280, "PX12280": Date.now(),
"PX11496": this.uuid, "PX11496": this.uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, "PX12565": -1,
......
...@@ -10,11 +10,21 @@ headers = { ...@@ -10,11 +10,21 @@ headers = {
"authority": "www.flyfrontier.com", "accept": "application/json, text/plain, */*", "accept-language": "en-US"} "authority": "www.flyfrontier.com", "accept": "application/json, text/plain, */*", "accept-language": "en-US"}
url = "https://booking.flyfrontier.com/Flight/InternalSelect?o1=BNA&d1=ATL&dd1=Apr%2027,%202024&ADT=1&mon=true&promo=" url = "https://booking.flyfrontier.com/Flight/InternalSelect?o1=BNA&d1=ATL&dd1=Apr%2027,%202024&ADT=1&mon=true&promo="
cks = "pxcts=3ee1648a-2fa6-11ef-9bc1-7ce24800bb12; _pxvid=3ee15079-2fa6-11ef-9bc0-0add1130ea42; _px2=eyJ1IjoiM2U2MTg1ZjAtMmZhNi0xMWVmLWFlMmItMzM5NzViZmUyNTQ2IiwidiI6IjNlZTE1MDc5LTJmYTYtMTFlZi05YmMwLTBhZGQxMTMwZWE0MiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6IjhiZTJmYzc0YmRlYzNlN2RlYTIwMjc2NTRlOGEwMWI1OGVkYWFkMWU5YTFhNjMzMzNmMTNkMjU2NTViN2JmZmMifQ==" cks = '_px2=eyJ1IjoiNjgxZWZiMjAtMzE0NS0xMWVmLTljZTMtM2RkYWExNjUxMjdkIiwidiI6IjY4N2ExYjUyLTMxNDUtMTFlZi1hMDg0LTRhZTJiODZkNzlmMiIsInQiOjE3MTkxMzYyNzc3OTYsImgiOiJhZmQzOWQ2ZDhlZGFkYzkyMDk3M2VmOTI3OTMxM2E4OWZhNDY4MjZmZDc3YzFmY2VhNDJlYTZlMGUxMzYwYmJiIn0=; pxcts=687a2ba4-3145-11ef-a084-acc2414a941d; _pxvid=687a1b52-3145-11ef-a084-4ae2b86d79f2'
kccs = {
'ASP.NET_SessionId': 'v3imqkdyljku5ktusextfbuc',
'__RequestVerificationToken': 'TJeXz3uOWbbEVS6QfoI7oCycnodOj5yimDS32fQzhMDMsW2uvCV94tqzuCnt23HTuyhOei5BxWlYeBvzHwfKg1rU0IxUAMAuy-XJMLBHZ3hvxSR4uLFQ-BrGm7936V1kwwMQ8w2',
'_px2': 'eyJ1IjoiNjgxZWZiMjAtMzE0NS0xMWVmLTljZTMtM2RkYWExNjUxMjdkIiwidiI6IjY4N2ExYjUyLTMxNDUtMTFlZi1hMDg0LTRhZTJiODZkNzlmMiIsInQiOjE3MTkxMzYyNzc3OTYsImgiOiJhZmQzOWQ2ZDhlZGFkYzkyMDk3M2VmOTI3OTMxM2E4OWZhNDY4MjZmZDc3YzFmY2VhNDJlYTZlMGUxMzYwYmJiIn0=',
'_pxhd': '5c5c296b60a2dd5ba207a330ed39b568a2023be7d7eef9d22eb1b896928890e1:687a1b52-3145-11ef-a084-4ae2b86d79f2',
'_pxvid': '687a1b52-3145-11ef-a084-4ae2b86d79f2',
'dotrez': '!1ehoAlgbw+nuqY5eETst66jrHkkuv1u2tg2HmfrAh2sxsylFHzozSYCNgr0OuHsw4JSoNinDxdZVRA==',
'dtCookie': 'v_4_srv_1_sn_9C28C11FEFD474DB1947279D5FC76CC5_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_1_rcs-3Acss_0',
'pxcts': '687a2ba4-3145-11ef-a084-acc2414a941d'
}
cks = '; '.join([f'{k}={v}' for k, v in kccs.items()])
# prox = 'http://user-uni001-region-us-sessid-1114-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600' # prox = 'http://user-uni001-region-us-sessid-1114-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}' # prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
...@@ -26,30 +36,30 @@ prox = 'http://uni00002_custom_zone_US2_sid_4428759_time_5:FdkiGHty9a@us.ipwo.ne ...@@ -26,30 +36,30 @@ prox = 'http://uni00002_custom_zone_US2_sid_4428759_time_5:FdkiGHty9a@us.ipwo.ne
for i in range(20): for i in range(20):
# prox = 'http://127.0.0.1:7890' prox = 'http://127.0.0.1:7890'
# url = "http://httpbin.org/ip" # url = "http://httpbin.org/ip"
# response = requests.post('http://52.52.23.116/tls/forward', # response = requests.post('http://52.52.23.116/tls/forward',
# response = requests.post('http://lcc.unififi.com/tls/forward', # response = requests.post('http://lcc.unififi.com/tls/forward',
# response = requests.post('http://127.0.0.1:58000/tls/forward', response = session.post('http://127.0.0.1:58000/tls/forward',
response = requests.post('http://192.168.50.197:58000/tls/forward', # response = requests.post('http://192.168.50.197:58000/tls/forward',
json={ json={
'url': 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=ATL&d1=AUS&dd1=Jun%2021,%202024&ADT=1&mon=true&promo=', 'url': 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2024-07-30&ADT=1&umnr=false&mon=true',
'headers': { '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-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",
"pragma": "no-cache", "pragma": "no-cache",
"priority": "u=0, i", "sec-fetch-user": "?1",
"sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\"", "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",
"sec-ch-ua-platform": "\"MacIntel\"",
"cache-control": "no-cache",
"sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Google Chrome\";v=\"126\"",
"sec-ch-ua-mobile": "?0", "sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate", "sec-fetch-mode": "navigate",
"sec-fetch-site": "same-site", "priority": "u=0, i",
"sec-fetch-user": "?1",
"upgrade-insecure-requests": "1", "upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" , "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
"sec-fetch-dest": "document",
"sec-fetch-site": "same-site",
"cookie": cks, "cookie": cks,
}, },
...@@ -68,5 +78,6 @@ for i in range(20): ...@@ -68,5 +78,6 @@ for i in range(20):
print(response.json()['status_code']) print(response.json()['status_code'])
print('FlightData' in response.json()['text']) print('FlightData' in response.json()['text'])
print(' has been denied', 'has been denied' in response.json()['text']) print(' has been denied', 'has been denied' in response.json()['text'])
with open('1.html', 'w') as f:
f.write(response.json()['text'])
input('') input('')
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