Commit 2febfac9 authored by wang's avatar wang

收集环境

parent 6d7c7125
......@@ -160,7 +160,12 @@ class PxBypass {
this.seq = 0
this.rsc = 1;
this.cookies = {}
this.cookies = {
'ASP.NET_SessionId': 'v3imqkdyljku5ktusextfbuc',
'__RequestVerificationToken': 'AJeXz3uOWbbEVS6QfoI7oCycnodOj5yimDS32fQzhMDMsW2uvCV94tqzuCnt23HTuyhOei5BxWlYeBvzHwfKg1rU0IxUAMAuy-XJMLBHZ3hvxSR4uLFQ-BrGm7936V1kwwMQ8w2',
'dotrez': '!1ehoAlgbw+nuqY5eETst66jrHkkuv1u2tg2HmfrAh2sxsylFHzozSYCNgr0OuHsw4JSoNinDxdZVRA==',
'dtCookie': 'v_4_srv_1_sn_9C28C11FEFD474DB1947279D5FC76CC5_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_1_rcs-3Acss_0',
}
}
......@@ -663,12 +668,12 @@ class PxBypass {
random_tls: true,
}));
if (res.data.status_code === 200) {
// console.log(res.data.text)
this.log.warn('success', res.data.status_code, res.data.text.includes('FlightData'), this.ua)
} else {
this.log.error('error', res.data.status_code)
}
// if (res.data.status_code === 200) {
// // console.log(res.data.text)
// this.log.warn('success', res.data.status_code, res.data.text.includes('FlightData'), this.ua)
// } else {
// this.log.error('error', res.data.status_code)
// }
await this.add_headers(headers)
}
......@@ -696,7 +701,7 @@ class PxBypass {
async init() {
this.log.info("init")
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',
url: 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2024-07-30&ADT=1&umnr=false&mon=true',
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",
......@@ -706,7 +711,7 @@ class PxBypass {
"upgrade-insecure-requests": "1",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "same-origin",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"priority": "u=1",
"te": "trailers"
......@@ -1078,9 +1083,9 @@ async function run() {
for (let i = 0; i < 10; i++) {
try {
let px = new PxBypass(true)
let px = new PxBypass(false)
// await px.init()
await px.init()
await px.initMongo()
await px.initMongo2()
......@@ -1090,7 +1095,7 @@ 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())
......
......@@ -10,9 +10,11 @@ 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 = '_px2=eyJ1IjoiNjgxZWZiMjAtMzE0NS0xMWVmLTljZTMtM2RkYWExNjUxMjdkIiwidiI6IjY4N2ExYjUyLTMxNDUtMTFlZi1hMDg0LTRhZTJiODZkNzlmMiIsInQiOjE3MTkxMzYyNzc3OTYsImgiOiJhZmQzOWQ2ZDhlZGFkYzkyMDk3M2VmOTI3OTMxM2E4OWZhNDY4MjZmZDc3YzFmY2VhNDJlYTZlMGUxMzYwYmJiIn0=; pxcts=687a2ba4-3145-11ef-a084-acc2414a941d; _pxvid=687a1b52-3145-11ef-a084-4ae2b86d79f2'
cks = 'ASP.NET_SessionId=xufdp010hhdtileqm0uom34u; __RequestVerificationToken=vPZvmQO5IWFtKv_vOwV872WoB9Vt1v9kK1fHpu72eGWXZnBk5KjPdy-oNDEzWAidn8txWQ4qFisIFn4OsRwZfvG7qX9uT59brrPK8xHjXXXsJZ6H3nEADmWBcGvj7Jkf7-qSIQ2; dotrez=!np9e/opo1nqnTrUuf6ZSo6dUbzw/bunc6oaKRrE+Jucgydd2AKbnEkYWWRXKDX1HzMN7SAf8Gy/bpw==; dtCookie=v_4_srv_1_sn_B5225BA9FC7D49F44DBEA20EC8657AF2_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_0_rcs-3Acss_0; _pxhd=15d7042ca98f4fb2f1987cb85346e4cb2c34774089bc1ccdedc8b2d4662989d8:0390d252-31da-11ef-bf66-14cb58e5503a; _px2=eyJ1IjoiMWM4MGY2NjAtMzFkYS0xMWVmLThkZDItYWI4ZjVkZWZhZGU4IiwidiI6IjFjYjU3Yjg2LTMxZGEtMTFlZi04NWNkLWY1MmRmMGY0YjgyZSIsInQiOjE3MTkyMDAxNDcxNzksImgiOiJmYzU0YjMzYjJkOTBhYjlhZjViNmUyZjBjZTgwYzAwODgwMTc2YmExNjg1ZWRkOWM1NzIzYmQ2MWU3ZmNiNjFiIn0=; pxcts=1cb58b55-31da-11ef-85cd-0d4099d5c062; _pxvid=1cb57b86-31da-11ef-85cd-f52df0f4b82e'
# cks += '; __RequestVerificationToken=TJeXz3uOWbbEVS6QfoI7oCycnodOj5yimDS32fQzhMDMsW2uvCV94tqzuCnt23HTuyhOei5BxWlYeBvzHwfKg1rU0IxUAMAuy-XJMLBHZ3hvxSR4uLFQ-BrGm7936V1kwwMQ8w2'
kccs = {
'ASP.NET_SessionId': 'v3imqkdyljku5ktusextfbuc',
'__RequestVerificationToken': 'TJeXz3uOWbbEVS6QfoI7oCycnodOj5yimDS32fQzhMDMsW2uvCV94tqzuCnt23HTuyhOei5BxWlYeBvzHwfKg1rU0IxUAMAuy-XJMLBHZ3hvxSR4uLFQ-BrGm7936V1kwwMQ8w2',
......@@ -22,9 +24,9 @@ kccs = {
'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()])
# 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)}'
......@@ -32,15 +34,14 @@ prox = 'http://user-uni001-region-us-sessid-4909-sesstime-5-keep-true:q39CEBTs5A
# prox = 'http://74.48.159.194:33080'
# prox = 'http://uni00002_custom_zone_US2_sid_4524195_time_5:FdkiGHty9a@us.ipwo.net:7878'
# print(prox)
prox = 'http://uni00002_custom_zone_US2_sid_4428759_time_5:FdkiGHty9a@us.ipwo.net:7878'
# prox = 'http://uni00002_custom_zone_US2_sid_4428759_time_5:FdkiGHty9a@us.ipwo.net:7878'
for i in range(20):
# 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://52.52.23.116/tls/forward',
# response = requests.post('http://lcc.unififi.com/tls/forward',
response = session.post('http://127.0.0.1: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={
......@@ -62,7 +63,7 @@ for i in range(20):
"sec-fetch-site": "same-site",
"cookie": cks,
},
},
'allow_redirects': True,
'debug': True,
'method': "GET",
......
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