Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
e08cbe29
Commit
e08cbe29
authored
Sep 05, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ff
parent
ae7fdef5
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
34 deletions
+37
-34
ff.json
ff.json
+1
-2
jetblue.py
jetblue.py
+4
-4
src.js
src.js
+4
-4
src_run.js
src_run.js
+24
-24
sss.js
sss.js
+4
-0
No files found.
ff.json
View file @
e08cbe29
This diff is collapsed.
Click to expand it.
jetblue.py
View file @
e08cbe29
...
...
@@ -18,12 +18,12 @@ client = MongoClient('mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authS
db
=
client
.
env
# 查询所有文档
# result = db.env_shape.find()
# result = db.env_shape.find(
{'env.navigatorparams.useragent': {'$regex': 'Firefox'}}
)
# data = {str(x['_id']): x['env'] for x in result}
# print(result)
# with open('
env
.json', 'w') as f:
# with open('
ff
.json', 'w') as f:
# f.write(json.dumps(data))
with
open
(
'
env
.json'
,
'r'
)
as
f
:
with
open
(
'
ff
.json'
,
'r'
)
as
f
:
data
=
json
.
loads
(
f
.
read
())
envs
=
data
.
keys
()
...
...
@@ -45,7 +45,7 @@ usedTime = 10
code
=
open
(
'src.js'
,
'r'
)
.
read
()
for
i
in
range
(
100
):
selectId
=
random
.
choice
(
list
(
envs
))
selectId
=
'1'
#
selectId = '1'
c
=
requests
.
get
(
'https://www.jetblue.com/js/src/jb-74873.js'
)
.
text
m5
=
md5
(
c
)
if
m5
!=
lastHash
and
usedTime
>
3
:
...
...
src.js
View file @
e08cbe29
...
...
@@ -27,7 +27,7 @@ for (let i = 0; i <keys.length; i++) {
}
// let sid = process.argv[2] || keys[parseInt(Math.random() * keys.length)]
let
sid
=
process
.
argv
[
2
]
||
'
1
'
;
let
sid
=
process
.
argv
[
2
]
||
'
fd2d2185483fa4f403f2cd92
'
;
let
ENV
=
ENVS
[
sid
]
// const crypto = require('crypto');
...
...
@@ -63,7 +63,7 @@ Object.defineProperties(console, {
})
console
.
Console
=
undefined
;
console
.
log
(
Object
.
keys
(
Object
.
getOwnPropertyDescriptors
(
console
)))
if
(
sid
===
'
8ffdff7b995c8ad51d902ff0
'
){
if
(
sid
===
'
fd2d2185483fa4f403f2cd92'
||
sid
===
'1
'
){
Date
.
now
=
function
now
()
{
return
1693903208580
};
Date
.
parse
=
function
()
{
return
1693903208580
};
Date
.
prototype
.
valueOf
=
function
()
{
return
1693903208580
};
...
...
@@ -495,8 +495,8 @@ navis = {
webdriver
:
false
,
hardwareconcurrency
:
ENV
.
navigatorparams
.
hardwareconcurrency
,
doNotTrack
:
ENV
.
navigatorparams
.
donottrack
,
buildID
:
ENV
.
navigatorparams
.
buildid
,
oscpu
:
ENV
.
navigatorparams
.
oscpu
,
buildID
:
ENV
.
navigatorparams
.
buildid
||
"20181001000000"
,
oscpu
:
ENV
.
navigatorparams
.
oscpu
||
'Intel Mac OS X 10.15'
,
}
// navis = fingerprint.navigator
...
...
src_run.js
View file @
e08cbe29
This diff is collapsed.
Click to expand it.
sss.js
View file @
e08cbe29
No preview for this file type
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