Commit 1285120b authored by wang's avatar wang

11

parent 8e091c74
......@@ -4767,6 +4767,7 @@ window["_pxAppId"] = "PXVb73hTEg";
var t;
var e;
$f() ? (f(t = Hf() || xe("uuid") || fr()) === "string" && 36 !== t["length"] && (t = t["trim"]()), Hf() || (e = t, v[zu] = e)) : t = fr();
console.log('uuid', t)
return t;
}
function as() {
......@@ -5106,7 +5107,9 @@ window["_pxAppId"] = "PXVb73hTEg";
continue;
}
}
Y["d"]["PX12280"] = new Date()["getTime"]();
let t1 = new Date()["getTime"]();
console.log('set PX12280', t1)
Y["d"]["PX12280"] = t1;
Y["d"]["PX11496"] = lf;
Y["d"]["PX12564"] = Ts;
Y["d"]["PX12565"] = Is;
......@@ -5377,7 +5380,7 @@ window["_pxAppId"] = "PXVb73hTEg";
"pc": g
};
var y = vs(t, B);
console.log([t,B,y])
console.log([JSON.stringify(t),B,y])
var j = [Es + y, Ys + gl[Wn], Rs + gl[Tn], Os + lf, Cs + gl[In], _s + rl++, Gs + Ks];
var b = zf();
b && j["push"](Ns + b);
......
......@@ -51,6 +51,7 @@ class PxBypass():
tag = "v8.7.2"
ft = "317"
def __init__(self, target_url):
self.target_url = target_url
self.log = logger.bind(module_name='px')
......@@ -61,7 +62,8 @@ class PxBypass():
self.rsc = 1
self._step_1()
self.inc()
self._step_1_1()
self.inc()
self._step_2()
self.inc()
......@@ -232,6 +234,8 @@ class PxBypass():
t1 = int(time.time() * 1000)
self.init_time = t1
t2 = t1 + random.randint(3, 12)
self.startTs = t1
self.startTs2 = t2
if self.uuid == '':
self.uuid = self.__uuid()
data = [
......@@ -270,7 +274,73 @@ class PxBypass():
"tag": self.tag,
"uuid": self.uuid,
"ft": self.ft,
"seq": "0",
"seq": self.seq,
"en": "NTA",
"pc": pc,
}
if self.vid != "":
body.update({
'vid': self.vid
})
print(body)
url = "https://collector-pxvb73hteg.px-cloud.net/assets/js/bundle"
headers = {
"authority": "collector-PXVb73hTEg.px-cloud.net",
"accept": "*/*",
"accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded",
"origin": "https://www.flyfrontier.com",
"pragma": "no-cache",
"referer": "https://www.flyfrontier.com/",
"sec-ch-ua": "\"Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"115\", \"Chromium\";v=\"115\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
}
response = self.session.post(url, headers=headers, data=body)
self.log.info(f'collector1 {response.text}')
resp = response.json()
self.process_ob(resp)
def _step_1_1(self):
t1 = int(time.time() * 1000)
self.init_time = t1
t2 = t1 + random.randint(3, 12)
self.startTs = t1
self.startTs2 = t2
if self.uuid == '':
self.uuid = self.__uuid()
data = [{
"t": "PX11940",
"d": {
"PX11379": False,
"PX12307": "PX11745",
"PX11668": "pxhc",
"PX12348": False,
"PX11645": "https://booking.flyfrontier.com/Flight/Select"
}
}]
data_str = json.dumps(data, separators=(',', ':'))
self.log.info(f'data_str {data_str}')
payload = ctx.call('encodePayload', data_str, self.uuid, '')
self.log.info(f'payload {payload}')
pc = self.__gen_pc(data_str, f'{self.uuid}:{self.tag}:{self.ft}')
print(pc)
body = {
"payload": payload,
"appId": "PXVb73hTEg",
"tag": self.tag,
"uuid": self.uuid,
"ft": self.ft,
"seq": self.seq,
"en": "NTA",
"pc": pc,
}
......@@ -356,7 +426,7 @@ class PxBypass():
self.log.info(self.m)
# genPayload2(vid, sid, uuid, sts, code1, code2, tag)
data_str = ctxStep2.call('genPayload2', self.vid, self.sid, self.uuid, self.sts, self.num1, self.num2,
self.str1)
self.str1, self.startTs, self.startTs2)
self.log.info(f'data_str2 {data_str}')
......@@ -411,7 +481,7 @@ class PxBypass():
self.ci, self.init_time)
self.log.info(f'data_str2 {data_str}')
data_str = json.dumps(data_str)
data_str = json.dumps(data_str, separators=(',', ':'))
self.log.info(f'captchaBody {data_str}')
......@@ -424,7 +494,7 @@ class PxBypass():
"tag": self.tag,
"uuid": self.uuid,
"ft": self.ft,
"seq": "4",
"seq": self.seq,
"en": "NTA",
"cs": self.cs,
"pc": pc,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -36,6 +36,7 @@ class PxBypass():
str1: str = ''
session = tls_client.Session(client_identifier='chrome_117')
# print(session.get('https://tls.peet.ws/api/all').json())
# session = requests.Session()
session.proxies = {
'http': 'http://127.0.0.1:7890',
......@@ -54,6 +55,7 @@ class PxBypass():
prox = 'http://user-uni001-region-us-sessid-1111-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
prox = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000'
prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
# prox = 'http://127.0.0.1:7890'
session.proxies = {
'http': prox,
......@@ -77,18 +79,19 @@ class PxBypass():
self.seq = 0
self.rsc = 1
self._step_1()
time.sleep(2)
self.inc()
self.seq += 1
self._step_11()
self.inc()
time.sleep(1.5)
self._step_2(True)
time.sleep(2)
# time.sleep(2)
self._step_2(False)
time.sleep(2)
self.inc()
# if self.session.cookies.get_dict().get('_px2', None) == None:
if self.session.cookies.get_dict().get('_px2', None) == None:
self._step_3()
# time.sleep(3)
self.inc()
......
......@@ -4905,6 +4905,7 @@ function createPX12508() {
function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
// let vid = m['I000I0']
// let sid = m['I0I0II']
startTs2 += randomInt(21000,26000)
console.log(vid, sid)
let data = {
// "PX11431": 1692944411084, // 0III0III
......@@ -4929,7 +4930,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX11902": 1,
"PX11560": performanceNow(parseInt(Math.random() * 500 + 500)), // performance.now()
// "PX11332": 1692944411272,
"PX11332": Date.now(),
"PX11332": startTs2 - randomInt(500,900),
"PX12248": 3600,
"PX11385": startTs,
"PX12280": startTs2,
......@@ -4937,7 +4938,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX12330": "109|66|66|70|80", // ["webstore", 'runtime', 'app', "csi", "loadTimes"];构造函数 长度
"PX11705": 540, //fetch+''
"PX11705": 1182, //fetch+''
"PX11938": true, //caches
"PX11602": true, //caches
"PX12021": "false", // webdriver
......@@ -4946,7 +4947,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX11609": 1, //'webdriver' in navigator?1:0
"PX12291": "",
"PX11881": ["loadTimes", "csi", "app"],// chrome 属性
"PX12036":true,
// "PX12036":true,
// "PX12356":true,
// "PX11522":true,
// "PX12204":true,
......@@ -5021,7 +5022,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX12544": true, // !(!window["WebAssembly"] || !window["WebAssembly"]["instantiate"])
"PX12589": "succeeded", // 执行 wasm 结果?
"PX11524": true, // wasm 计算结果
"PX11847":true,
// "PX11847":true,
"PX11843": screen.width, //screen["width"]
"PX11781": screen.height,// screen["height"]
......@@ -5077,7 +5078,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX11561": "3g",
"PX11877": true,
"PX12100": true,
"PX12477":true,
// "PX12477":true,
// "PX12506": "arm",
"PX12506": ENV.useragentdata.highvalue.architecture,
......@@ -5137,7 +5138,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
// }],
"PX12508": createPX12508(),
"PX12549": true,
"PX11539": "64556c77", //Me(console.log)
"PX11539": "831efc5e", //Me(console.log)
"PX11528": "", // Object["getOwnPropertyDescriptor"](HTMLDocument["prototype"], "cookie")["get"]
"PX12271": "10207b2f",// Va(Object["prototype"]["toString"])
"PX11849": "10207b2f",// return Va(m["toString"]);
......@@ -5149,12 +5150,12 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX12520": true,
"PX12524": "4YC14YCd4YCd4YCV4YCe4YCX4YGS5J256aus7r266YaI5oCR7r27", // Pu = speechSynthesis.getVoices() is(Pu[161].voiceURI)
"PX12527": "3207084bd110f1ac964863e23aa78e04", // '1970/1/1'
"PX11663":"9f762773",
"PX12347":"dae10548",
"PX12389":"",
"PX11883":"a3d12c4",
"PX11959":"82002457",
"PX12483":"a3d12c4",
// "PX11663":"9f762773",
// "PX12347":"dae10548",
// "PX12389":"",
// "PX11883":"a3d12c4",
// "PX11959":"82002457",
// "PX12483":"a3d12c4",
"PX12260": navigator.useragent,
"PX12249": false,
"PX11897": "90e65465", // 固定
......@@ -5180,14 +5181,14 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX11446": true,
"PX12550": 1,
"PX12431": 0,
"PX12053":true,
"PX12029":false,
"PX11503":true,
"PX11570":true,
"PX11406":true,
"PX12449":true,
"PX11636":false,
"PX11650":true,
// "PX12053":true,
// "PX12029":false,
// "PX11503":true,
// "PX11570":true,
// "PX11406":true,
// "PX12449":true,
// "PX11636":false,
// "PX11650":true,
"PX11991": 10,
"PX11837": 48,
"PX11632": 0,
......@@ -5198,7 +5199,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX12218": "65d826e0",
"PX12481": "a9269e00",
"PX11780": "50a5ec55",
"PX12588": "webkit",
// "PX12588": "webkit",
"PX12551": "https:",
"PX12553": "Asia/Shanghai",
"PX12567": "w3c",
......@@ -5209,8 +5210,8 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid,startTs,startTs2, n) {
"PX12566": false,
"PX12571": "74d9c66", // allowedFeatures();
"PX12581": "default",
"PX12582": 3,
"PX12587": false,
// "PX12582": 3,
// "PX12587": false,
"PX11303": false,
"PX11515": false,
"PX12133": false,
......@@ -5355,7 +5356,7 @@ function genPayload3(sid, vid, ts, num1, num2, str1, uuid) {
"d": {
"PX12108": randomInt(539, 789),
"PX12414": randomInt(100, 300),
"PX11984": "TypeError: Cannot read properties of null (reading '0')\n at de (https://client.px-cloud.net/PXVb73hTEg/main.min.js:796:13)\n at HTMLBodyElement.Gc (https://client.px-cloud.net/PXVb73hTEg/main.min.js:3104:83)\n at Ds (https://client.px-cloud.net/PXVb73hTEg/main.min.js:4055:20)\n at Object.2m6o (https://client.px-cloud.net/PXVb73hTEg/main.min.js:3877:22)\n at Sp (https://client.px-cloud.net/PXVb73hTEg/main.min.js:5739:51)",
"PX11984":"TypeError: Cannot read properties of null (reading '0')\n at he (https://client.px-cloud.net/PXVb73hTEg/main.min.js:1141:11)\n at Fo (https://client.px-cloud.net/PXVb73hTEg/main.min.js:3316:20)\n at So (https://client.px-cloud.net/PXVb73hTEg/main.min.js:2940:21)\n at https://client.px-cloud.net/PXVb73hTEg/main.min.js:2937:13",
"PX12303": "mouseover",
"PX11699": randomInt(1112964, 2221945),
"PX11987": "true",
......@@ -5410,9 +5411,12 @@ let m = {
'IIIII0': '_px2'
}
// startTs PX11385
// startTs2 PX11280
console.log(genPayload3(
"2cbfb209-82bd-11ee-9c25-813f1db1e2d5", "2cbfa7fa-82bd-11ee-9c25-073c7d83218c", "1699945950641", 5764, "61110301952151166116", "cl9hrng4ae4624rd52jg", "2aa06a90-82bd-11ee-ae7a-078ea3dc1a7a"
console.log(genPayload2(
"fd9b88d1-8211-11ee-834f-d8feb68d9c0a", "fd9b7b5b-8211-11ee-834f-65216fc16e4c", "1699872427619", 9438, "14318081914921310119", "cl8vtasp6n31q1isbri0", "fc987990-8211-11ee-b923-056700f3bd61"
,1699945950557,1699945951296
, true
)
)
......
......@@ -57,11 +57,9 @@ a2 ="WVkHBwdZFDcYEFoUW1tYFA0RIlkhAgcBMiw5XCUvPVglEikc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wNDVgODloJC19YXQsKUQkKCV9bUQkJCl5eX1kNWlFbXFBeWAxbW1hdWVFdX1BaDVgOUFFbX11QCQwNWlsLCgxZX1hYXVELCg5ZDApYCQ5RXlBdWAxcUV8LWV8MCQo3UFVbWxRYFCYpFhYWFllZB1lZWRRcClgJCVwOXAkNCw5YUFAJXQ1RDA1cDgsJUFgMXVtcWlldDFlfXQtdX1lbClhfW1kOWApbDQ5cCwpfXglQXlBcFhYWFllZWQcHWRQaDhReWBRZFhYWFgdZB1lZWRQLHRYWFhZZBwcHB1kUCwRRARxdHQZZXgkFWlwaGF0MXVgWFhYWWVlZBwdZFBoOFF5YFFkWFhYWWVlZBwdZFA4YFF5YFFkWFhYWWQdZBwdZFAsLC1JYFhYWFgdZWQdZWRRaXFtcDVEOCUVQWgtfRVlZDQ1FCgsOUEVeCl1aWlxeUAlQClsWFhYWB1lZWQcHB1kUWV5RUVFdWFpbWVpfUBYWFhZZWVkHWQcUWVldW1taXltfUVpfXVxaUFBeXFgWFhYWB1lZB1lZBwcUWlxbXA0LDVpFUFoLX0VZWQ0NRQoLDlBFXgpdWlpcXlAJUApbFBwaHQ0WFhYWWVlZBwdZFAsLFF5YFD1aLhwyPiYYDC89UTwvLlwnH1VVFhYWFgdZWVkHBwcHFFteWVoWFhYWB1kHB1lZFFkUWV5dCg5ZX1xdWQkOWAxaDV9ZWw1QWVteXglbC1lRXglRWAwNUAtQXgtZWwpeXgpaXl9bX1gKClFYDAwJURRaUV4JXAlfC15bXglQCV9bDllZXl0NXQpbCVhdDgxRX19YXVteDV1eCg5cUVpdXQlaWVhRDFhcC1AMUQkLUFBRFFlaFA4JBBsN"
# 0III0I00 判断是否通过
b2 = base64.b64decode(a2.encode())
print(b2)
......@@ -92,7 +90,7 @@ for i in cks:
if tmp[0] == 'o11o11oo':
cts = tmp[1]
uuid = 'fc987990-8211-11ee-b923-056700f3bd61'
uuid = '2aa06a90-82bd-11ee-ae7a-078ea3dc1a7a'
print( json.dumps([sid, vid, ts, num1, num2, str1, uuid]))
......
......@@ -35,7 +35,11 @@ headers = {
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
}
headers['cookie'] = '__RequestVerificationToken=cCZfQbtoyI_K1mXPzAATHLn_FNTO-Q-7zBL3g6PpW2XkBG1a0Eth04mG3dJiA8HfEChZw0YdbTSGrZsdLpJw6LRgLcZdYotBHEnvCUd6u-DJlN3XX-Etzl-x14q4qC9Qb1BpmA2; _pxhd=d5403a7f64d0f2b0a602d1a003aeb795b4b8407958585d7c4b20a36b356e843e%3A399bce47-8213-11ee-a16a-1f9ffa30df36; pxcts=3c0c464d-8213-11ee-ae38-ccc7fa5f0b3e; _pxvid=399bce47-8213-11ee-a16a-1f9ffa30df36; _px2=eyJ1IjoiM2IzYzZmNzAtODIxMy0xMWVlLTk5NjktZGJlOThmNjdlNGJiIiwidiI6IjM5OWJjZTQ3LTgyMTMtMTFlZS1hMTZhLTFmOWZmYTMwZGYzNiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6IjUzY2U5ZmQ5NzZkYzI3OTM2MmNkOGY0OWI2NmFkMzY5ZWI3MTdiMmQ0Zjc0Y2FjOGJhYmM0ZmUxNWExY2I3YmEifQ%3D%3D'
headers['cookie'] = '_gcl_au=1.1.1490618886.1699948968; _uetsid=333e563082c411eeab4d37bff00fe0fc; _uetvid=333e43d082c411ee9bd0c976f4f38c4b; wisepops_visits=%5B%222023-11-14T08%3A02%3A47.836Z%22%5D; _pin_unauth=dWlkPU9UUXlOR05oWkRrdFlUWTNZeTAwT1dKaUxUaGpZVGt0TldVeU9Ea3lZVFZsT1dFMw; _pxvid=343d5fc9-82c4-11ee-ad09-afa89f4df02f; pxcts=343d6eae-82c4-11ee-ad09-79608cc69bb9; _ga=GA1.2.1390996659.1699948968; _gid=GA1.2.971608761.1699948970; ORA_FPC=id=cd1e4060-e613-4b71-8f3a-981826d75ad0; WTPERSIST=; wisepops=%7B%22csd%22%3A1%2C%22popups%22%3A%7B%22429858%22%3A%7B%22dc%22%3A1%2C%22d%22%3A1699948972759%7D%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A15%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; wisepops_session=%7B%22arrivalOnSite%22%3A%222023-11-14T08%3A02%3A47.836Z%22%2C%22mtime%22%3A1699948972760%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%22429858%22%3A0%7D%2C%22bars%22%3A%7B%7D%2C%22sticky%22%3A%7B%7D%2C%22countdowns%22%3A%7B%7D%2C%22src%22%3Anull%2C%22utm%22%3A%7B%7D%2C%22testIp%22%3Anull%7D; _tt_enable_cookie=1; _ttp=X-fkfQ31z_cYxRqc2OJRzNYcUb8; _fbp=fb.1.1699948972844.779092672; _up=1.2.941452233.1699948973; _ga_P2WLKWBNNW=GS1.1.1699948968.1.0.1699948977.51.0.0; _px2=eyJ1IjoiMzJiOTI3NjAtODJjNC0xMWVlLWJkNDgtOWQwYTUyZmI2OWQzIiwidiI6IjM0M2Q1ZmM5LTgyYzQtMTFlZS1hZDA5LWFmYTg5ZjRkZjAyZiIsInQiOjE2OTk5NDk4NTU2NzQsImgiOiIxMzNlNzg3MjNjOWRiOTk4NmM1NWJkMWQ1N2VhYmU3NGZlNTg2Yjg3MmRjNGIwOTk5ODdmODRjY2MzNjc1YjA4In0='
......@@ -55,7 +59,7 @@ url = "https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2
# , cookies=cks
response = requests.post('http://52.52.23.116/tls/forward', json=dict(url=url,headers=headers, method="GET", proxy=prox, debug=True
# # ,allow_redirects=True
# ,allow_redirects=True
))
# response = session.get(url, headers=headers, params=params
......
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