Commit f8600c76 authored by wangmingming's avatar wangmingming

111

parent 2991dcbb
......@@ -155,7 +155,7 @@ class PxBypass {
let body = getPayload(this.uuid, this.vid, this.sid, this.px755, this.ts, this.cts,
data, this.pxhd, this.appId,this.tag, this.ft, true)
data, this.pxhd, this.appId, this.tag, this.ft, true)
// this.log.info(body)
body.push(`seq=${this.seq}`)
body.push(`rsc=${this.rsc}`)
......@@ -282,7 +282,7 @@ class PxBypass {
}
async step1() {
this.log.info(`proxy ${this.prox}`)
// this.log.info(`proxy ${this.prox}`)
// this.log.info('setp1')
let t1 = new Date().getTime();
......@@ -403,7 +403,8 @@ class PxBypass {
}
async step4() {
this.performanceNow = parseInt(Date.now() - this.startTs)
// this.performanceNow = parseInt(Date.now() - this.startTs)
this.performanceNow = randint(10000, 11000)
this.px12280 = Date.now()
// let data = genPayload4(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid,
......@@ -418,6 +419,7 @@ class PxBypass {
this.pxenv.cap = true
let data = [this.pxenv.get_px11547(), this.pxenv.get_px12123(), this.pxenv.get_px561(), this.pxenv.get_px11782()
// , this.pxenv.get_px12419()
// , this.pxenv.get_px11782()
]
// let px11280 = Date.now();
// for (let i = 0; i < data.length; i++) {
......@@ -464,6 +466,7 @@ class PxBypass {
} else {
this.log.error('error', res.data.status_code)
}
return res.data.status_code
}
async init() {
......@@ -507,7 +510,7 @@ class PxBypass {
async function run() {
let px = new PxBypass()
await px.init()
// await px.init()
await px.step1()
await px.step2()
await px.sleep(1500)
......@@ -517,7 +520,17 @@ async function run() {
await px.step4()
// await px.sleep(1500)
await px.test()
let statusCode = await px.test()
if (statusCode === 403) {
// await px.step1()
// await px.step2()
// await px.sleep(1500)
// await px.step3()
// await px.sleep(8000)
//
// await px.step4()
}
}
......
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