Commit 6a94e20a authored by wang's avatar wang

111

parent 29d22d8f
import log4js from 'log4js'
import qs from 'qs'
import {genPc, genUuid, ie, randint, ht, se, Ol, bl} from "./utils.js"
import {bl, genPc, genUuid, ht, ie, Ol, randint, se} from "./utils.js"
import axios from "axios";
import {encodePayload} from './encodepayload.js'
import {PxEnv} from './px.js'
// import {getPayload} from "./all.js";
import * as fs from "fs";
import * as os from "os";
process.env.TZ = 'Asia/Shanghai';
......@@ -44,9 +45,10 @@ class PxBypass {
// tlsUrl = 'http://127.0.0.1:3000/tls/forward'
constructor(options) {
// if (os.platform() === 'linux') {
// this.tlsUrl = 'http://192.168.50.235:58000/tls/forward'
// }
if (os.platform() === 'linux') {
this.tlsUrl = 'http://192.168.50.235:58000/tls/forward'
this.tlsUrl = 'http://192.168.101.34:58000/tls/forward'
}
this.log = log4js.getLogger('px')
let env = fs.readFileSync('./env.json', 'utf-8')
......@@ -217,7 +219,7 @@ class PxBypass {
pc && E["push"]('pc=' + pc);
var O = this.sid;
var U = Ol(this.ts);
(O || U) && E["push"]('sid=' + (O || sid) + U);
(O || U) && E["push"]('sid=' + (O || this.sid) + U);
var I = [];
this.vid && E["push"]('vid=' + this.vid);
// mu && E["push"]('jcs=' + mu);
......@@ -566,13 +568,13 @@ async function run() {
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()
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