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
b3674779
Commit
b3674779
authored
Dec 01, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志管理
parent
8f3dd54e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
25 deletions
+51
-25
px.js
src/px.js
+18
-12
pxenvutils.js
src/pxenvutils.js
+11
-0
run.js
src/run.js
+16
-13
utils.js
src/utils.js
+6
-0
No files found.
src/px.js
View file @
b3674779
import
{
path
}
from
'ghost-cursor'
import
{
path
}
from
'ghost-cursor'
import
{
randint
,
randomFloat
}
from
'./utils.js'
import
{
randint
,
randomFloat
}
from
'./utils.js'
import
{
getPX12573
,
createPx2
}
from
'./pxenvutils.js'
import
{
getPX12573
,
createPx2
,
getNoPX
}
from
'./pxenvutils.js'
import
md5
from
"md5"
;
import
md5
from
"md5"
;
class
PxEnv
{
export
class
PxEnv
{
constructor
(
env
,
url
,
sid
,
vid
,
ts
,
num1
,
num2
,
str1
,
uuid
,
startTs
,
startTs2
,
performanceNow
,
px11280
,
constructor
(
env
,
url
,
sid
,
vid
,
ts
,
num1
,
num2
,
str1
,
uuid
,
startTs
,
startTs2
,
performanceNow
,
px11280
,
px755
=
''
,
token
=
''
,
token2
=
''
,
px755
=
''
,
token
=
''
,
token2
=
''
,
hash
=
''
,
hash2
=
''
,
hashv
=
''
)
{
hash
=
''
,
hash2
=
''
,
hashv
=
''
)
{
...
@@ -4756,7 +4756,10 @@ class PxEnv {
...
@@ -4756,7 +4756,10 @@ class PxEnv {
}
}
memory
()
{
this
.
memory_data
.
usedJSHeapSize
+=
randint
(
1903195
,
2903195
)
return
this
.
memory_data
}
createMouse
()
{
createMouse
()
{
let
paths
=
path
(
let
paths
=
path
(
{
{
...
@@ -4787,15 +4790,15 @@ class PxEnv {
...
@@ -4787,15 +4790,15 @@ class PxEnv {
// "75602>44073>?2261175": "46531=77340=<1152246",
// "75602>44073>?2261175": "46531=77340=<1152246",
"PX12454"
:
parseInt
(
this
.
num1
),
// 0III0II0
"PX12454"
:
parseInt
(
this
.
num1
),
// 0III0II0
"PX11701"
:
this
.
num2
.
substring
(
0
,
80
),
// I00III
"PX11701"
:
this
.
num2
.
substring
(
0
,
80
),
// I00III
"PX11529"
:
this
.
memory
.
usedJSHeapSize
,
// usedJSHeapSize
"PX11529"
:
this
.
memory
()
.
usedJSHeapSize
,
// usedJSHeapSize
// "PX11529": 74208842,// usedJSHeapSize
// "PX11529": 74208842,// usedJSHeapSize
"PX11555"
:
this
.
memory
.
jsHeapSizeLimit
,
// jsHeapSizeLimit
"PX11555"
:
this
.
memory
()
.
jsHeapSizeLimit
,
// jsHeapSizeLimit
"PX11833"
:
this
.
memory
.
totalJSHeapSize
,
// totalJSHeapSize
"PX11833"
:
this
.
memory
()
.
totalJSHeapSize
,
// totalJSHeapSize
// "PX11833": 80878510,// totalJSHeapSize
// "PX11833": 80878510,// totalJSHeapSize
// "PX11840": "Fri Aug 25 2023 14:20:11 GMT+0800 (中国标准时间)",
// "PX11840": "Fri Aug 25 2023 14:20:11 GMT+0800 (中国标准时间)",
"PX11840"
:
new
Date
()
+
''
,
"PX11840"
:
new
Date
()
+
''
,
// "PX12573": "e29b74b1", // parseInt(0III0III/10)
// "PX12573": "e29b74b1", // parseInt(0III0III/10)
"PX12573"
:
getPX12573
(
Math
.
floor
(
parseInt
(
ts
)
/
1
e3
),
this
.
vid
,
this
.
uuid
),
// parseInt(0III0III/10)
"PX12573"
:
getPX12573
(
Math
.
floor
(
parseInt
(
t
his
.
t
s
)
/
1
e3
),
this
.
vid
,
this
.
uuid
),
// parseInt(0III0III/10)
// "PX11804": "36f924a304c56d1ae9971c767ca7f510", //uuid 转换
// "PX11804": "36f924a304c56d1ae9971c767ca7f510", //uuid 转换
"PX11804"
:
createPx2
(
this
.
ua
,
this
.
uuid
),
//uuid 转换
"PX11804"
:
createPx2
(
this
.
ua
,
this
.
uuid
),
//uuid 转换
"PX12118"
:
this
.
str1
,
// 第一步返回 0ll0ll
"PX12118"
:
this
.
str1
,
// 第一步返回 0ll0ll
...
@@ -5023,7 +5026,7 @@ class PxEnv {
...
@@ -5023,7 +5026,7 @@ class PxEnv {
// "brand": "Chromium",
// "brand": "Chromium",
// "version": "117"
// "version": "117"
// }],
// }],
"PX12508"
:
this
.
createPX12508
()
,
"PX12508"
:
this
.
ENV
.
useragentdata
.
highvalue
.
brands
,
"PX12549"
:
true
,
"PX12549"
:
true
,
"PX11539"
:
"831efc5e"
,
//Me(console.log)
"PX11539"
:
"831efc5e"
,
//Me(console.log)
"PX11528"
:
""
,
// Object["getOwnPropertyDescriptor"](HTMLDocument["prototype"], "cookie")["get"]
"PX11528"
:
""
,
// Object["getOwnPropertyDescriptor"](HTMLDocument["prototype"], "cookie")["get"]
...
@@ -5117,11 +5120,14 @@ class PxEnv {
...
@@ -5117,11 +5120,14 @@ class PxEnv {
// "PX11379": false
// "PX11379": false
}
}
let
noPX
=
getNoPX
(
data
)
let
noPX
=
getNoPX
(
data
[
'PX11701'
],
data
[
'PX11431'
]
)
data
[
noPX
[
0
]]
=
noPX
[
1
]
data
[
noPX
[
0
]]
=
noPX
[
1
]
return
data
return
{
"t"
:
"PX11590"
,
"d"
:
data
}
}
}
}
}
let
env
=
new
PxEnv
()
// let env = new PxEnv()
console
.
log
(
env
.
mouses
)
// console.log(env.mouses)
\ No newline at end of file
\ No newline at end of file
src/pxenvutils.js
View file @
b3674779
...
@@ -83,4 +83,15 @@ export function getPX12573(a, b, c) {
...
@@ -83,4 +83,15 @@ export function getPX12573(a, b, c) {
export
function
createPx2
(
t
,
e
)
{
export
function
createPx2
(
t
,
e
)
{
return
j
(
N
(
t
,
e
))
return
j
(
N
(
t
,
e
))
}
export
function
getNoPX
(
px11701
,
px11431
)
{
function
$C_kKK
(
t
,
e
)
{
for
(
var
n
=
""
,
r
=
0
;
r
<
t
.
length
;
r
++
)
n
+=
String
.
fromCharCode
(
e
^
t
.
charCodeAt
(
r
));
return
n
;
}
let
res
=
[
$C_kKK
(
px11701
,
px11431
%
10
+
2
),
$C_kKK
(
px11701
,
px11431
%
10
+
1
)]
return
res
;
}
}
\ No newline at end of file
src/run.js
View file @
b3674779
import
log4js
from
'log4js'
import
log4js
from
'log4js'
import
qs
from
'qs'
import
qs
from
'qs'
import
{
genPayload2
,
genPayload4
}
from
"./step2.js"
import
{
genPayload2
,
genPayload4
}
from
"./step2.js"
import
{
genPc
,
genUuid
}
from
"./utils.js"
import
{
genPc
,
genUuid
,
randint
,
ie
}
from
"./utils.js"
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
{
encodePayload
}
from
'./encodepayload.js'
import
{
encodePayload
}
from
'./encodepayload.js'
import
{
PxEnv
}
from
'./px.js'
const
ie
=
(
t
,
e
)
=>
{
for
(
var
n
=
''
,
r
=
0
;
r
<
t
.
length
;
r
++
)
// console.log(e, t.charCodeAt(r), e ^ t.charCodeAt(r), String.fromCharCode(e ^ t.charCodeAt(r)))
n
+=
String
.
fromCharCode
(
e
^
t
.
charCodeAt
(
r
))
return
n
}
function
randint
(
a
,
b
)
{
return
Math
.
floor
(
Math
.
random
()
*
(
b
-
a
+
1
)
+
a
);
}
log4js
.
configure
({
log4js
.
configure
({
...
@@ -81,6 +76,8 @@ class PxBypass {
...
@@ -81,6 +76,8 @@ class PxBypass {
this
.
cookies
=
{}
this
.
cookies
=
{}
}
}
async
sleep
(
ms
)
{
async
sleep
(
ms
)
{
...
@@ -250,6 +247,10 @@ class PxBypass {
...
@@ -250,6 +247,10 @@ class PxBypass {
}]
}]
let
res
=
await
this
.
do_collector
(
data
)
let
res
=
await
this
.
do_collector
(
data
)
this
.
seq
++
;
this
.
seq
++
;
this
.
pxenv
=
new
PxEnv
(
''
,
this
.
url
,
this
.
sid
,
this
.
vid
,
this
.
ts
,
this
.
num1
,
this
.
num2
,
this
.
str1
,
this
.
uuid
,
this
.
startTs
,
this
.
startTs2
,
this
.
performanceNow
,
this
.
px12280
)
}
}
...
@@ -263,9 +264,10 @@ class PxBypass {
...
@@ -263,9 +264,10 @@ class PxBypass {
async
step3
()
{
async
step3
()
{
this
.
performanceNow
+=
randint
(
1000
,
2000
)
this
.
performanceNow
+=
randint
(
1000
,
2000
)
let
data
=
genPayload2
(
this
.
url
,
this
.
sid
,
this
.
vid
,
this
.
ts
,
this
.
num1
,
this
.
num2
,
// let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
this
.
str1
,
this
.
uuid
,
// this.str1, this.uuid,
this
.
startTs
,
this
.
startTs2
,
this
.
performanceNow
,
this
.
px12280
)
// this.startTs, this.startTs2, this.performanceNow, this.px12280)
let
data
=
[
this
.
pxenv
.
get_px11590
()]
let
res
=
await
this
.
do_collector
(
data
)
let
res
=
await
this
.
do_collector
(
data
)
}
}
...
@@ -320,6 +322,7 @@ class PxBypass {
...
@@ -320,6 +322,7 @@ class PxBypass {
async
function
run
()
{
async
function
run
()
{
let
px
=
new
PxBypass
()
let
px
=
new
PxBypass
()
await
px
.
step1
()
await
px
.
step1
()
await
px
.
step2
()
await
px
.
step2
()
await
px
.
sleep
(
1500
)
await
px
.
sleep
(
1500
)
...
...
src/utils.js
View file @
b3674779
...
@@ -167,7 +167,13 @@ export function randint(a, b) {
...
@@ -167,7 +167,13 @@ export function randint(a, b) {
export
function
randomFloat
(
a
,
b
)
{
export
function
randomFloat
(
a
,
b
)
{
return
Math
.
random
()
*
(
b
-
a
)
+
a
;
return
Math
.
random
()
*
(
b
-
a
)
+
a
;
}
}
export
function
ie
(
t
,
e
){
for
(
var
n
=
''
,
r
=
0
;
r
<
t
.
length
;
r
++
)
// console.log(e, t.charCodeAt(r), e ^ t.charCodeAt(r), String.fromCharCode(e ^ t.charCodeAt(r)))
n
+=
String
.
fromCharCode
(
e
^
t
.
charCodeAt
(
r
))
return
n
}
export
function
genUuid
(
t
,
e
,
n
,
r
)
{
export
function
genUuid
(
t
,
e
,
n
,
r
)
{
function
l
(
t
)
{
function
l
(
t
)
{
return
l
=
"function"
==
typeof
Symbol
&&
"symbol"
==
typeof
Symbol
.
iterator
?
function
(
t
)
{
return
l
=
"function"
==
typeof
Symbol
&&
"symbol"
==
typeof
Symbol
.
iterator
?
function
(
t
)
{
...
...
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