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'
import {PxEnv} from './px.js'
// import {getPayload} from "./all.js";
import * as fs from "fs";
const plt = process.platform;
process.env.TZ = 'Asia/Shanghai';
......@@ -26,8 +27,8 @@ log4js.configure({
});
class PxBypass {
tag = "v8.7.8"
ft = "318"
tag = "v8.9.6"
ft = "330"
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 (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 {
let result = void 0;
if (inRes['ob']) {
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) {
let tmp = ck.split('|');
if (tmp[0] === 'o11o1ooo') {
this.log.fatal('result', tmp[1] === '0')
result = tmp[1] === '0'
}
if (tmp[0] === 'o111oo11') {
// if (tmp[0] === 'o11o1ooo') {
// this.log.fatal('result', tmp[1] === '0')
// result = tmp[1] === '0'
// }
if (tmp[0] === 'o11o11o1') {
this.ts = tmp[1]
}
if (tmp[0] === '11oo1o') {
if (tmp[0] === '1oo11o') {
this.ci = tmp[2]
this.token = tmp[4].split('_')[0]
this.token2 = tmp[4].split('_')[1]
}
if (tmp[0] === 'o1oo11') {
if (tmp[0] === 'ooo111') {
this.hash = tmp[2]
this.hash2 = tmp[3]
this.hashv = tmp[4]
}
if (tmp[0] === 'o111oo1o') {
if (tmp[0] === 'o11o11oo') {
this.num1 = tmp[1]
}
......@@ -307,11 +308,11 @@ class PxBypass {
this.sid = tmp[1]
}
if (tmp[0] === '11o111') {
if (tmp[0] === '1ooo11') {
this.cs = tmp[1]
}
if (tmp[0] === 'o11oo11o') {
if (tmp[0] === 'o11o1ooo') {
this.cts = tmp[1]
this.cookies['pxcts'] = this.cts
}
......@@ -323,7 +324,20 @@ class PxBypass {
if (tmp.includes('_px2')) {
this.cookies['_px2'] = tmp[3]
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 {
// 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)
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.startTs, this.startTs2, this.performanceNow, this.px12280,
this.ci, this.token, this.token2, this.hash, this.hash2, this.hashv)
......@@ -467,7 +481,7 @@ class PxBypass {
this.pxenv.performanceNow = this.performanceNow
this.pxenv.performanceNow2 = 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.startTs, this.startTs2, this.performanceNow, this.px12280,
this.ci, this.token, this.token2, this.hash, this.hash2, this.hashv)
......
......@@ -8,8 +8,8 @@ import * as fs from "fs";
const plt = process.platform;
let ENVS = JSON.parse(fs.readFileSync('./env.json', 'utf-8').toString())
let keys = Object.keys(ENVS);
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://lcc-spider:JIUsfhiad&^@54.183.159.9:27017/?authSource=admin&directConnection=true";
const uri = 'mongodb://root:123456@192.168.50.110:27017/'
const client = new MongoClient(uri);
log4js.levels.INFO.colour = 'white';
......@@ -37,17 +37,20 @@ async function sleep(ms) {
class PxBypass {
tag = "v8.9.6"
ft = "330"
get ua(){
get ua() {
return this._ua;
}
set ua(v){
set ua(v) {
this._ua = 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]}\"`
}
// console.log(regexs)
}
constructor(is_local = false) {
this._ua = '';
this.is_local = is_local;
......@@ -119,12 +122,12 @@ class PxBypass {
this.tlsUrl = 'http://52.52.23.116/tls/forward'
if (this.is_local) {
this.tlsUrl = 'http://127.0.0.1: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://192.168.50.197:58000/tls/forward'
// this.tlsUrl = 'http://52.52.23.116/tls/forward'
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-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 {
this.env2.px11547.PX11849 = this.env2.px11590.PX11849
delete this.env2.px11547.PX12427
delete this.env2.px11547.PX12130
delete this.env2.px11547.PX11993
this.env.navigatorparams.platform = this.env2.px11590.PX12458
this.env.navigatorparams.useragent = this.ua;
this.log.info('ua', this.ua)
......@@ -296,7 +300,7 @@ class PxBypass {
try {
for (let i = 0; i < data.length; i++) {
let n = data[i];
// n.d['PX11645'] = this.url;
n.d['PX11645'] = this.url;
n.d["PX11379"] = false;
}
if (plt === 'darwin') console.log(JSON.stringify(data))
......@@ -540,7 +544,7 @@ class PxBypass {
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)
}
......@@ -597,7 +601,7 @@ class PxBypass {
Object.assign(d.d, this.env2.px11547)
let data = [
// this.pxenv.get_px11891(),
this.pxenv.get_px12123(),
// this.pxenv.get_px12123(),
d]
let res = await this.do_collector(data)
}
......@@ -619,22 +623,22 @@ class PxBypass {
// "cookie": cks
// }
let headers = {
"accept-language": "en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
"pragma": "no-cache",
"sec-fetch-user": "?1",
"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-fetch-mode": "navigate",
"priority": "u=0, i",
"upgrade-insecure-requests": "1",
"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": "pxcts=3ee1648a-2fa6-11ef-9bc1-7ce24800bb12; _pxvid=3ee15079-2fa6-11ef-9bc0-0add1130ea42; _px2=eyJ1IjoiM2U2MTg1ZjAtMmZhNi0xMWVmLWFlMmItMzM5NzViZmUyNTQ2IiwidiI6IjNlZTE1MDc5LTJmYTYtMTFlZi05YmMwLTBhZGQxMTMwZWE0MiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6IjhiZTJmYzc0YmRlYzNlN2RlYTIwMjc2NTRlOGEwMWI1OGVkYWFkMWU5YTFhNjMzMzNmMTNkMjU2NTViN2JmZmMifQ==",
}
"accept-language": "en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
"pragma": "no-cache",
"sec-fetch-user": "?1",
"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-fetch-mode": "navigate",
"priority": "u=0, i",
"upgrade-insecure-requests": "1",
"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": "pxcts=3ee1648a-2fa6-11ef-9bc1-7ce24800bb12; _pxvid=3ee15079-2fa6-11ef-9bc0-0add1130ea42; _px2=eyJ1IjoiM2U2MTg1ZjAtMmZhNi0xMWVmLWFlMmItMzM5NzViZmUyNTQ2IiwidiI6IjNlZTE1MDc5LTJmYTYtMTFlZi05YmMwLTBhZGQxMTMwZWE0MiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6IjhiZTJmYzc0YmRlYzNlN2RlYTIwMjc2NTRlOGEwMWI1OGVkYWFkMWU5YTFhNjMzMzNmMTNkMjU2NTViN2JmZmMifQ==",
}
// if (this.secua){
// Object.assign(headers, {
// "sec-ch-ua": this.secua,
......@@ -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({
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,
......@@ -694,19 +698,19 @@ class PxBypass {
let res = await axios.post(this.tlsUrl, JSON.stringify({
url: 'https://booking.flyfrontier.com/Flight/InternalSelect?s=true&o1=DEN&d1=LAS&dd1=2024-07-31&dd2=0001-01-01&mon=true&adt=1',
headers: {
"Host": "booking.flyfrontier.com",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
"accept-language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
"sec-gpc": "1",
"upgrade-insecure-requests": "1",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "same-origin",
"sec-fetch-user": "?1",
"priority": "u=1",
"te": "trailers"
},
"Host": "booking.flyfrontier.com",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
"accept-language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
"sec-gpc": "1",
"upgrade-insecure-requests": "1",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "same-origin",
"sec-fetch-user": "?1",
"priority": "u=1",
"te": "trailers"
},
allow_redirects: true,
debug: true,
method: "GET",
......@@ -721,338 +725,338 @@ class PxBypass {
this.performanceNow += randint(1000, 2000)
let data = [
{
"t": "PX12419",
"d": {
"PX12040": [
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1279,460,11577"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 2,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1209,
"PX12414": 421,
"PX11699": 11607
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1171,406,11648"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 350.875,
"PX12208": 75.5,
"PX11652": 3,
"PX11824": 1140,
"PX11631": 94,
"PX12165": "div",
"PX12108": 941,
"PX12414": 338,
"PX11699": 11705
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "941,338,11705"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 300,
"PX12208": 75.5,
"PX11652": 4,
"PX11824": 1140,
"PX11631": 49,
"PX12165": "div",
"PX12108": 786,
"PX12414": 297,
"PX11699": 11749
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 171,
"PX12208": 75.5,
"PX11652": 5,
"PX11824": 1140,
"PX11631": 1642,
"PX12165": "div",
"PX12108": 662,
"PX12414": 259,
"PX11699": 11757
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "662,259,11757"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 167,
"PX12208": 567.40625,
"PX11652": 6,
"PX11824": 156,
"PX11631": 125,
"PX12165": "a",
"PX12108": 397,
"PX12414": 189,
"PX11699": 11821
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "397,189,11821|359,181,118"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 174.5,
"PX12208": 255.0625,
"PX11652": 7,
"PX11824": 156,
"PX11631": 110,
"PX12165": "a",
"PX12108": 840,
"PX12414": 306,
"PX11699": 12066
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "840,306,12067"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 300,
"PX12208": 75.5,
"PX11652": 7,
"PX11824": 1140,
"PX11631": 49,
"PX12165": "div",
"PX12108": 1097,
"PX12414": 379,
"PX11699": 12117
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1097,379,12118"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 350.875,
"PX12208": 75.5,
"PX11652": 7,
"PX11824": 1140,
"PX11631": 94,
"PX12165": "div",
"PX12108": 1279,
"PX12414": 458,
"PX11699": 12174
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1279,458,12174"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 7,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1301,
"PX12414": 472,
"PX11699": 12178
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1253,689,12895"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 7,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1253,
"PX12414": 689,
"PX11699": 12899
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "961,571,12953"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 568.875,
"PX12208": 834.84375,
"PX11652": 8,
"PX11824": 190,
"PX11631": 35,
"PX12165": "td",
"PX12108": 689,
"PX12414": 483,
"PX11699": 13014
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "689,483,13014"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 477.875,
"PX12208": 646.015625,
"PX11652": 9,
"PX11824": 188,
"PX11631": 24,
"PX12165": "div",
"PX12108": 622,
"PX12414": 464,
"PX11699": 13078
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "622,464,13078|632,461,116"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 171,
"PX12208": 75.5,
"PX11652": 9,
"PX11824": 1140,
"PX11631": 1642,
"PX12165": "div",
"PX12108": 836,
"PX12414": 506,
"PX11699": 13252
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "836,506,13252"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 501.875,
"PX12208": 835.84375,
"PX11652": 10,
"PX11824": 188,
"PX11631": 24,
"PX12165": "div",
"PX12108": 1136,
"PX12414": 562,
"PX11699": 13304
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1136,562,13304"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 533.875,
"PX12208": 1024.671875,
"PX11652": 11,
"PX11824": 190,
"PX11631": 35,
"PX12165": "td",
"PX12108": 1218,
"PX12414": 575,
"PX11699": 13307
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 11,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1417,
"PX12414": 618,
"PX11699": 13367
{
"t": "PX12419",
"d": {
"PX12040": [
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1279,460,11577"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 2,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1209,
"PX12414": 421,
"PX11699": 11607
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1171,406,11648"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 350.875,
"PX12208": 75.5,
"PX11652": 3,
"PX11824": 1140,
"PX11631": 94,
"PX12165": "div",
"PX12108": 941,
"PX12414": 338,
"PX11699": 11705
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "941,338,11705"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 300,
"PX12208": 75.5,
"PX11652": 4,
"PX11824": 1140,
"PX11631": 49,
"PX12165": "div",
"PX12108": 786,
"PX12414": 297,
"PX11699": 11749
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 171,
"PX12208": 75.5,
"PX11652": 5,
"PX11824": 1140,
"PX11631": 1642,
"PX12165": "div",
"PX12108": 662,
"PX12414": 259,
"PX11699": 11757
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "662,259,11757"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 167,
"PX12208": 567.40625,
"PX11652": 6,
"PX11824": 156,
"PX11631": 125,
"PX12165": "a",
"PX12108": 397,
"PX12414": 189,
"PX11699": 11821
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "397,189,11821|359,181,118"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 174.5,
"PX12208": 255.0625,
"PX11652": 7,
"PX11824": 156,
"PX11631": 110,
"PX12165": "a",
"PX12108": 840,
"PX12414": 306,
"PX11699": 12066
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "840,306,12067"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 300,
"PX12208": 75.5,
"PX11652": 7,
"PX11824": 1140,
"PX11631": 49,
"PX12165": "div",
"PX12108": 1097,
"PX12414": 379,
"PX11699": 12117
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1097,379,12118"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 350.875,
"PX12208": 75.5,
"PX11652": 7,
"PX11824": 1140,
"PX11631": 94,
"PX12165": "div",
"PX12108": 1279,
"PX12414": 458,
"PX11699": 12174
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1279,458,12174"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 7,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1301,
"PX12414": 472,
"PX11699": 12178
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1253,689,12895"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 7,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1253,
"PX12414": 689,
"PX11699": 12899
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "961,571,12953"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 568.875,
"PX12208": 834.84375,
"PX11652": 8,
"PX11824": 190,
"PX11631": 35,
"PX12165": "td",
"PX12108": 689,
"PX12414": 483,
"PX11699": 13014
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "689,483,13014"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 477.875,
"PX12208": 646.015625,
"PX11652": 9,
"PX11824": 188,
"PX11631": 24,
"PX12165": "div",
"PX12108": 622,
"PX12414": 464,
"PX11699": 13078
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "622,464,13078|632,461,116"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 171,
"PX12208": 75.5,
"PX11652": 9,
"PX11824": 1140,
"PX11631": 1642,
"PX12165": "div",
"PX12108": 836,
"PX12414": 506,
"PX11699": 13252
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "836,506,13252"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 501.875,
"PX12208": 835.84375,
"PX11652": 10,
"PX11824": 188,
"PX11631": 24,
"PX12165": "div",
"PX12108": 1136,
"PX12414": 562,
"PX11699": 13304
},
{
"PX12343": "mousemove",
"PX12270": "true",
"PX12301": "1136,562,13304"
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 533.875,
"PX12208": 1024.671875,
"PX11652": 11,
"PX11824": 190,
"PX11631": 35,
"PX12165": "td",
"PX12108": 1218,
"PX12414": 575,
"PX11699": 13307
},
{
"PX12343": "mouseout",
"PX12270": "true",
"PX11427": 125,
"PX12208": 0,
"PX11652": 11,
"PX11824": 1291,
"PX11631": 2005,
"PX12165": "form",
"PX12108": 1417,
"PX12414": 618,
"PX11699": 13367
}
],
"PX12170": "60_sec_rest",
"PX11934": this.url,
"PX12160": {
"#flight-select-form": 1,
"#ibe-depart-section>DIV1>DIV6": 2,
"#ibe-depart-section>DIV1>DIV3": 3,
"#ibe-depart-section>DIV1": 4,
"DIV2>A4": 5,
"DIV1>DIV2>DIV2>A2": 6,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>TBODY>TR2>TD4": 7,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>THEAD>TR>TH3>DIV1>DIV1": 8,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>THEAD>TR>TH4>DIV1>DIV2": 9,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>TBODY>TR1>TD5": 10
},
"PX11875": this.uuid,
"PX11844": 0,
"PX12465": true,
"PX11393": "0,0,11577|-30,-21,11592|-40,-18,11607|-38,-15,11648|-230,-68,11705|-155,-41,11749|-124,-38,11757|-265,-70,11821|-38,-7,11881|-2,-1,11883",
"PX12621": "",
"PX12470": this.px12280,
"PX11698": [
"1279,460,21232",
"1209,421,21262",
"941,338,21357",
"662,259,21411",
"359,182,21537",
"359,181,21595",
"379,180,21651",
"840,306,21719",
"1160,401,21775",
"1253,689,22550",
"961,571,22608",
"622,464,22728",
"620,463,22787",
"650,462,22853",
"1136,562,22949"
],
"PX11679": this.env2.px11590.PX12387,
"PX11902": 10,
"PX11560": 83465,
"PX12280": this.performanceNow,
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1,
"PX11379": false
}
],
"PX12170": "60_sec_rest",
"PX11934": this.url,
"PX12160": {
"#flight-select-form": 1,
"#ibe-depart-section>DIV1>DIV6": 2,
"#ibe-depart-section>DIV1>DIV3": 3,
"#ibe-depart-section>DIV1": 4,
"DIV2>A4": 5,
"DIV1>DIV2>DIV2>A2": 6,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>TBODY>TR2>TD4": 7,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>THEAD>TR>TH3>DIV1>DIV1": 8,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>THEAD>TR>TH4>DIV1>DIV2": 9,
"#ibe-depart-section>DIV1>DIV7>DIV1>DIV1>TABLE>TBODY>TR1>TD5": 10
},
"PX11875": this.uuid,
"PX11844": 0,
"PX12465": true,
"PX11393": "0,0,11577|-30,-21,11592|-40,-18,11607|-38,-15,11648|-230,-68,11705|-155,-41,11749|-124,-38,11757|-265,-70,11821|-38,-7,11881|-2,-1,11883",
"PX12621": "",
"PX12470": this.px12280,
"PX11698": [
"1279,460,21232",
"1209,421,21262",
"941,338,21357",
"662,259,21411",
"359,182,21537",
"359,181,21595",
"379,180,21651",
"840,306,21719",
"1160,401,21775",
"1253,689,22550",
"961,571,22608",
"622,464,22728",
"620,463,22787",
"650,462,22853",
"1136,562,22949"
],
"PX11679": this.env2.px11590.PX12387,
"PX11902": 10,
"PX11560": 83465,
"PX12280": this.performanceNow,
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1,
"PX11379": false
}
}
]
let res = await this.do_collector(data)
}
]
let res = await this.do_collector(data)
}
}
......@@ -1086,18 +1090,22 @@ async function run() {
await px.px11590()
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()
if (!px.flag) await sleep(3500)
// await px.do_func(px.pxenv.get_px12123())
// await sleep(2000)
if (!px.flag)await px.px11547()
if (!px.flag)await sleep(5000)
if (!px.flag) await sleep(3500)
if (!px.flag) await px.do_func(px.pxenv.get_px12123())
if (!px.flag) await sleep(2000)
if (!px.flag) await px.px11547()
if (!px.flag) await sleep(5000)
//
//
//
// await sleep(1500)
if (!px.flag)await px.do_func(px.pxenv.get_px11891())
px.log.info("sleep", px.awaitTime)
await sleep(px.awaitTime)
await px.test()
......
......@@ -616,7 +616,7 @@ export class PxEnv {
this.startTs2 = startTs2
this.performanceNow = performanceNow
this.performanceNow2 = randint(4400, 4600);
this.px11280 = px11280
this._px12280 = px11280
let totalJSHeapSize = randint(35903195, 39903195)
this.memory_data = {
totalJSHeapSize: totalJSHeapSize,
......@@ -629,7 +629,12 @@ export class PxEnv {
}
get px12280(){
return Date.now();
}
set px12280(v){
this._px12280 = v;
}
bao(data) {
for (let i = 0; i < data.length; i++) {
let g = data[i];
......@@ -659,7 +664,7 @@ export class PxEnv {
createMouse() {
this.startPoint = {
"x": randint(130, 150), "y": randint(30, 41),
"x": randint(219, 519), "y": randint(506, 906),
}
this.endPoint = {
"x": this.startPoint.x + randint(10, 20), "y": this.startPoint.y + randint(10, 20),
......@@ -752,7 +757,7 @@ export class PxEnv {
"PX11332": this.startTs + randint(1000, 2500),
"PX12248": 3600,
"PX11385": this.startTs,
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid, //uuid
......@@ -1056,6 +1061,9 @@ export class PxEnv {
}
let noPX = getNoPX(data['PX11701'], data['PX11431'])
data[noPX[0]] = noPX[1]
let px12280 = this.px12280
data.PX12280 = px12280
return {
"t": "PX11590", "d": data
}
......@@ -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 \"]",
"PX11902": 3,
"PX11560": this.performance(randint(20, 30)),
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1
......@@ -1082,7 +1090,7 @@ export class PxEnv {
"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)",
"PX12303": "mousemove",
"PX11699": 15752,
"PX11699": randint(12752, 18752),
"PX11987": "true",
"PX12461": true,
// "PX11652": "#px-captcha-wrapper>DIV:nth-child(1)>DIV:nth-child(2)",
......@@ -1090,11 +1098,11 @@ export class PxEnv {
"PX11902": 3,
"PX11560": this.performanceNow,
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1,
"PX11719": true, // "PX12307": "PX11745",
"PX11719": false, // "PX12307": "PX11745",
// "PX11668": "pxhc",
// "PX12348": false
}
......@@ -1116,7 +1124,7 @@ export class PxEnv {
"PX11371": createPx2(this.ua, this.sid),
"PX11902": 4,
"PX11560": this.performance(1),
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1, // "PX11379": false
......@@ -1358,7 +1366,7 @@ export class PxEnv {
"PX12501": md5(this.vid),
"PX11902": 2,
"PX11560": this.performanceNow, // perf
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1, // "PX11379": false,
......@@ -1510,7 +1518,7 @@ export class PxEnv {
"PX12547": false,
"PX11902": 4,
"PX11560": this.performance(0), // performance.now()
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1,
......@@ -1543,7 +1551,7 @@ export class PxEnv {
"PX12489": "v1.9.8",
"PX11902": 7,
"PX11560": this.performance(0), // performance.now(),
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1, // "PX11379": false,
......@@ -1591,7 +1599,7 @@ export class PxEnv {
"PX11902": 8,
"PX11560": this.performance(0),
"PX11719": true,
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1, // "PX11379": false,
......@@ -1775,7 +1783,7 @@ export class PxEnv {
"PX11771": "https://collector-PXVb73hTEg.px-client.net/b/g",
"PX11902": 2,
"PX11560": this.performanceNow,
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": "a1a917ee-95ad-11ee-990f-64248e52548b",
"PX12564": null,
"PX12565": -1
......@@ -1883,7 +1891,7 @@ export class PxEnv {
"PX11454": "visible",
"PX11902": 4,
"PX11560": this.performanceNow,
"PX12280": this.px11280,
"PX12280": Date.now(),
"PX11496": this.uuid,
"PX12564": null,
"PX12565": -1,
......
......@@ -10,11 +10,21 @@ headers = {
"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="
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 = 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
for i in range(20):
# prox = 'http://127.0.0.1:7890'
prox = 'http://127.0.0.1:7890'
# url = "http://httpbin.org/ip"
# response = requests.post('http://52.52.23.116/tls/forward',
# response = requests.post('http://lcc.unififi.com/tls/forward',
# response = requests.post('http://127.0.0.1:58000/tls/forward',
response = requests.post('http://192.168.50.197: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',
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': {
"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",
"cache-control": "no-cache",
"accept-language": "en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
"pragma": "no-cache",
"priority": "u=0, i",
"sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "same-site",
"sec-fetch-user": "?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" ,
"sec-fetch-user": "?1",
"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-fetch-mode": "navigate",
"priority": "u=0, i",
"upgrade-insecure-requests": "1",
"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,
},
......@@ -68,5 +78,6 @@ for i in range(20):
print(response.json()['status_code'])
print('FlightData' 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('')
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