Commit a70c4792 authored by wang's avatar wang

111

parent 6a94e20a
...@@ -39,8 +39,8 @@ class PxBypass { ...@@ -39,8 +39,8 @@ 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://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:8890' // prox = 'http://127.0.0.1:7890'
tlsUrl = 'http://127.0.0.1:58000/tls/forward' // tlsUrl = 'http://127.0.0.1:58000/tls/forward'
// tlsUrl = 'http://127.0.0.1:3000/tls/forward' // tlsUrl = 'http://127.0.0.1:3000/tls/forward'
...@@ -258,14 +258,16 @@ class PxBypass { ...@@ -258,14 +258,16 @@ class PxBypass {
} }
parseRes(inRes) { parseRes(inRes) {
let result = void 0;
if (inRes['ob']) { if (inRes['ob']) {
let cks = ie(atob(inRes.ob), this.version()).split('~~~~') let cks = ie(atob(inRes.ob), this.version()).split('~~~~')
this.log.info(cks.length, JSON.stringify(cks, null, '\t')) this.log.info(cks.length, JSON.stringify(cks, null, '\t'))
for (var ck of cks) { for (var ck of cks) {
let tmp = ck.split('|'); let tmp = ck.split('|');
if (tmp[0] === 'o11o111o') { if (tmp[0] === 'o11o1ooo') {
this.log.fatal('result', tmp[1] === '0') this.log.fatal('result', tmp[1] === '0')
result = tmp[1] === '0'
} }
if (tmp[0] === 'o11o1o11') { if (tmp[0] === 'o11o1o11') {
this.ts = tmp[1] this.ts = tmp[1]
...@@ -325,6 +327,10 @@ class PxBypass { ...@@ -325,6 +327,10 @@ class PxBypass {
} }
} }
if (result){
this.result = result;
}
} }
version() { version() {
...@@ -405,7 +411,7 @@ class PxBypass { ...@@ -405,7 +411,7 @@ class PxBypass {
id: "2" id: "2"
})); }));
// let inRes = JSON.parse(res.data) // let inRes = JSON.parse(res.data)
this.log.info(res.data) // this.log.info(res.data)
// this.parseRes(inRes) // this.parseRes(inRes)
this.seq++; this.seq++;
...@@ -566,8 +572,7 @@ async function run() { ...@@ -566,8 +572,7 @@ async function run() {
await px.step4() await px.step4()
// await px.sleep(1500) // await px.sleep(1500)
let statusCode = await px.test() if (!px.result) {
if (statusCode === 403) {
await px.step1() await px.step1()
await px.step2() await px.step2()
await px.sleep(1500) await px.sleep(1500)
...@@ -577,6 +582,8 @@ async function run() { ...@@ -577,6 +582,8 @@ async function run() {
await px.step4() await px.step4()
} }
let statusCode = await px.test()
} }
......
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