Commit c6795c1a authored by wang's avatar wang

captcha

parent 495eadd8
...@@ -10,18 +10,18 @@ ...@@ -10,18 +10,18 @@
<body> <body>
<script> <script>
window._pxVid = ''; window._pxVid = '';
window._pxUuid = 'bdf12ccb-9712-11ee-81cf-b514cd7cdb99'; window._pxUuid = '6fa01e60-9997-11ee-ba04-19528ba2f4ae';
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=c&u=bdf12ccb-9712-11ee-81cf-b514cd7cdb99&v=&m=0'; script.src = '//captcha.perimeterx.net/PXVb73hTEg/captcha.js?a=c&u=6fa01e60-9997-11ee-ba04-19528ba2f4ae&v=&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=c&u=bdf12ccb-9712-11ee-81cf-b514cd7cdb99&v=&m=0'; script.src = 'https://captcha.px-cloud.net/PXVb73hTEg/captcha.js?a=c&u=6fa01e60-9997-11ee-ba04-19528ba2f4ae&v=&m=0';
script.onerror = window._pxDisplayErrorMessage; script.onerror = window._pxDisplayErrorMessage;
document.head.appendChild(script); document.head.appendChild(script);
}; };
......
...@@ -114,11 +114,11 @@ export function getPayload(uuid, vid, sid, ci, ts,cts, t) { ...@@ -114,11 +114,11 @@ export function getPayload(uuid, vid, sid, ci, ts,cts, t) {
for (var m = Vc(), M = 0; M < t["length"]; M++) { for (var m = Vc(), M = 0; M < t["length"]; M++) {
var g = t[M]; var g = t[M];
g["d"]["PX11379"] = false; g["d"]["PX11379"] = false;
m && (g["d"]["PX12307"] = m); // m && (g["d"]["PX12307"] = m);
g["d"]["PX12615"] = Bu; // g["d"]["PX12615"] = Bu;
vh && (g["d"]["PX11375"] = vh); // vh && (g["d"]["PX11375"] = vh);
var y = rl(); // var y = rl();
y && (g["d"]["PX11668"] = y, g["d"]["PX12348"] = sl()); // y && (g["d"]["PX11668"] = y, g["d"]["PX12348"] = sl());
} }
!function (t) { !function (t) {
t[0] && t[0]["d"] && ((t[0] && t[0]["d"])["PX11645"] = su); t[0] && t[0]["d"] && ((t[0] && t[0]["d"])["PX11645"] = su);
...@@ -475,7 +475,6 @@ var bl = function (t, e, ts = '') { ...@@ -475,7 +475,6 @@ var bl = function (t, e, ts = '') {
return Ve(q(e), 10); return Ve(q(e), 10);
}(); }();
var o = ht(i); var o = ht(i);
console.log('payload', o)
i = q(Ve(o, 50)); i = q(Ve(o, 50));
var c = e[yl]; var c = e[yl];
var f = function (t, e, n) { var f = function (t, e, n) {
......
...@@ -5,6 +5,7 @@ import axios from "axios"; ...@@ -5,6 +5,7 @@ import axios from "axios";
import {encodePayload} from './encodepayload.js' import {encodePayload} from './encodepayload.js'
import {PxEnv} from './px.js' import {PxEnv} from './px.js'
import * as fs from "fs"; import * as fs from "fs";
import {getPayload} from "./all.js";
log4js.configure({ log4js.configure({
...@@ -39,7 +40,7 @@ class PxBypass { ...@@ -39,7 +40,7 @@ class PxBypass {
prox = `http://user-uni001-region-us-sessid-${randint(1000, 5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600` prox = `http://user-uni001-region-us-sessid-${randint(1000, 5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600`
// prox = `http://uni00001_custom_zone_US_sid_${randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778` // prox = `http://uni00001_custom_zone_US_sid_${randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778`
// prox = `http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}` // prox = `http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}`
// prox = 'http://127.0.0.1:7890' // prox = 'http://127.0.0.1:8890'
// tlsUrl = 'http://127.0.0.1:58000/tls/forward' // tlsUrl = 'http://127.0.0.1:58000/tls/forward'
constructor() { constructor() {
...@@ -49,6 +50,7 @@ class PxBypass { ...@@ -49,6 +50,7 @@ class PxBypass {
env = JSON.parse(env); env = JSON.parse(env);
let keys = Object.keys(env) let keys = Object.keys(env)
let selectId = keys[randint(0, keys.length - 1)] let selectId = keys[randint(0, keys.length - 1)]
// selectId = 'd3e94c1cb84038031357a52f'
this.log.info('select env', selectId) this.log.info('select env', selectId)
this.env = env[selectId] this.env = env[selectId]
this.ua = this.env.navigatorparams.useragent this.ua = this.env.navigatorparams.useragent
...@@ -103,16 +105,9 @@ class PxBypass { ...@@ -103,16 +105,9 @@ class PxBypass {
"accept-language": "en-US,en;q=0.9", "accept-language": "en-US,en;q=0.9",
"cache-control": "no-cache", "cache-control": "no-cache",
"pragma": "no-cache", "pragma": "no-cache",
"sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"macOS\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"upgrade-insecure-requests": "1", "upgrade-insecure-requests": "1",
// "user-agent": this.ua, "user-agent": this.ua,
"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",
"cookie": cks "cookie": cks
} }
let res = await axios.post('http://ymx-lcc.unififi.com/header/add', JSON.stringify({ let res = await axios.post('http://ymx-lcc.unififi.com/header/add', JSON.stringify({
...@@ -129,44 +124,47 @@ class PxBypass { ...@@ -129,44 +124,47 @@ class PxBypass {
} }
async do_collector(data) { async do_collector(data) {
if (typeof data === 'object') { try {
data = JSON.stringify(data) // if (typeof data === 'object') {
// data = ht(data)
// }
// this.log.info(data)
// let payload = encodePayload(data, this.uuid, this.ts)
// let pc = genPc(data, `${this.uuid}:${this.tag}:${this.ft}`)
// let body = {
// "appId": this.appId,
// "tag": this.tag,
// "uuid": this.uuid,
// "ft": this.ft,
// "seq": this.seq,
// "en": "NTA",
// "pc": pc,
// "rsc": this.rsc,
// "payload": payload,
// }
// body = this.updateBody(body);
let body = getPayload(this.uuid, this.vid, this.sid, this.px755, this.ts, this.cts, data)
// this.log.info(body)
let res = await axios.post(this.tlsUrl, JSON.stringify({
url: this.pxUrl,
method: "POST",
// data: qs.stringify(body),
data: body.join('&'),
headers: this.pxHeaders,
allow_redirects: true,
debug: true,
proxy: this.prox,
id: (new Date().getTime()) + '',
}));
let inRes = JSON.parse(res.data.text)
// this.log.info(inRes)
this.parseRes(inRes)
} catch (err) {
console.error(err.data);
} }
// this.log.info(data)
let payload = encodePayload(data, this.uuid, this.ts)
let pc = genPc(data, `${this.uuid}:${this.tag}:${this.ft}`)
let body = {
"appId": this.appId,
"tag": this.tag,
"uuid": this.uuid,
"ft": this.ft,
"seq": this.seq,
"en": "NTA",
"pc": pc,
"rsc": this.rsc,
"payload": payload,
}
body = this.updateBody(body);
// this.log.info(body)
let res = await axios.post(this.tlsUrl, JSON.stringify({
url: this.pxUrl,
data: qs.stringify(body),
headers: this.pxHeaders,
allow_redirects: true,
debug: true,
proxy: this.prox,
}), {
timeout: 5000
});
let inRes = JSON.parse(res.data.text)
// this.log.info(inRes)
this.parseRes(inRes)
this.seq++;
this.rsc++;
}; };
...@@ -283,7 +281,7 @@ class PxBypass { ...@@ -283,7 +281,7 @@ class PxBypass {
} }
async step3() { async step3() {
this.performanceNow += randint(1000, 2000) this.performanceNow = randint(3000, 4000)
// let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2, // let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid, // this.str1, this.uuid,
// this.startTs, this.startTs2, this.performanceNow, this.px12280) // this.startTs, this.startTs2, this.performanceNow, this.px12280)
...@@ -364,7 +362,7 @@ async function run() { ...@@ -364,7 +362,7 @@ async function run() {
await px.step1() await px.step1()
// await px.test() // await px.test()
// await px.step2() await px.step2()
// await sleep(1500) // await sleep(1500)
...@@ -372,7 +370,7 @@ async function run() { ...@@ -372,7 +370,7 @@ async function run() {
if (px.check()) { if (px.check()) {
continue continue
} }
// await sleep(1000) await sleep(1000)
await px.step4() await px.step4()
if (px.check()) { if (px.check()) {
...@@ -380,9 +378,9 @@ async function run() { ...@@ -380,9 +378,9 @@ async function run() {
} }
// await sleep(1500) // await sleep(1500)
// await px.test() await px.test()
await px.add_headers() // await px.add_headers()
await sleep(1000) await sleep(1000)
} catch (e) { } catch (e) {
console.log(e) console.log(e)
......
...@@ -9,7 +9,13 @@ headers = {"authority": "booking.flyfrontier.com", ...@@ -9,7 +9,13 @@ headers = {"authority": "booking.flyfrontier.com",
"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": "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-US,en;q=0.9", "accept-language": "en-US,en;q=0.9",
"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",
"cookie": '_gcl_au=1.1.19136717.1701421425; _uetsid=8848d5e0902811ee86afbbbf17c51ed6; _uetvid=8848f420902811ee8161cf4462ff114d; _gid=GA1.2.1912190365.1701421426; _ga=GA1.1.1638578950.1701421426; _rdt_uuid=1701421425738.dd458a21-21bf-480c-969a-9bfc11c9aa48; wisepops_visits=%5B%222023-12-01T09%3A03%3A45.329Z%22%5D; pxcts=8901436c-9028-11ee-b437-0e393bfed68a; _pxvid=89013846-9028-11ee-b437-e84770752d96; _px2=eyJ1IjoiODc1ZGIxMjAtOTAyOC0xMWVlLTk0MDEtMTk3YzNlMTcxMzM0IiwidiI6Ijg5MDEzODQ2LTkwMjgtMTFlZS1iNDM3LWU4NDc3MDc1MmQ5NiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6ImY1MTNhZjAyYTVlYmZlODFjODFlNjk2YWEyNWM2OWJjNzVhNGE4Yzc3NTA4MWRlMWU5OTFiYTY2YzliNTRhMWUifQ==; _up=1.2.189366662.1701421429; _fbp=fb.1.1701421441538.52436412; _tt_enable_cookie=1; _ttp=l1Aeh5a0ZbtNcwEfGckRaa6atkS; _pin_unauth=dWlkPVpXSmxNV0ptTm1VdE1EQmhaaTAwWkdJNUxXSXhOemd0TVRKbU1EQmpZamd4TjJSbQ; ORA_FPC=id=10cc0c64-522d-4ed2-8a00-203101d0550c; WTPERSIST=; wisepops_session=%7B%22arrivalOnSite%22%3A%222023-12-01T09%3A03%3A45.329Z%22%2C%22mtime%22%3A1701421456739%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; wisepops=%7B%22csd%22%3A1%2C%22popups%22%3A%7B%22429858%22%3A%7B%22dc%22%3A1%2C%22d%22%3A1701421456739%2C%22cl%22%3A1%7D%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A83%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; _ga_P2WLKWBNNW=GS1.1.1701421425.1.0.1701421482.3.0.0' "cookie": '_pxvid=bdb471ca-9997-11ee-af3a-bd978ee09ba1; pxcts=bdb47dcd-9997-11ee-af3a-dd61ace0b9fc; _px2=eyJ1IjoiYmQzYjVlMDAtOTk5Ny0xMWVlLWEwM2MtNDk4NzU3ODQ4ZGJmIiwidiI6ImJkYjQ3MWNhLTk5OTctMTFlZS1hZjNhLWJkOTc4ZWUwOWJhMSIsInQiOjE3MDI0NTkwNTEyMjIsImgiOiJmMTIxNGQxYzI3YWQ5ZmJlN2M0ODMyNTc3ODNjZWY2ZDIxZjJjNWU2NjAyZjMzZWVlZWQzMjY4NDAwYjEyOWMwIn0='
} }
...@@ -49,10 +55,10 @@ prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrac ...@@ -49,10 +55,10 @@ prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrac
for i in range(20): for i in range(20):
# prox = 'http://127.0.0.1:8890' prox = 'http://127.0.0.1:8890'
# url = "http://httpbin.org/ip" # url = "http://httpbin.org/ip"
response = requests.post('http://52.52.23.116/tls/forward', # response = requests.post('http://52.52.23.116/tls/forward',
# response = requests.post('http://127.0.0.1:58000/tls/forward', response = requests.post('http://127.0.0.1:58000/tls/forward',
json=dict(url=url, method="GET", proxy=prox, headers=headers, debug=True, json=dict(url=url, method="GET", proxy=prox, headers=headers, debug=True,
allow_redirects=True allow_redirects=True
......
...@@ -13,7 +13,10 @@ prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrac ...@@ -13,7 +13,10 @@ prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrac
prox = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:12019' prox = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:12019'
cks = '_px2=eyJ1IjoiOGRjYjQ3NjAt1ODljYi011xMWVlLTkwMmUtODE4MTcxMjRjOTBlIiwidiI6IjhlOGIyMGMzLTg5Y2ItMTFlZS05YWI1LTAwMjc4Njk4ZmY1ZiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6Ijk4NjYzMWNkZDBmNTBjMWE5NjZjYjgwOGNlNzFjYTJkMWNkYzc2MjdjYTc4MTBlZDVhODdmN2FiMzYzOGU1OTgifQ==' cks = 'pxcts=703e9339-9997-11ee-93dd-00aad2ea56e5; _pxvid=703db0db-9997-11ee-93dd-c5ac7d2bc76f; _px2=eyJ1IjoiNmZhMDFlNjAtOTk5Ny0xMWVlLWJhMDQtMTk1MjhiYTJmNGFlIiwidiI6IjcwM2RiMGRiLTk5OTctMTFlZS05M2RkLWM1YWM3ZDJiYzc2ZiIsInQiOjE3MDI0NTg5MjE2NjksImgiOiIzOGE5MTY0NDYwYTI0YWJlMzQ1ZDBlYTJjZDQyMTY5NTNmOTZkZWI3ZDdjOTQzNWE1ZTBlN2QwOTgyZDYyMTUwIn0='
# cks = '_pxvid=568dad46-943f-11ee-97cd-fc5e04cd8e29; pxcts=568dbb9e-943f-11ee-97cd-a3273e57225d; _px2=eyJ1IjoiNTRhNDJjODAtOTQzZi0xMWVlLWJjYjUtYTkwODI5MTk5MTNiIiwidiI6IjU2OGRhZDQ2LTk0M2YtMTFlZS05N2NkLWZjNWUwNGNkOGUyOSIsInQiOjE3MDE4NzEzMjg3MjEsImgiOiIxYzNlNmVhNmI5NDQ4ZjE1YjA2MDA1OGU5MDJhN2UyMTJmMzk2Yzc5YmMwMWM0NmUxYWJlZDVmNzU2ZWI4NjQ4In0=' # cks = '_pxvid=568dad46-943f-11ee-97cd-fc5e04cd8e29; pxcts=568dbb9e-943f-11ee-97cd-a3273e57225d; _px2=eyJ1IjoiNTRhNDJjODAtOTQzZi0xMWVlLWJjYjUtYTkwODI5MTk5MTNiIiwidiI6IjU2OGRhZDQ2LTk0M2YtMTFlZS05N2NkLWZjNWUwNGNkOGUyOSIsInQiOjE3MDE4NzEzMjg3MjEsImgiOiIxYzNlNmVhNmI5NDQ4ZjE1YjA2MDA1OGU5MDJhN2UyMTJmMzk2Yzc5YmMwMWM0NmUxYWJlZDVmNzU2ZWI4NjQ4In0='
...@@ -22,7 +25,7 @@ cks = '_px2=eyJ1IjoiOGRjYjQ3NjAt1ODljYi011xMWVlLTkwMmUtODE4MTcxMjRjOTBlIiwidiI6I ...@@ -22,7 +25,7 @@ cks = '_px2=eyJ1IjoiOGRjYjQ3NjAt1ODljYi011xMWVlLTkwMmUtODE4MTcxMjRjOTBlIiwidiI6I
url = 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-11-30&ADT=1&umnr=false&mon=true' url = 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-12-30&ADT=1&umnr=false&mon=true'
response = requests.post('http://52.52.23.116/tls/forward', response = requests.post('http://52.52.23.116/tls/forward',
json=dict(url=url, headers={ json=dict(url=url, headers={
"authority": "booking.flyfrontier.com", "authority": "booking.flyfrontier.com",
......
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