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
8f4c8ab9
Commit
8f4c8ab9
authored
Jun 20, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收集环境
parent
64aebf22
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22721 additions
and
67 deletions
+22721
-67
mouse.js
collect_env/templates/mouse.js
+4
-0
f91.js
src/f91.js
+61
-2
test.js
src/test.js
+22656
-65
No files found.
collect_env/templates/mouse.js
View file @
8f4c8ab9
...
...
@@ -496,6 +496,10 @@ try {
}
var
d2
;
try
{
function
bl
(
t
,
e
)
{
var
n
=
document
.
createElement
(
"canvas"
);
return
n
.
width
=
t
||
2
e3
,
n
.
height
=
e
||
200
,
n
.
style
.
display
=
"inline"
,
n
;
}
var
r
=
bl
(
650
,
12
);
if
(
r
)
{
var
a
=
Al
(
r
);
...
...
src/f91.js
View file @
8f4c8ab9
...
...
@@ -4874,6 +4874,62 @@ class PxBypass {
this
.
prox
=
proxyRes
.
data
.
url
;
this
.
log
.
info
(
`proxy
${
this
.
prox
}
`
)
}
async
initMongo2
()
{
this
.
log
.
info
(
"init mongo 获取环境数据"
)
const
database
=
client
.
db
(
"env"
);
const
movies
=
database
.
collection
(
"px_env"
);
// Query for a movie that has the title 'The Room'
const
query
=
{
// 'env.funcs': {$ne: null},
// 'env.navigatorparams.platform': 'MacIntel',
// // 'env.navigatorparams.platform': 'Win32',
// "env.navigatorparams.vendor": "Google Inc.",
// // 'env.useragentdata.highvalue.uafullversion':{$ne:null},
// 'env.useragentdata.highvalue.uafullversion': {$ne: ""}
};
// Execute query
const
movie
=
await
movies
.
aggregate
([
{
$match
:
query
},
// {
// $project: {
// 'env.windowparams': 1,
// 'env.screenparams': 1,
// 'env.navigatorparams': 1,
// 'env.featurepolicy': 1,
// 'env.plugins': 1,
// 'env.mimetypes': 1,
// 'env.glres': 1,
// 'env.jpg': 1,
// 'env.jpg2': 1,
// 'env.useragentdata': 1,
// 'env.consoleprops': 1,
// 'env.webglprops': 1,
// 'env.windowprops': 1,
// 'env.locationprops': 1,
// 'env.mathprops': 1,
// 'env.funcs': 1,
// 'env.funcs2': 1,
// 'env.documentfunc': 1,
// 'env.bodyfunc': 1,
// 'env.navigatorfunc': 1
// }
// },
{
$sample
:
{
size
:
1
}}
])
let
res
=
await
movie
.
toArray
()
this
.
env2
=
res
[
0
]
this
.
envid2
=
res
[
0
].
_id
.
toString
()
// this.env = ENVS[keys[randint(0, keys.length - 1)]]
// this.ua = this.env.navigatorparams.useragent
this
.
ua
=
this
.
env2
.
px11590
.
PX11754
;
this
.
log
.
info
(
'ua'
,
this
.
ua
)
}
async
add_headers
(
headers
)
{
...
...
@@ -5144,7 +5200,9 @@ class PxBypass {
// let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid,
// this.startTs, this.startTs2, this.performanceNow, this.px12280)
let
data
=
[
this
.
pxenv
.
get_px11590
()]
let
px11590
=
this
.
pxenv
.
get_px11590
();
Object
.
assign
(
px11590
.
d
,
this
.
env2
.
px11590
)
let
data
=
[
px11590
]
let
res
=
await
this
.
do_collector
(
data
)
}
...
...
@@ -5169,7 +5227,7 @@ class PxBypass {
// this.startTs, this.startTs2, this.performanceNow, this.px12280)
this
.
pxenv
.
performanceNow
=
this
.
performanceNow
let
d
=
this
.
pxenv
.
get_px11547
();
Object
.
assign
(
d
.
d
,
this
.
px_11547_env
)
Object
.
assign
(
d
.
d
,
this
.
env2
.
px11547
)
let
data
=
[
// this.pxenv.get_px11891(),
d
]
...
...
@@ -5268,6 +5326,7 @@ async function run() {
try
{
let
px
=
new
PxBypass
()
await
px
.
initMongo
()
await
px
.
initMongo2
()
await
px
.
step1
()
await
px
.
step3
()
await
sleep
(
1000
)
...
...
src/test.js
View file @
8f4c8ab9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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