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)
......
This diff is collapsed.
......@@ -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