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
6a94e20a
Commit
6a94e20a
authored
Jan 03, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
29d22d8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
captcha.js
src/captcha.js
+14
-12
No files found.
src/captcha.js
View file @
6a94e20a
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
()
}
}
...
...
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