Commit 85de9332 authored by wang's avatar wang

解密payload

parent a82d8542
...@@ -39,6 +39,8 @@ try { ...@@ -39,6 +39,8 @@ try {
} }
o[n] = u; o[n] = u;
} }
// console.log('i', n, u)
if (u === 'PX12169')debugger
return e(r), u; return e(r), u;
} }
var c = i; var c = i;
...@@ -329,7 +331,8 @@ try { ...@@ -329,7 +331,8 @@ try {
} catch (t) {} } catch (t) {}
}(); }();
function H(t) { function H(t) {
return l(U) === "function" ? U(t) : function (t) { let res = l(U) === "function" ? U(t) : function (t) {
var e; var e;
var n; var n;
var r; var r;
...@@ -348,6 +351,9 @@ try { ...@@ -348,6 +351,9 @@ try {
return null; return null;
} }
}(t); }(t);
// console.log('H', t, res)
return res
} }
var J; var J;
var z; var z;
...@@ -1075,6 +1081,9 @@ try { ...@@ -1075,6 +1081,9 @@ try {
} }
for (var ir = [], cr = {}, ur = 0; ur < 256; ur++) ir[ur] = (ur + 256).toString(16).substr(1), cr[ir[ur]] = ur; for (var ir = [], cr = {}, ur = 0; ur < 256; ur++) ir[ur] = (ur + 256).toString(16).substr(1), cr[ir[ur]] = ur;
function lr(t, e, n, r) { function lr(t, e, n, r) {
// uuid
return 'b8a39670-7866-11ee-9655-63a4f05cd5d1'
var a = ""; var a = "";
if (r) try { if (r) try {
for (var o = (new Date().getTime() * Math.random() + "").replace(".", ".".charCodeAt()).split("").slice(-16), i = 0; i < o.length; i++) o[i] = parseInt(10 * Math.random()) * +o[i] || parseInt(Math.random() * 36); for (var o = (new Date().getTime() * Math.random() + "").replace(".", ".".charCodeAt()).split("").slice(-16), i = 0; i < o.length; i++) o[i] = parseInt(10 * Math.random()) * +o[i] || parseInt(Math.random() * 36);
...@@ -4379,6 +4388,7 @@ try { ...@@ -4379,6 +4388,7 @@ try {
return !(!e || "object" !== l(e)) && (e.do || e.ob); return !(!e || "object" !== l(e)) && (e.do || e.ob);
} }
function Sh(t, e) { function Sh(t, e) {
console.log(t)
if (t) { if (t) {
for (var s, h = [], v = 0; v < t[ch(501)]; v++) { for (var s, h = [], v = 0; v < t[ch(501)]; v++) {
var d = t[v]; var d = t[v];
......
...@@ -9,19 +9,19 @@ ...@@ -9,19 +9,19 @@
</head> </head>
<body> <body>
<script> <script>
window._pxVid = '4290832e-77db-11ee-bdfb-76e73743688f'; window._pxVid = 'dd9f9ada-7879-11ee-91c7-8768a7117ce0';
window._pxUuid = 'b9e29d61-7040-1031-97f5-25e954c514e9'; window._pxUuid = 'deeb1bb0-7879-11ee-b544-b545eb1c6a33';
window._pxAppId = 'PXVb73hTEg'; window._pxAppId = 'PXVb73hTEg';
window._pxHostUrl = 'https://collector-PXVb73hTEg.perimeterx.net'; window._pxHostUrl = 'https://collector-PXVb73hTEg.perimeterx.net';
window._pxCustomLogo = ''; window._pxCustomLogo = '';
window._pxJsClientSrc = '//client.perimeterx.net/PXVb73hTEg/main.min.js'; window._pxJsClientSrc = '//client.perimeterx.net/PXVb73hTEg/main.min.js';
window._pxFirstPartyEnabled = 'false'; window._pxFirstPartyEnabled = 'false';
var script = document.createElement('script'); var script = document.createElement('script');
script.src = '//captcha.perimeterx.net/PXVb73hTEg/captcha.js?a=&u=b9e29d61-7040-1031-97f5-25e954c514e9&v=4290832e-77db-11ee-bdfb-76e73743688f&m=0'; script.src = '//captcha.perimeterx.net/PXVb73hTEg/captcha.js?a=&u=deeb1bb0-7879-11ee-b544-b545eb1c6a33&v=dd9f9ada-7879-11ee-91c7-8768a7117ce0&m=0';
document.head.appendChild(script); document.head.appendChild(script);
script.onerror = function () { script.onerror = function () {
script = document.createElement('script'); script = document.createElement('script');
script.src = 'https://captcha.px-cloud.net/PXVb73hTEg/captcha.js?a=&u=b9e29d61-7040-1031-97f5-25e954c514e9&v=4290832e-77db-11ee-bdfb-76e73743688f&m=0'; script.src = 'https://captcha.px-cloud.net/PXVb73hTEg/captcha.js?a=&u=deeb1bb0-7879-11ee-b544-b545eb1c6a33&v=dd9f9ada-7879-11ee-91c7-8768a7117ce0&m=0';
script.onerror = window._pxDisplayErrorMessage; script.onerror = window._pxDisplayErrorMessage;
document.head.appendChild(script); document.head.appendChild(script);
}; };
......
...@@ -36,7 +36,7 @@ class PxBypass(): ...@@ -36,7 +36,7 @@ class PxBypass():
# PX11701 111o1o # PX11701 111o1o
str1: str = '' str1: str = ''
session = tls_client.Session(client_identifier='chrome_112') session = tls_client.Session(client_identifier='chrome_112', random_tls_extension_order=True)
# session = requests.Session() # session = requests.Session()
session.proxies = { session.proxies = {
'http': 'http://127.0.0.1:7890', 'http': 'http://127.0.0.1:7890',
...@@ -57,17 +57,25 @@ class PxBypass(): ...@@ -57,17 +57,25 @@ class PxBypass():
def inc(self): def inc(self):
self.seq += 1 self.seq += 1
self.rsc += 1 self.rsc += 1
self.log.info(f'seq: {self.seq} rsc:{self.rsc}' )
def run(self): def run(self):
self._init() self._init()
self.seq = 0 self.seq = 0
self.rsc = 1 self.rsc = 1
self._step_1() self._step_1()
time.sleep(2)
self.inc() self.inc()
self._step_11() self.seq += 1
self.inc() # self._step_11()
self._step_2() # self.inc()
self._step_2(True)
time.sleep(2)
self._step_2(False)
time.sleep(2)
self.inc() self.inc()
self._step_3() self._step_3()
time.sleep(2)
self.inc() self.inc()
self.__token() self.__token()
...@@ -99,57 +107,58 @@ class PxBypass(): ...@@ -99,57 +107,58 @@ class PxBypass():
f.write(res.text) f.write(res.text)
def __uuid(self): def __uuid(self):
r = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", return ctxStep2.call('genUuid')
"12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", # r = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11",
"24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", # "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23",
"36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", # "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35",
"48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", # "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47",
"5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", # "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59",
"6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", # "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b",
"7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", # "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d",
"90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", # "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f",
"a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", # "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1",
"b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", # "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3",
"c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", # "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5",
"d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", # "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7",
"ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", # "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9",
"fc", "fd", "fe", "ff"] # "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb",
bs = 0 # "fc", "fd", "fe", "ff"]
ys = [random.randint(10, 255) for _ in range(6)] # bs = 0
# random.shuffle(ys) # ys = [random.randint(10, 255) for _ in range(6)]
Gs = random.randint(1100, 9999) # # random.shuffle(ys)
Ws = 0 # Gs = random.randint(1100, 9999)
s = Gs # Ws = 0
h = get_timestamp() # s = Gs
d = bs + 1 # h = get_timestamp()
m = int(h - Ws + (d - bs) / 1e4) # d = bs + 1
# m = int(h - Ws + (d - bs) / 1e4)
Ws = h #
bs = d # Ws = h
Gs = s # bs = d
h += 122192928e5 # Gs = s
h = int(h) # h += 122192928e5
f = [] # h = int(h)
u = 0 # f = []
p = (1000 * (268435455 & h) + d) % 4294967296 # u = 0
# p = 4180087664 # p = (1000 * (268435455 & h) + d) % 4294967296
f[:3] = int(p).to_bytes(4, byteorder='big') # # p = 4180087664
Q = int(h / 4294967296) * 1000 & 268435455 # f[:3] = int(p).to_bytes(4, byteorder='big')
# Q = 32386116 # Q = int(h / 4294967296) * 1000 & 268435455
f.append(unsinged_right_shift(Q, 8) & 255) # # Q = 32386116
f.append(255 & Q) # f.append(unsinged_right_shift(Q, 8) & 255)
f.append(unsinged_right_shift(Q, 24) & 15 | 16) # f.append(255 & Q)
f.append(unsinged_right_shift(Q, 16) & 255) # f.append(unsinged_right_shift(Q, 24) & 15 | 16)
# s = 6488 # f.append(unsinged_right_shift(Q, 16) & 255)
f.append(unsinged_right_shift(s, 8) | 128) # # s = 6488
f.append(255 & s) # f.append(unsinged_right_shift(s, 8) | 128)
for i in ys: # f.append(255 & s)
f.append(i) # for i in ys:
print(f) # f.append(i)
res = [r[f[0]], r[f[1]], r[f[2]], r[f[3]], '-', r[f[4]], r[f[5]], '-', r[f[6]], r[f[7]], '-', r[f[8]], r[f[9]], # print(f)
'-', # res = [r[f[0]], r[f[1]], r[f[2]], r[f[3]], '-', r[f[4]], r[f[5]], '-', r[f[6]], r[f[7]], '-', r[f[8]], r[f[9]],
r[f[10]], r[f[11]], r[f[12]], r[f[13]], r[f[14]], r[f[15]]] # '-',
return ''.join(res) # r[f[10]], r[f[11]], r[f[12]], r[f[13]], r[f[14]], r[f[15]]]
# return ''.join(res)
def _step_1(self): def _step_1(self):
t1 = int(time.time() * 1000) t1 = int(time.time() * 1000)
...@@ -160,7 +169,7 @@ class PxBypass(): ...@@ -160,7 +169,7 @@ class PxBypass():
# "PX11385":1698649702900,"PX12280":1698649702913,"PX11496":"1ce53d20-76f3-11ee-8971-a3e00c89b2ff","PX12564":null,"PX12565":-1,"PX11379":false}}]" # "PX11385":1698649702900,"PX12280":1698649702913,"PX11496":"1ce53d20-76f3-11ee-8971-a3e00c89b2ff","PX12564":null,"PX12565":-1,"PX11379":false}}]"
data = [{"t": "PX12095", data = [{"t": "PX12095",
"d": {"PX11645": "https://www.flyfrontier.com/", "PX12207": 0, "PX12458": "MacIntel", "PX11902": 0, "d": {"PX11645": "https://www.flyfrontier.com/", "PX12207": 0, "PX12458": "MacIntel", "PX11902": 0,
"PX11560": random.randint(8549, 8549 * 3), "PX12248": 3600, "PX11385": t1, "PX12280": t2, "PX11560": random.randint(24846, 24846 * 2), "PX12248": 3600, "PX11385": t1, "PX12280": t2,
"PX11496": _uuid, "PX12564": None, "PX12565": -1, "PX11496": _uuid, "PX12564": None, "PX12565": -1,
"PX11379": False}}] "PX11379": False}}]
data_str = json.dumps(data, separators=(',', ':')) data_str = json.dumps(data, separators=(',', ':'))
...@@ -184,7 +193,7 @@ class PxBypass(): ...@@ -184,7 +193,7 @@ class PxBypass():
"rsc": self.rsc "rsc": self.rsc
} }
print(body) print(body)
url = "https://collector-PXVb73hTEg.px-cloud.net/api/v2/collector" url = "https://collector-pxvb73hteg.px-cloud.net/b/s"
headers = { headers = {
"authority": "collector-PXVb73hTEg.px-cloud.net", "authority": "collector-PXVb73hTEg.px-cloud.net",
"accept": "*/*", "accept": "*/*",
...@@ -308,11 +317,11 @@ class PxBypass(): ...@@ -308,11 +317,11 @@ class PxBypass():
with open('index.html', 'w') as f: with open('index.html', 'w') as f:
f.write(response.text) f.write(response.text)
def _step_2(self): def _step_2(self, nn):
self.log.info(self.m) self.log.info(self.m)
self.log.info(self.uuid) self.log.info(self.uuid)
# sid, vid,ts, num1 ,num2,str1, uuid # sid, vid,ts, num1 ,num2,str1, uuid
data_str = ctxStep2.call('genPayload2', self.sid, self.vid, self.ts, self.num1, self.num2, self.str1, self.uuid) data_str = ctxStep2.call('genPayload2', self.sid, self.vid, self.ts, self.num1, self.num2, self.str1, self.uuid, nn)
self.log.info(f'data_str2 {data_str}') self.log.info(f'data_str2 {data_str}')
payload = ctx.call('encodePayload', data_str, self.uuid, '') payload = ctx.call('encodePayload', data_str, self.uuid, '')
...@@ -335,7 +344,7 @@ class PxBypass(): ...@@ -335,7 +344,7 @@ class PxBypass():
"rsc": self.rsc "rsc": self.rsc
} }
body = self.update_sid_vid(body) body = self.update_sid_vid(body)
url = "https://collector-PXVb73hTEg.px-cloud.net/api/v2/collector" url = "https://collector-pxvb73hteg.px-cloud.net/b/s"
headers = { headers = {
"authority": "collector-PXVb73hTEg.px-cloud.net", "authority": "collector-PXVb73hTEg.px-cloud.net",
"accept": "*/*", "accept": "*/*",
...@@ -418,7 +427,7 @@ class PxBypass(): ...@@ -418,7 +427,7 @@ class PxBypass():
} }
body = self.update_sid_vid(body) body = self.update_sid_vid(body)
print(body) print(body)
url = "https://collector-PXVb73hTEg.px-cloud.net/api/v2/collector" url = "https://collector-pxvb73hteg.px-cloud.net/b/s"
headers = { headers = {
"authority": "collector-PXVb73hTEg.px-cloud.net", "authority": "collector-PXVb73hTEg.px-cloud.net",
"accept": "*/*", "accept": "*/*",
...@@ -519,6 +528,7 @@ class PxBypass(): ...@@ -519,6 +528,7 @@ class PxBypass():
return data return data
def _step_3(self): def _step_3(self):
time.sleep(1)
self.log.info(self.m) self.log.info(self.m)
self.log.info(self.uuid) self.log.info(self.uuid)
# sid, vid,ts, num1 ,num2,str1, uuid # sid, vid,ts, num1 ,num2,str1, uuid
...@@ -545,7 +555,7 @@ class PxBypass(): ...@@ -545,7 +555,7 @@ class PxBypass():
"rsc": self.rsc "rsc": self.rsc
} }
body = self.update_sid_vid(body) body = self.update_sid_vid(body)
url = "https://collector-PXVb73hTEg.px-cloud.net/api/v2/collector" url = "https://collector-pxvb73hteg.px-cloud.net/b/s"
headers = { headers = {
"authority": "collector-PXVb73hTEg.px-cloud.net", "authority": "collector-PXVb73hTEg.px-cloud.net",
"accept": "*/*", "accept": "*/*",
...@@ -563,8 +573,9 @@ class PxBypass(): ...@@ -563,8 +573,9 @@ class PxBypass():
"sec-fetch-site": "cross-site", "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/117.0.0.0 Safari/537.36" "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"
} }
self.log.info(f'data3 {body}')
response = self.session.post(url, headers=headers, data=body) response = self.session.post(url, headers=headers, data=body)
self.log.info(f'collector2 {response.text}') self.log.info(f'collector3 {response.text}')
resp = response.json() resp = response.json()
m = {} m = {}
if 'ob' in resp: if 'ob' in resp:
......
const md5 = require('md5'); const md5 = require('md5');
const crypto = require('crypto');
function genUuid(t, e, n, r) {
function l(t) {
return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t;
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, l(t);
}
var nr;
try {
if (("undefined" == typeof crypto ? "undefined" : l(crypto)) !== "undefined" && crypto && crypto.getRandomValues) {
var ar = new Uint8Array(16);
(nr = function () {
return crypto.getRandomValues(ar), ar;
})();
}
} catch (t) {
nr = void 0;
}
function xt() {
return +new Date();
}
var sr = nr();
var hr = [1 | sr[0], sr[1], sr[2], sr[3], sr[4], sr[5]];
var vr = 16383 & (sr[6] << 8 | sr[7]);
var dr = 0;
var pr = 0;
// uuid
// return '6172b081-7040-1031-9ca8-44e6194ad09a'
var a = "";
if (r) try {
for (var o = (new Date().getTime() * Math.random() + "").replace(".", ".".charCodeAt()).split("").slice(-16), i = 0; i < o.length; i++) o[i] = parseInt(10 * Math.random()) * +o[i] || parseInt(Math.random() * 36);
a = $C_gLP(o, 0);
} catch (t) {
}
var c = e && n || 0;
var u = e || [];
var l = void 0 !== (t = t || {}).clockseq ? t.clockseq : vr;
var f = void 0 !== t.msecs ? t.msecs : xt();
var s = void 0 !== t.nsecs ? t.nsecs : pr + 1;
var h = f - dr + (s - pr) / 1e4;
if (h < 0 && void 0 === t.clockseq && (l = l + 1 & 16383), (h < 0 || f > dr) && void 0 === t.nsecs && (s = 0), s >= 1e4) throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
dr = f, pr = s, vr = l;
var v = (1e4 * (268435455 & (f += 122192928e5)) + s) % 4294967296;
u[c++] = v >>> 24 & 255, u[c++] = v >>> 16 & 255, u[c++] = v >>> 8 & 255, u[c++] = 255 & v;
var d = f / 4294967296 * 1e4 & 268435455;
u[c++] = d >>> 8 & 255, u[c++] = 255 & d, u[c++] = d >>> 24 & 15 | 16, u[c++] = d >>> 16 & 255, u[c++] = l >>> 8 | 128, u[c++] = 255 & l;
for (var p = t.node || hr, m = 0; m < 6; m++) u[c + m] = p[m];
for (var ir = [], cr = {}, ur = 0; ur < 256; ur++) ir[ur] = (ur + 256).toString(16).substr(1), cr[ir[ur]] = ur;
function $C_gLP(t, e) {
var n = e || 0;
return ir[t[n++]] + ir[t[n++]] + ir[t[n++]] + ir[t[n++]] + "-" + ir[t[n++]] + ir[t[n++]] + "-" + ir[t[n++]] + ir[t[n++]] + "-" + ir[t[n++]] + ir[t[n++]] + "-" + ir[t[n++]] + ir[t[n++]] + ir[t[n++]] + ir[t[n++]] + ir[t[n++]] + ir[t[n++]];
}
var g = e || $C_gLP(u);
return a === g ? a : g;
}
function randomInt(a, b) { function randomInt(a, b) {
return Math.floor(((b - a) * Math.random()) + a) return Math.floor(((b - a) * Math.random()) + a)
...@@ -99,13 +164,13 @@ function getNoPX(data) { ...@@ -99,13 +164,13 @@ function getNoPX(data) {
} }
let ua = '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'; let ua = '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';
let performanceNowTime = randomInt(40000, 45000); let performanceNowTime = randomInt(10000, 25000);
function performanceNow(tt) { function performanceNow(tt) {
return performanceNowTime + tt; return performanceNowTime + tt;
} }
function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { function genPayload2(sid, vid, ts, num1, num2, str1, uuid, n) {
// let vid = m['I000I0'] // let vid = m['I000I0']
// let sid = m['I0I0II'] // let sid = m['I0I0II']
console.log(vid, sid) console.log(vid, sid)
...@@ -115,9 +180,9 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -115,9 +180,9 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
// "75602>44073>?2261175": "46531=77340=<1152246", // "75602>44073>?2261175": "46531=77340=<1152246",
"PX12454": num1, // 0III0II0 "PX12454": num1, // 0III0II0
"PX11701": num2, // I00III "PX11701": num2, // I00III
"PX11529": 102721973,// usedJSHeapSize "PX11529": parseInt(Math.random() * 46033724 + 46033724),// usedJSHeapSize
"PX11555": 4294705152,// jsHeapSizeLimit "PX11555": 4294705152,// jsHeapSizeLimit
"PX11833": 122502277,// totalJSHeapSize "PX11833": parseInt(Math.random() * 60757720 + 60757720),// totalJSHeapSize
// "PX11840": "Fri Aug 25 2023 14:20:11 GMT+0800 (中国标准时间)", // "PX11840": "Fri Aug 25 2023 14:20:11 GMT+0800 (中国标准时间)",
"PX11840": new Date() + '', "PX11840": new Date() + '',
// "PX12573": "e29b74b1", // parseInt(0III0III/10) // "PX12573": "e29b74b1", // parseInt(0III0III/10)
...@@ -134,8 +199,8 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -134,8 +199,8 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
// "PX11332": 1692944411272, // "PX11332": 1692944411272,
"PX11332": Date.now(), "PX11332": Date.now(),
"PX12248": 3600, "PX12248": 3600,
"PX11385": Date.now() + parseInt(Math.random() * 500 + 500), "PX11385": Date.now() - parseInt(Math.random() * 500 + 100),
"PX12280": Date.now() + parseInt(Math.random() * 500 + 2000), "PX12280": Date.now(),
"PX11496": uuid, //uuid "PX11496": uuid, //uuid
...@@ -150,8 +215,8 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -150,8 +215,8 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
"PX12291": "", "PX12291": "",
"PX11881": ["loadTimes", "csi", "app"],// chrome 属性 "PX11881": ["loadTimes", "csi", "app"],// chrome 属性
"PX12207": 0, //v["self"] === v["top"] ? 0 : 1 "PX12207": 0, //v["self"] === v["top"] ? 0 : 1
"PX11538": 4, // history.length "PX11538": 2, // history.length
"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 Eo (https://client.px-cloud.net/PXVb73hTEg/main.min.js:2291:31)\\n at Co (https://client.px-cloud.net/PXVb73hTEg/main.min.js:2313:23)\\n at https://client.px-cloud.net/PXVb73hTEg/main.min.js:2311:13", "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 Eo (https://client.px-cloud.net/PXVb73hTEg/main.min.js:2294:31)\n at Co (https://client.px-cloud.net/PXVb73hTEg/main.min.js:2316:23)\n at https://client.px-cloud.net/PXVb73hTEg/main.min.js:2152:9",
"PX11645": "https://www.flyfrontier.com/", // href "PX11645": "https://www.flyfrontier.com/", // href
"PX11597": [],// location.ancestorOrigins "PX11597": [],// location.ancestorOrigins
"PX12023": "",// document.referrer "PX12023": "",// document.referrer
...@@ -167,7 +232,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -167,7 +232,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
"PX12003": 24, // screen["pixelDepth"] "PX12003": 24, // screen["pixelDepth"]
"PX11380": 24, // screen["colorDepth"] "PX11380": 24, // screen["colorDepth"]
"PX11494": 977, // v["innerWidth"] "PX11494": 977, // v["innerWidth"]
"PX12411": 938, // v["innerHeight"] "PX12411": 853, // v["innerHeight"]
"PX12443": 0, // v["scrollX"] "PX12443": 0, // v["scrollX"]
"PX12447": 0, // v["scrollY"] "PX12447": 0, // v["scrollY"]
"PX11533": true, // !(0 === v["outerWidth"] && 0 === v["outerHeight"]) "PX11533": true, // !(0 === v["outerWidth"] && 0 === v["outerHeight"])
...@@ -206,7 +271,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -206,7 +271,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
"PX11821": "Netscape", "PX11821": "Netscape",
"PX11479": "Mozilla", "PX11479": "Mozilla",
"PX11674": true, "PX11674": true,
"PX12241": 350, //m["connection"]["rtt"] "PX12241": 400, //m["connection"]["rtt"]
"PX11372": false, "PX11372": false,
"PX11683": 1.5, "PX11683": 1.5,
"PX11561": "3g", "PX11561": "3g",
...@@ -244,7 +309,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -244,7 +309,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
"PX12579": { "PX12579": {
"support": true, "status": { "support": true, "status": {
"effectiveType": "3g", "effectiveType": "3g",
"rtt": 350, "rtt": 400,
"downlink": 1.5, "downlink": 1.5,
"saveData": false "saveData": false
} }
...@@ -292,7 +357,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -292,7 +357,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
"PX11387": 0, "PX11387": 0,
"PX12150": 1920, "PX12150": 1920,
"PX12304": true, "PX12304": true,
"PX11651": 1055, "PX11651": 970,
"PX11867": "missing", "PX11867": "missing",
"PX12254": true, "PX12254": true,
"PX11540": true, "PX11540": true,
...@@ -301,7 +366,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -301,7 +366,7 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
"PX12550": 1, "PX12550": 1,
"PX12431": 0, "PX12431": 0,
"PX11991": 10, "PX11991": 10,
"PX11837": 32, "PX11837": 48,
"PX11632": 0, "PX11632": 0,
"PX11409": 9, "PX11409": 9,
...@@ -336,16 +401,106 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -336,16 +401,106 @@ function genPayload2(sid, vid, ts, num1, num2, str1, uuid) {
"PX12564": null, "PX12564": null,
"PX12565": -1, "PX12565": -1,
// "PX11379": false "PX11379": false
} }
let noPX = getNoPX(data) let noPX = getNoPX(data)
data[noPX[0]] = noPX[1] data[noPX[0]] = noPX[1]
let data2 = [{ let data2 = [
]
if (n) {
data2.push(
{
"t": "PX11590", "t": "PX11590",
"d": data "d": data
} }
] )
}else{
data2.push({
"t": "PX11547",
"d": {
"PX12492": "c505c10e26a1b7a7741437db9f82916b",
"PX12570": "78f763eab3a2082c63c66cf47f9e05a0",
"PX11352": "e089aa3d700a35da7244dd4da7a68f9c",
"PX12292": "WebKit",
"PX11811": [],
"PX11567": "WebKit WebGL",
"PX12032": "WebGL 1.0 (OpenGL ES 2.0 Chromium)",
"PX11536": ["ANGLE_instanced_arrays", "EXT_blend_minmax", "EXT_color_buffer_half_float", "EXT_disjoint_timer_query", "EXT_float_blend", "EXT_frag_depth", "EXT_shader_texture_lod", "EXT_texture_compression_rgtc", "EXT_texture_filter_anisotropic", "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_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"],
"PX12149": ["[1, 1]", "[1, 64]", 8, "yes", 8, 24, 8, 16, 32, 16384, 1024, 16384, 16, 16384, 31, 16, 16, 1024, "[16384, 16384]", "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. (Apple)",
"PX11455": "ANGLE (Apple, Apple M1 Max, OpenGL 4.1)",
"PX11534": "WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)",
"PX12503": "d9153fa5509ac1e988e36776dd8d598a",
"PX12502": "32fe0262ba56767dfd83466855e47bec",
"PX11927": "a02e9e2368744e62770d4a78862f75fa",
"PX12572": "7ec700f02277463745cc71774c12c8aa",
"PX11477": "126.8696939282454",
"PX12109": "b908567e93d9ed24c036da7986349e97",
"PX12362": "f002a4208ac473ef3bd8237048ce6028",
"PX12491": "be9996f96141c689cda7a1e4e1c28787",
"PX12130": ["Sha256", "_init", "_open", "_close", "F9Storage", "$", "F9Qubit", "F9Social", "html5", "$A", "_fbq", "_uxa", "__core-js_shared__", "_", "__f9publicCache", "ueto_1c8252a545"],
"PX12351": ["jQuery3510402196117429823861", "_html5shiv", "AccDC1698805894620"],
"PX11386": ["webdriver"],
"PX12525": "b1199c2b7aa9aa43f16fc345099c3f04",
"PX12526": "c9a6cb64a9c6b14c5c489fd18fc4c35d",
"PX11948": 1,
"PX11685": 10,
"PX11986": true,
"PX12299": true,
"PX12331": true,
"PX11316": false,
"PX11448": true,
"PX12196": "missing",
"PX12427": ["_init", "_open", "_close", "$", "$A", "_pxCustomAbrDomains", "_pxAppId", "_Vb73hTEghandler", "_fbq", "_uxa", "__core-js_shared__", "_", "__f9publicCache"],
"PX11842": ["_html5shiv"],
"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"],
"PX11993": "1698805918370",
"PX12228": "TypeError: Cannot read properties of null (reading '0') at de (https://client.px-cloud.net/PXVb73hTEg/main.min.js:796:13) at func (https://client.px-cloud.net/PXVb73hTEg/main.min.js:4899:19) at ve (https://client.px-cloud.net/PXVb73hTEg/main.min.js:790:13) at https://client.px-cloud.net/PXVb73hTEg/main.min.js:5048:13",
"PX12288": true,
"PX12446": 33,
"PX12236": "fd7149bbfb316699ef918fa7bb7510a8",
"PX11309": "d41d8cd98f00b204e9800998ecf8427e",
"PX11551": "fd7149bbfb316699ef918fa7bb7510a8",
"PX12586": 1,
"PX11843": 1920,
"PX11781": 1080,
"PX12121": 1920,
"PX12387": "1920X1080",
"PX11380": 24,
"PX12003": 24,
"PX12128": 1055,
"PX11849": "10207b2f",
"PX11583": "en-US",
"PX12458": "MacIntel",
"PX11754": "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",
"PX11681": ["en-US"],
"PX12037": true,
"PX11621": 8,
"PX11390": -480,
"PX11678": false,
"PX11840": new Date() + '',
"PX11540": true,
"PX11539": "64556c77",
"PX11555": 4294705152,
"PX11452": "7c5f9724",
"PX12527": "3207084bd110f1ac964863e23aa78e04",
"PX11484": [],
"PX12501": md5(vid),
"PX11902": 2,
"PX11560": performanceNow(parseInt(Math.random() * 500 + 500)), // perf
"PX12280": Date.now() + parseInt(Math.random() * 500 + 2000),
"PX11496": uuid,
"PX12564": null,
"PX12565": -1,
"PX11379": false,
"PX11645": "https://www.flyfrontier.com/"
}
})
}
return JSON.stringify(data2); return JSON.stringify(data2);
} }
...@@ -365,7 +520,7 @@ function genPayload3(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -365,7 +520,7 @@ function genPayload3(sid, vid, ts, num1, num2, str1, uuid) {
"PX11652": "#header>DIV:nth-child(1)>DIV:nth-child(3)>DIV:nth-child(1)>DIV:nth-child(1)>DIV:nth-child(1)", "PX11652": "#header>DIV:nth-child(1)>DIV:nth-child(3)>DIV:nth-child(1)>DIV:nth-child(1)>DIV:nth-child(1)",
"PX11902": 3, "PX11902": 3,
"PX11560": performanceNow(parseInt(Math.random() * 500 + 500)), "PX11560": performanceNow(parseInt(Math.random() * 500 + 500)),
"PX12280": Date.now() + parseInt(Math.random() * 500 + 2000), "PX12280": Date.now(),
"PX11496": uuid, "PX11496": uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, "PX12565": -1,
...@@ -388,7 +543,7 @@ function genPayload3(sid, vid, ts, num1, num2, str1, uuid) { ...@@ -388,7 +543,7 @@ function genPayload3(sid, vid, ts, num1, num2, str1, uuid) {
"PX11371": createPx2(ua, sid), "PX11371": createPx2(ua, sid),
"PX11902": 4, "PX11902": 4,
"PX11560": performanceNow(parseInt(Math.random() * 500 + 500)), "PX11560": performanceNow(parseInt(Math.random() * 500 + 500)),
"PX12280": Date.now() + parseInt(Math.random() * 500 + 2000), "PX12280": Date.now(),
"PX11496": uuid, "PX11496": uuid,
"PX12564": null, "PX12564": null,
"PX12565": -1, "PX12565": -1,
...@@ -413,8 +568,8 @@ let m = { ...@@ -413,8 +568,8 @@ let m = {
} }
console.log(genPayload2( console.log(genPayload3(
"970e4b92-77d6-11ee-a9eb-78e6fe245189", "970e4172-77d6-11ee-a9eb-d94cbf89ca92", "1698747403625", 5770, "13527427502541037774", "cl0d82pdlc1uem5o4lig", "1c6fcde0-77d6-11ee-90fc-991f96a1b272" "7bc87a14-7879-11ee-be5e-b1efc531e836", "7bc86d29-7879-11ee-be5e-9a37947885cd", "1698817365836", 4661, "14971649095301537426", "cl0ualbs8hoeem5qt8cg", "b8a39670-7866-11ee-9655-63a4f05cd5d1"
)) ))
...@@ -433,3 +588,6 @@ console.log(genPayload2( ...@@ -433,3 +588,6 @@ console.log(genPayload2(
// //
// log})) // log}))
// console.log(getPX12573(1698746265,'f0e7047f-77d3-11ee-b235-351f775e4948', 'efd78db0-77d3-11ee-9223-6f639400456d')) // console.log(getPX12573(1698746265,'f0e7047f-77d3-11ee-b235-351f775e4948', 'efd78db0-77d3-11ee-9223-6f639400456d'))
console.log(genUuid())
\ No newline at end of file
...@@ -57,10 +57,11 @@ a2 ="WVkHBwdZFDcYEFoUW1tYFA0RIlkhAgcBMiw5XCUvPVglEikcJhILHyYBWBAlPz4EJDwPEjI8MRw ...@@ -57,10 +57,11 @@ a2 ="WVkHBwdZFDcYEFoUW1tYFA0RIlkhAgcBMiw5XCUvPVglEikcJhILHyYBWBAlPz4EJDwPEjI8MRw
# a2 = "WVkHBwdZFDcYEFoUW1tYFA0RIlkhAgcBMT89EiUFIRExEikcJhIyBSYrWBAlPz4EJDwAAiUsLRwmPyIBJT8xHyUsLVgxAgwDIQEfAQwBIV4hBS4EMQI5XSYsDxIkPAtaMgI5HCU8LgQyO1hcMTwiBSQ8PVwxAg8SMgU6AyY8DxIyKyEbIQY5AScCMRElLCESJRIPXCUsKR8mER8BCSshXiECMVomPzIAJgI5ESUvOgIlWjFbMT8lWCU/JRInPyERJz8lECU8MgUxEiYAJzwpETE8IV0nPCkfJgI9Eic8KREmPzIFJS8mAyY8BAMmAioEJiw5XTI/LQEOOVVVFBwaHQ0UW1hYFhYWFgdZB1lZWRQLHQ==" # a2 = "WVkHBwdZFDcYEFoUW1tYFA0RIlkhAgcBMT89EiUFIRExEikcJhIyBSYrWBAlPz4EJDwAAiUsLRwmPyIBJT8xHyUsLVgxAgwDIQEfAQwBIV4hBS4EMQI5XSYsDxIkPAtaMgI5HCU8LgQyO1hcMTwiBSQ8PVwxAg8SMgU6AyY8DxIyKyEbIQY5AScCMRElLCESJRIPXCUsKR8mER8BCSshXiECMVomPzIAJgI5ESUvOgIlWjFbMT8lWCU/JRInPyERJz8lECU8MgUxEiYAJzwpETE8IV0nPCkfJgI9Eic8KREmPzIFJS8mAyY8BAMmAioEJiw5XTI/LQEOOVVVFBwaHQ0UW1hYFhYWFgdZB1lZWRQLHQ=="
a2 = "WVkHBwdZFDcYEFoUW1tYFA0RIlkhAgcBMTwPWyVaJVklPAMcJhIpWCUrWBAlLCUQJD8tECYCIRwlBT1aJiwyBCU8A10xEg8fIQEfAQwBIV4hAgNYJhImAiY8OREkPAtbMi8tHCU8LgQyO1hcJgIDWSQ8PgAlAiIEMTw5WjIvMVoyASEbIQY5AScCLVonPA9bJiwDWCU8AxEnLCUbIQUPAScBIVonPy1dJiwhWiU8JgAxEiIEJSwtXDE/LVkyPAwDJzw6Ayc8AxEmEgtaJywMBSUSPgAxAiYEMi8hXCZaJVsyBS1bJz8lHzESPgImPz1aJz8tEDI8IRIhBlhVFBwaHQ0UW1hYFhYWFgdZB1lZWRQLHQ==" a2 = "B1lZWQcHBwcUXF5eWRYWFhZZBwcHB1kUCwRYHQkEChtQAAcNDQVdGRxQCw8WFhYWWVlZBwdZFBoOFF5YFFkWFhYWWVkHWVlZFF4MDQsLXFhcXQtRUAkMWlBbCQlfDFxbWwsLUVpbCQ0ODFxRXlAJXVhcC1kLX19dUF1QUFsNWFxYXFBYDV0JDQoWFhYWB1kHB1kHFF8KC1BeDFpRRV9QX1FFWVkNDUUKDV0NRVEJW19RXF9QUF0LDBRbWV1bXlhYWBQcGh0NFhYWFllZWQcHWRQLCxReWBQ9Wi4cMj4mGAwvPVE8Ly5cJx9VVRYWFhYHWVkHWVkUXwoLUF8JWVxFX1BfUUVZWQ0NRQoNXQ1FClkNDgtdW1kNUFteFhYWFgdZWVkHBwdZFFleUVBQWV9bXl1QW14WFhYWWVlZB1kHFFlcUV9ZXlxRWFFdW1hZXVtfXFpeFhYWFgdZWQdZWQcHFF8KC1BfDQ5bRV9QX1FFWVkNDUUKDV0NRQpZDQ4LXVtZDVBbXhQcGh0NFhYWFgdZB1lZWRQLHQ=="
# 0III0I00 判断是否通过 # 0III0I00 判断是否通过
b2 = base64.b64decode(a2.encode()) b2 = base64.b64decode(a2.encode())
print(b2) print(b2)
for i in bytes(encrypt(b2, 872 % 128)).decode().split('~~~~'): for i in bytes(encrypt(b2, 872 % 128)).decode().split('~~~~'):
...@@ -90,7 +91,8 @@ for i in cks: ...@@ -90,7 +91,8 @@ for i in cks:
if tmp[0] == 'o11o11oo': if tmp[0] == 'o11o11oo':
cts = tmp[1] cts = tmp[1]
uuid = '1c6fcde0-77d6-11ee-90fc-991f96a1b272' uuid = 'b8a39670-7866-11ee-9655-63a4f05cd5d1'
print( json.dumps([sid, vid, ts, num1, num2, str1, uuid])) print( json.dumps([sid, vid, ts, num1, num2, str1, uuid]))
......
...@@ -23,34 +23,38 @@ headers = { ...@@ -23,34 +23,38 @@ 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" "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'] = '_gcl_au=1.1.963045782.1698659101; _gid=GA1.2.297884565.1698659101; wisepops=%7B%22csd%22%3A1%2C%22popups%22%3A%7B%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A47%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; _fbp=fb.1.1698659101107.1293308129; pxcts=fed889bc-7708-11ee-ac10-e036b01709e2; _pxvid=fed8767f-7708-11ee-ac10-daadcbe32b84; _pin_unauth=dWlkPU5EUmlZak5qWmprdFpEUmhNeTAwTURNMUxUazBZamd0WWpSaVpETXhZV1V5WW1Saw; ORA_FPC=id=206781d1-8791-4bcd-9d13-b25999e30ff7; WTPERSIST=; _up=1.2.738217452.1698659104; wisepops_visits=%5B%222023-10-30T09%3A45%3A15.407Z%22%2C%222023-10-30T09%3A45%3A00.986Z%22%5D; wisepops_session=%7B%22arrivalOnSite%22%3A%222023-10-30T09%3A45%3A15.407Z%22%2C%22mtime%22%3A1698659118611%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%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; _ga_XXXX=GS1.1.1698659101.1.1.1698659118.0.0.0; _ga=GA1.1.389354129.1698659101; _uetsid=fea8def0770811ee91a20bd33fe9c12d; _uetvid=fea8d5c0770811eeaa5ba75fb8581e79; _px2=eyJ1IjoiMDczYjQ1ODAtNzcwOS0xMWVlLTk3ZTctNDk3ZTRiYTM5OWMxIiwidiI6ImZlZDg3NjdmLTc3MDgtMTFlZS1hYzEwLWRhYWRjYmUzMmI4NCIsInQiOjYyMDIzMzg4MDAwNywiaCI6ImMzYjczNDNhMWVmNGZjZmE0M2MwOTI5NTliN2Q0ZTcwMjIxYTE4NmNmY2NlY2ViZDdlYWEwM2ZhZDk1NWNiN2YifQ==; _ga_P2WLKWBNNW=GS1.1.1698659101.1.1.1698659146.15.0.0' headers['cookie'] = '_gcl_au=1.1.722464866.1698810357; _ga_XXXX=GS1.1.1698810356.1.0.1698810356.0.0.0; _pxvid=2a55550f-7869-11ee-acf5-c9203fdba316; pxcts=2a55663a-7869-11ee-acf5-f6b8cb093cb9; _ga=GA1.2.1295470390.1698810357; _gid=GA1.2.1707451477.1698810360; _gat_UA-2678252-1=1; _uetsid=2c02f3e0786911ee83f54b37555df671; _uetvid=2c032890786911eeb98ad1d36ffcc3dc; wisepops=%7B%22csd%22%3A1%2C%22popups%22%3A%7B%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A84%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; wisepops_visits=%5B%222023-11-01T03%3A45%3A56.718Z%22%5D; wisepops_session=%7B%22arrivalOnSite%22%3A%222023-11-01T03%3A45%3A56.718Z%22%2C%22mtime%22%3A1698810360043%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%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; _fbp=fb.1.1698810360050.1803367428; _px2=eyJ1IjoiYjhhMzk2NzAtNzg2Ni0xMWVlLTk2NTUtNjNhNGYwNWNkNWQxIiwidiI6IjJhNTU1NTBmLTc4NjktMTFlZS1hY2Y1LWM5MjAzZmRiYTMxNiIsInQiOjYyMDIzMzg4MDAwNywiaCI6ImM3ODFmMTVhMmVlZmUxYWMzZTBhNmQwYmQ4YzVhODA2NTFhNDhjOThmZTVmMmQ2MTIyMDc4YzUwYjYxYmU1YjIifQ==; _up=1.2.1818147287.1698810361; _tt_enable_cookie=1; _ttp=D3xep_DTwKRrOnkK63RwbIGqBC0; _ga_P2WLKWBNNW=GS1.1.1698810356.1.0.1698810363.53.0.0'
cookies = {
"_gcl_au": "1.1.414833160.1698747403",
"pxcts": "970e4f63-77d6-11ee-a9eb-78e6fe245189",
"_pxvid": "970e4172-77d6-11ee-a9eb-d94cbf89ca92",
"_gid": "GA1.2.680187526.1698747449",
"_ga_XXXX": "GS1.1.1698747449.1.0.1698747449.0.0.0",
"_ga": "GA1.1.1167861038.1698747449",
"wisepops": "%7B%22csd%22%3A1%2C%22popups%22%3A%7B%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A99%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D",
"wisepops_visits": "%5B%222023-10-31T10%3A16%3A43.178Z%22%5D",
"wisepops_session": "%7B%22arrivalOnSite%22%3A%222023-10-31T10%3A16%3A43.178Z%22%2C%22mtime%22%3A1698747449168%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%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",
"_uetsid": "b239cc6077d611eeaab83f2f47c2a229",
"_uetvid": "b23a019077d611ee95d4a1ffbf4c148d",
"_pin_unauth": "dWlkPVlUUmhaRE0yT1dRdFpXRXpZUzAwTkRGakxXRmtNbUl0TW1FeVkyTTNPVFV4TkRJdw",
"_up": "1.2.1716056127.1698747450",
"_fbp": "fb.1.1698747450567.801236987",
"_tt_enable_cookie": "1",
"_ttp": "gqklM1LVE3nGzGdLVvg2tobFsVx",
"_ga_P2WLKWBNNW": "GS1.1.1698747449.1.0.1698748313.60.0.0",
"_gat_UA-2678252-1": "1",
"_px2": "eyJ1IjoiMWM2ZmNkZTAtNzdkNi0xMWVlLTkwZmMtOTkxZjk2YTFiMjcyIiwidiI6Ijk3MGU0MTcyLTc3ZDYtMTFlZS1hOWViLWQ5NGNiZjg5Y2E5MiIsInQiOjE2OTg3NDg2MTQxNDUsImgiOiJmNzRlZWYwNmI3NTU0OTMwYzdlYzQxZmU0Y2VmYjZhNDgzMDZhMWY4NzZhMWQ4NDI5YzgwZDg0ZTEzYzFiZWVhIn0="
}
cookies.update( # cookies = {
# {'_pxhd': '728b2d129b5a075513034298f8e2d4ce004425c1f307bd2baa8e9525fa6bb510:4290832e-77db-11ee-bdfb-76e73743688f', '_pxvid': '4290832e-77db-11ee-bdfb-76e73743688f', '_px2': 'eyJ1IjoiYjllMjlkNjEtNzA0MC0xMDMxLTk3ZjUtMjVlOTU0YzUxNGU5IiwidiI6IjQyOTA4MzJlLTc3ZGItMTFlZS1iZGZiLTc2ZTczNzQzNjg4ZiIsInQiOjE2OTg3NDk3MTE3OTksImgiOiIwZmZiOTUwNjRhODJiNzg4Yjg5YzQ1NDMzZThhMWQ5ZjQwNTY3NzcxNjU5MGY5Mjc0ZGNmYWIxY2MwN2RhMzZhIn0=', 'pxcts': '43453788-77db-11ee-a37b-78e6fe245189'} # "_gcl_au": "1.1.1938228348.1698808359",
# "_ga_XXXX": "GS1.1.1698808358.1.0.1698808358.0.0.0",
# "_ga": "GA1.2.710562005.1698808359",
# "_gid": "GA1.2.1404246996.1698808359",
# "_gat_UA-2678252-1": "1",
# "wisepops": "%7B%22csd%22%3A1%2C%22popups%22%3A%7B%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A66%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D",
# "wisepops_visits": "%5B%222023-11-01T03%3A12%3A38.539Z%22%5D",
# "wisepops_session": "%7B%22arrivalOnSite%22%3A%222023-11-01T03%3A12%3A38.539Z%22%2C%22mtime%22%3A1698808359003%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%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",
# "_uetsid": "835aeac0786411eeba1bbf0eac362321",
# "_uetvid": "835b16f0786411eea91589125ff51ffb",
# "_pxvid": "835d9018-7864-11ee-8a4c-b7359a3f130c",
# "pxcts": "835d9c74-7864-11ee-8a4c-0a056b567f7d",
# "_fbp": "fb.1.1698808397941.389590519",
# "_tt_enable_cookie": "1",
# "_ttp": "LkMVd7UMPqKBQTla-e3Ax5ijAm6",
# "_up": "1.2.1531375415.1698808398",
# "_pin_unauth": "dWlkPVpEUm1NekV3Wm1FdFpHVm1NUzAwTVRRd0xUbGlOamd0WVdObFpqYzRZekJpWW1FeQ",
# "ORA_FPC": "id=4986ac22-8ff9-4d19-ad31-66dd8163958e",
# "WTPERSIST": "",
# "_ga_P2WLKWBNNW": "GS1.1.1698808358.1.0.1698808402.16.0.0",
# "_px2": "eyJ1IjoiNjE3MmIwODEtNzA0MC0xMDMxLTljYTgtNDRlNjE5NGFkMDlhIiwidiI6IjgzNWQ5MDE4LTc4NjQtMTFlZS04YTRjLWI3MzU5YTNmMTMwYyIs"
# }
) # cookies.update(
# # {'_pxhd': '728b2d129b5a075513034298f8e2d4ce004425c1f307bd2baa8e9525fa6bb510:4290832e-77db-11ee-bdfb-76e73743688f', '_pxvid': '4290832e-77db-11ee-bdfb-76e73743688f', '_px2': 'eyJ1IjoiYjllMjlkNjEtNzA0MC0xMDMxLTk3ZjUtMjVlOTU0YzUxNGU5IiwidiI6IjQyOTA4MzJlLTc3ZGItMTFlZS1iZGZiLTc2ZTczNzQzNjg4ZiIsInQiOjE2OTg3NDk3MTE3OTksImgiOiIwZmZiOTUwNjRhODJiNzg4Yjg5YzQ1NDMzZThhMWQ5ZjQwNTY3NzcxNjU5MGY5Mjc0ZGNmYWIxY2MwN2RhMzZhIn0=', 'pxcts': '43453788-77db-11ee-a37b-78e6fe245189'}
#
# )
url = "https://booking.flyfrontier.com/Flight/InternalSelect" url = "https://booking.flyfrontier.com/Flight/InternalSelect"
params = { params = {
...@@ -62,7 +66,7 @@ params = { ...@@ -62,7 +66,7 @@ params = {
"mon": "true", "mon": "true",
"adt": "1" "adt": "1"
} }
response = session.get(url, headers=headers, cookies=cookies, params=params) response = session.get(url, headers=headers, params=params)
print(response.text) print(response.text)
print(response) print(response)
import random
import json
import time
t1 = int(time.time() * 1000)
t2 = t1 + random.randint(3, 12)
_uuid = "1db23de0-7863-11ee-bc18-3baabf3cbb42"
# "[{"t":"PX12095","d":{"PX11645":"https://www.flyfrontier.com/","PX12207":0,"PX12458":"MacIntel","PX11902":0,"PX11560":3781,"PX12248":3600,
# "PX11385":1698649702900,"PX12280":1698649702913,"PX11496":"1ce53d20-76f3-11ee-8971-a3e00c89b2ff","PX12564":null,"PX12565":-1,"PX11379":false}}]"
data = [{"t": "PX12095",
"d": {"PX11645": "https://www.flyfrontier.com/", "PX12207": 0, "PX12458": "MacIntel", "PX11902": 0,
"PX11560": random.randint(24846, 24846 * 2), "PX12248": 3600, "PX11385": t1, "PX12280": t2,
"PX11496": _uuid, "PX12564": None, "PX12565": -1,
"PX11379": False}}]
data_str = json.dumps(data, separators=(',', ':'))
print(data_str)
\ No newline at end of file
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