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
f8600c76
Commit
f8600c76
authored
Dec 24, 2023
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
2991dcbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
captcha.js
src/captcha.js
+18
-5
No files found.
src/captcha.js
View file @
f8600c76
...
...
@@ -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()
}
}
...
...
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