Commit d8bf9c4b authored by wang's avatar wang

f9 验票

parent b9be9926
......@@ -93,7 +93,7 @@ class PxBypass {
}
async add_headers() {
async add_headers(token) {
// this.prox = `http://user-uni001-region-us-sessid-${randint(1000, 5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600`
// this.prox = `http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}`
let cks = Object.keys(this.cookies).map((v, k) => `${v}=${this.cookies[v]}`).join('; ')
......@@ -110,6 +110,7 @@ class PxBypass {
"sec-fetch-user": "?1",
"sec-fetch-dest": "document",
"accept-language": "en-US,en;q=0.9,en-GB;q=0.8,en-GB-oxendict;q=0.7",
'Authorization': 'Bearer '+ token,
"cookie": cks
}
let res = await axios.post('http://ymx-lcc.unififi.com/header/add', JSON.stringify({
......@@ -433,10 +434,12 @@ class PxBypass {
random_tls: true,
}));
if (res.data.status_code === 200) {
if (res.data.status_code === 201) {
// console.log(res.data.text)
this.log.warn('success', res.data.status_code, res.data.text.includes('FlightData'))
await this.add_headers()
this.log.warn('success', res.data.status_code, res.data.text)
let token =JSON.parse(res.data.text).data.token
await this.add_headers(token)
} else {
this.log.error('error', res.data.status_code)
}
......
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