Commit 0e79ca07 authored by wang's avatar wang

f9

parent 5fc497ee
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,13 +2,12 @@ import json ...@@ -2,13 +2,12 @@ import json
import tls_client import tls_client
sess = tls_client.Session(client_identifier='chrome_120', random_tls_extension_order=True) sess = tls_client.Session(client_identifier='chrome_120', random_tls_extension_order=False)
sess.proxies = { sess.proxies = {
'http': 'http://127.0.0.1:8890', 'http': 'http://127.0.0.1:8890',
'https': 'http://127.0.0.1:8890', 'https': 'http://127.0.0.1:8890',
} }
import requests
headers = { headers = {
...@@ -24,8 +23,7 @@ headers = { ...@@ -24,8 +23,7 @@ headers = {
"sec-fetch-user": "?1", "sec-fetch-user": "?1",
"sec-fetch-dest": "document", "sec-fetch-dest": "document",
"accept-language": "en", "accept-language": "en",
'cookie': 'c_uuid=25010157537361200005373651080192024; _gcl_au=1.1.448761603.1713336291; pxcts=fdf235a6-fc85-11ee-b4fb-43395248b920; _pxvid=fdf2276a-fc85-11ee-b4fb-5d3e2a270b62; _gid=GA1.2.1259122164.1713336292; cjConsent=MHxOfDB8Tnww; cjUser=e6f18d68-13e1-4c89-ab1c-23c5b027344b; cjLiveRampLastCall=2024-04-17T06:44:53.243Z; wisepops_visits=%5B%222024-04-17T06%3A44%3A50.744Z%22%5D; _pin_unauth=dWlkPVpqUm1NRFU0T0dJdE16TTBaaTAwTVdNd0xXSXhORGt0WXpBMU5HSTFORE0yTmpabQ; ORA_FPC=id=f6eb1aeb-7de0-4708-83ad-de8bed215c46; WTPERSIST=; _gat_UA-2678252-1=1; _ga_XXXX=GS1.1.1713336291.1.1.1713336405.0.0.265826372; _ga_P2WLKWBNNW=GS1.1.1713336291.1.1.1713336405.37.0.0; _ga=GA1.2.1340612058.1713336291; _rdt_uuid=1713336292452.15e1b8f2-c4d3-410b-aea6-4ce839505e3b; _px2=eyJ1IjoiNDE3OGIxMzAtZmM4Ni0xMWVlLWIwYmMtNTE4NjNiYjQxZTViIiwidiI6ImZkZjIyNzZhLWZjODUtMTFlZS1iNGZiLTVkM2UyYTI3MGI2MiIsInQiOjYyMDIzMzg4MDAwNywiaCI6ImI3MDFlN2YzZGQzYzExMTQwYjRlM2I3MDcxZTc2MjE1YTc1NTJhOTU0ZDQwYTQyMWEwM2UxOWNjYWNjMWEwMDQifQ==; wisepops=%7B%22popups%22%3A%7B%22483108%22%3A%7B%22dc%22%3A1%2C%22d%22%3A1713336297152%2C%22cl%22%3A1%7D%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A3%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; wisepops_visitor=%7B%22P9wqzAW4cp%22%3A%22cbc6973e-9403-43f5-af1f-feacc5315551%22%7D; wisepops_session=%7B%22arrivalOnSite%22%3A%222024-04-17T06%3A44%3A50.744Z%22%2C%22mtime%22%3A1713336408398%2C%22pageviews%22%3A4%2C%22popups%22%3A%7B%22483108%22%3A3%7D%2C%22bars%22%3A%7B%7D%2C%22sticky%22%3A%7B%7D%2C%22countdowns%22%3A%7B%7D%2C%22src%22%3Anull%2C%22utm%22%3A%7B%7D%2C%22testIp%22%3Anull%7D' 'cookie': 'c_uuid=25010157537361200005373651080192024; _gcl_au=1.1.1203097261.1713425018; pxcts=938a40eb-fd54-11ee-8c87-4bee1f093631; _pxvid=938a30fc-fd54-11ee-8c87-cd85968600f1; _gid=GA1.2.1812281059.1713425021; cjConsent=MHxOfDB8Tnww; cjUser=a29c89d8-0635-47b3-83ac-20a9fc3a5d1f; cjLiveRampLastCall=2024-04-18T07:23:40.789Z; _pin_unauth=dWlkPVpUQXlNMlUzTTJVdFpqaGpOUzAwWWpNMkxUa3pNR0l0Wm1FMk4ySmtOMk14WlRVNA; _gat_UA-2678252-1=1; wisepops_visits=%5B%222024-04-18T07%3A30%3A17.483Z%22%2C%222024-04-18T07%3A23%3A38.391Z%22%5D; _rdt_uuid=1713425020451.0a7acbb3-2cfb-46e8-baa8-99b12c5b7976; wisepops=%7B%22popups%22%3A%7B%22483108%22%3A%7B%22dc%22%3A1%2C%22d%22%3A1713425023361%2C%22c%22%3A1713425039108%7D%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A59%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; _ga_XXXX=GS1.1.1713425018.1.1.1713425470.0.0.1294547426; _ga=GA1.1.830353175.1713425019; _ga_P2WLKWBNNW=GS1.1.1713425019.1.1.1713425470.59.0.0; wisepops_visitor=%7B%22P9wqzAW4cp%22%3A%225f46ab28-3f85-41bc-972a-70c18202a026%22%7D; wisepops_session=%7B%22arrivalOnSite%22%3A%222024-04-18T07%3A30%3A17.483Z%22%2C%22mtime%22%3A1713425470573%2C%22pageviews%22%3A2%2C%22popups%22%3A%7B%22483108%22%3A2%7D%2C%22bars%22%3A%7B%7D%2C%22sticky%22%3A%7B%7D%2C%22countdowns%22%3A%7B%7D%2C%22src%22%3Anull%2C%22utm%22%3A%7B%7D%2C%22testIp%22%3Anull%7D; _px2=eyJ1IjoiYTExZWVjYjAtZmQ1NS0xMWVlLTkyNjktMmIxMDQzMTQ0ZDM1IiwidiI6IjkzOGEzMGZjLWZkNTQtMTFlZS04Yzg3LWNkODU5Njg2MDBmMSIsInQiOjE3MTM0MjU3NzI2MDgsImgiOiI3NzU1Nzg5YzUzMmU2ZGY3MTc0NTVkMzEzYTc3YzdmY2MwMjk4NTE3NjZiMjU5M2JjOTM0ZDc5ZDMxMmY0Mzk4In0=; ORA_FPC=id=0080a381-9cdd-452d-a791-edb926b19a20; WTPERSIST='
} }
......
...@@ -155,7 +155,10 @@ class PxBypass { ...@@ -155,7 +155,10 @@ class PxBypass {
try { try {
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let n = data[i]; let n = data[i];
n.d['PX11645'] = this.url; if (n.t === 'PX12167'){
continue
}
// n.d['PX11645'] = this.url;
n.d["PX11379"] = false; n.d["PX11379"] = false;
} }
console.log(JSON.stringify(data)) console.log(JSON.stringify(data))
...@@ -195,7 +198,7 @@ class PxBypass { ...@@ -195,7 +198,7 @@ class PxBypass {
id: (new Date().getTime()) + '', id: (new Date().getTime()) + '',
random_tls: true, random_tls: true,
}), { }), {
timeout: 5000, timeout: 7000, // 超时时间
}); });
let inRes = JSON.parse(res.data.text) let inRes = JSON.parse(res.data.text)
this.log.info(inRes) this.log.info(inRes)
...@@ -408,12 +411,25 @@ class PxBypass { ...@@ -408,12 +411,25 @@ class PxBypass {
// this.startTs, this.startTs2, this.performanceNow, this.px12280) // this.startTs, this.startTs2, this.performanceNow, this.px12280)
this.pxenv.performanceNow = this.performanceNow this.pxenv.performanceNow = this.performanceNow
let data = [ let data = [
// this.pxenv.get_px12123(), this.pxenv.get_px12123(),
// this.pxenv.get_px11891(), this.pxenv.get_px11891(),
this.pxenv.get_px11547()] this.pxenv.get_px11547()]
let res = await this.do_collector(data) let res = await this.do_collector(data)
} }
async step5() {
this.performanceNow += randint(1000, 2000)
// let data = genPayload4(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid,
// this.startTs, this.startTs2, this.performanceNow, this.px12280)
this.pxenv.performanceNow = this.performanceNow
let data = [
// this.pxenv.get_px12123(),
// this.pxenv.get_px11891(),
this.pxenv.get_px12419()]
let res = await this.do_collector(data)
}
async test() { async test() {
// this.prox = 'http://127.0.0.1:8890' // this.prox = 'http://127.0.0.1:8890'
// this.tlsUrl = 'http://127.0.0.1:58000/tls/forwardios' // this.tlsUrl = 'http://127.0.0.1:58000/tls/forwardios'
...@@ -488,13 +504,14 @@ async function run() { ...@@ -488,13 +504,14 @@ async function run() {
await px.initMongo() await px.initMongo()
await px.step1() await px.step1()
// await px.test() // await px.test()
// await px.step2() await px.step2()
// await sleep(1500) // await sleep(1500)
await px.step3() await px.step3()
await sleep(1000) await sleep(1000)
await px.step4() await px.step4()
await px.step5()
await px.test() await px.test()
// await sleep(1500) // await sleep(1500)
......
This diff is collapsed.
...@@ -135,10 +135,11 @@ export function mousePath(startPoint, endPoint) { ...@@ -135,10 +135,11 @@ export function mousePath(startPoint, endPoint) {
// 获取所有轨迹点 // 获取所有轨迹点
var pointsOnCurve = []; var pointsOnCurve = [];
// for (var t = 0; t <= 1; t += 0.01) { for (var t = 0; t <= 1; t += 0.01) {
// var point = quadraticBezier(t, startPoint, controlPoint, endPoint); var point = quadraticBezier(t, startPoint, controlPoint, endPoint);
// pointsOnCurve.push(point); pointsOnCurve.push(point);
// } }
return pointsOnCurve
let reverseChooseTime = 0; let reverseChooseTime = 0;
let reverseChoose = true; let reverseChoose = true;
let x = startPoint.x; let x = startPoint.x;
......
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