Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
px3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
px3
Commits
92dd977b
Commit
92dd977b
authored
Dec 28, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加环境提取
parent
4b360d8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
40 deletions
+45
-40
run.js
src/run.js
+45
-40
No files found.
src/run.js
View file @
92dd977b
import
log4js
from
'log4js'
import
log4js
from
'log4js'
import
qs
from
'qs'
import
{
genUuid
,
ie
,
randint
}
from
"./utils.js"
import
{
genPc
,
genUuid
,
ie
,
randint
}
from
"./utils.js"
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
{
encodePayload
}
from
'./encodepayload.js'
import
{
PxEnv
}
from
'./px.js'
import
{
PxEnv
}
from
'./px.js'
import
*
as
fs
from
"fs"
;
import
*
as
fs
from
"fs"
;
import
{
getPayload
}
from
"./all.js"
;
import
{
getPayload
}
from
"./all.js"
;
...
@@ -145,7 +143,7 @@ class PxBypass {
...
@@ -145,7 +143,7 @@ class PxBypass {
// body = this.updateBody(body);
// body = this.updateBody(body);
let
body
=
getPayload
(
this
.
uuid
,
this
.
vid
,
this
.
sid
,
this
.
px755
,
this
.
ts
,
this
.
cts
,
data
,
undefined
,
this
.
appId
,
this
.
tag
,
this
.
ft
)
let
body
=
getPayload
(
this
.
uuid
,
this
.
vid
,
this
.
sid
,
this
.
px755
,
this
.
ts
,
this
.
cts
,
data
,
undefined
,
this
.
appId
,
this
.
tag
,
this
.
ft
)
// this.log.info(body)
// this.log.info(body)
let
res
=
await
axios
.
post
(
this
.
tlsUrl
,
JSON
.
stringify
({
let
res
=
await
axios
.
post
(
this
.
tlsUrl
,
JSON
.
stringify
({
...
@@ -355,6 +353,8 @@ class PxBypass {
...
@@ -355,6 +353,8 @@ class PxBypass {
}
}
async
function
run
()
{
async
function
run
()
{
while
(
true
)
{
try
{
let
res
=
await
axios
.
get
(
'http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test'
)
let
res
=
await
axios
.
get
(
'http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test'
)
let
data
=
res
.
data
;
let
data
=
res
.
data
;
// if r.json()['status'] != 0:
// if r.json()['status'] != 0:
...
@@ -391,7 +391,7 @@ async function run() {
...
@@ -391,7 +391,7 @@ async function run() {
await
sleep
(
1000
)
await
sleep
(
1000
)
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
}
finally
{
}
finally
{
await
sleep
(
1000
)
await
sleep
(
1000
)
}
}
...
@@ -399,12 +399,17 @@ async function run() {
...
@@ -399,12 +399,17 @@ async function run() {
}
}
await
sleep
(
10000
)
await
sleep
(
10000
)
}
catch
(
e
)
{
console
.
log
(
e
)
}
finally
{
await
sleep
(
1000
)
}
}
// }
// }
}
}
while
(
true
){
run
();
run
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment