Commit b97023b5 authored by wang's avatar wang

nk test

parent 9abd6014
......@@ -28,7 +28,7 @@ async function sleep(ms) {
class PxBypass {
tag = "v8.9.0"
ft = "324"
appId = "PXVb73hTEg"
appId = "PXkp4CLSb5"
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'
ua = 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1'
......@@ -56,15 +56,16 @@ class PxBypass {
this.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://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}`
// this.prox = 'http://127.0.0.1:8890'
this.prox = 'http://127.0.0.1:8890'
this.tlsUrl = 'http://52.52.23.116/tls/forward'
this.tlsUrl = 'http://127.0.0.1:58000/tls/forward'
this.log.info('ua', this.ua)
this.log.info(`proxy ${this.prox}`)
this.pxHeaders = {
"authority": "collector-pxvb73hteg.px-cloud.net",
"authority": "collector-PXkp4CLSb5.px-cloud.net",
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"cache-control": "no-cache",
......@@ -75,7 +76,7 @@ class PxBypass {
}
this.url = 'https://www.flyfrontier.com/'
this.url = 'https://www.spirit.com/'
this.log.level = 'debug'
this.uuid = '';
this.ts = '';
......@@ -104,7 +105,7 @@ class PxBypass {
let cks = Object.keys(this.cookies).map((v, k) => `${v}=${this.cookies[v]}`).join('; ')
this.log.info('cookie', cks)
let headers = {
"Host": "booking.flyfrontier.com",
"Host": "www.spirit.com",
"upgrade-insecure-requests": "1",
// "user-agent": this.ua,
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
......@@ -383,9 +384,9 @@ class PxBypass {
let cks = Object.keys(this.cookies).map((v, k) => `${v}=${this.cookies[v]}`).join('; ')
this.log.info('cookie', cks)
let res = await axios.post(this.tlsUrl, JSON.stringify({
url: 'https://booking.flyfrontier.com/Booking/Retrieve?&ln=Gomez%20Carrillo&rl=AENQ7Q',
url: 'https://www.spirit.com/Booking/Retrieve?&ln=Gomez%20Carrillo&rl=AENQ7Q',
headers: {
"Host": "booking.flyfrontier.com",
"Host": "www.spirit.com",
"upgrade-insecure-requests": "1",
// "user-agent": this.ua,
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
......
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