Commit e08cbe29 authored by wang's avatar wang

ff

parent ae7fdef5
This diff is collapsed.
...@@ -18,12 +18,12 @@ client = MongoClient('mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authS ...@@ -18,12 +18,12 @@ client = MongoClient('mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authS
db = client.env 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} # data = {str(x['_id']): x['env'] for x in result}
# print(result) # print(result)
# with open('env.json', 'w') as f: # with open('ff.json', 'w') as f:
# f.write(json.dumps(data)) # f.write(json.dumps(data))
with open('env.json', 'r') as f: with open('ff.json', 'r') as f:
data = json.loads(f.read()) data = json.loads(f.read())
envs = data.keys() envs = data.keys()
...@@ -45,7 +45,7 @@ usedTime = 10 ...@@ -45,7 +45,7 @@ usedTime = 10
code = open('src.js', 'r').read() code = open('src.js', 'r').read()
for i in range(100): for i in range(100):
selectId = random.choice(list(envs)) selectId = random.choice(list(envs))
selectId = '1' # selectId = '1'
c = requests.get('https://www.jetblue.com/js/src/jb-74873.js').text c = requests.get('https://www.jetblue.com/js/src/jb-74873.js').text
m5 = md5(c) m5 = md5(c)
if m5 != lastHash and usedTime > 3: if m5 != lastHash and usedTime > 3:
......
...@@ -27,7 +27,7 @@ for (let i = 0; i <keys.length; i++) { ...@@ -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] || keys[parseInt(Math.random() * keys.length)]
let sid = process.argv[2] || '1'; let sid = process.argv[2] || 'fd2d2185483fa4f403f2cd92';
let ENV = ENVS[sid] let ENV = ENVS[sid]
// const crypto = require('crypto'); // const crypto = require('crypto');
...@@ -63,7 +63,7 @@ Object.defineProperties(console, { ...@@ -63,7 +63,7 @@ Object.defineProperties(console, {
}) })
console.Console = undefined; console.Console = undefined;
console.log(Object.keys(Object.getOwnPropertyDescriptors(console))) console.log(Object.keys(Object.getOwnPropertyDescriptors(console)))
if (sid === '8ffdff7b995c8ad51d902ff0'){ if (sid === 'fd2d2185483fa4f403f2cd92' || sid === '1'){
Date.now = function now() { return 1693903208580 }; Date.now = function now() { return 1693903208580 };
Date.parse = function () { return 1693903208580 }; Date.parse = function () { return 1693903208580 };
Date.prototype.valueOf = function () { return 1693903208580 }; Date.prototype.valueOf = function () { return 1693903208580 };
...@@ -495,8 +495,8 @@ navis = { ...@@ -495,8 +495,8 @@ navis = {
webdriver: false, webdriver: false,
hardwareconcurrency: ENV.navigatorparams.hardwareconcurrency, hardwareconcurrency: ENV.navigatorparams.hardwareconcurrency,
doNotTrack: ENV.navigatorparams.donottrack, doNotTrack: ENV.navigatorparams.donottrack,
buildID:ENV.navigatorparams.buildid, buildID:ENV.navigatorparams.buildid || "20181001000000" ,
oscpu:ENV.navigatorparams.oscpu, oscpu:ENV.navigatorparams.oscpu || 'Intel Mac OS X 10.15',
} }
// navis = fingerprint.navigator // navis = fingerprint.navigator
......
This diff is collapsed.
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment