Commit e0827208 authored by wangmingming's avatar wangmingming

7777

parent 071c701a
No preview for this file type
......@@ -27,7 +27,6 @@ with open('env.json', 'r') as f:
data = json.loads(f.read())
envs = data.keys()
session = tls_client.Session(client_identifier='chrome_110')
# session = requests.session()
headers = {
......@@ -58,8 +57,8 @@ for i in range(100):
t1 = time.time()
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json()
# p = subprocess.Popen(['node', 'js_dom_run.js', selectId], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p = subprocess.Popen(['node', 'src_run1.js', selectId], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p = subprocess.Popen(['node', 'js_dom_run.js', selectId], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run1.js', selectId], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
output, err = p.communicate(timeout=10)
tmp = ''
......@@ -113,8 +112,9 @@ for i in range(100):
}
proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# proxy = 'http://127.0.0.1:7890'
session = tls_client.Session(client_identifier='chrome_112')
session.proxies = {
'http': proxy,
'https': proxy,
......
This diff is collapsed.
......@@ -1004,7 +1004,7 @@ function Window(options) {
// ### INITIALIZATION
process.nextTick(() => {
_process.nextTick(() => {
if (!window.document) {
return; // window might've been closed already
}
......
......@@ -13,12 +13,12 @@ module.exports = class ResourceLoader {
constructor({
strictSSL = true,
proxy = undefined,
userAgent = `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 ` +
`(KHTML, like Gecko) jsdom/${packageVersion}`
// userAgent = `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 ` +
// `(KHTML, like Gecko) jsdom/${packageVersion}`
} = {}) {
this._strictSSL = strictSSL;
this._proxy = proxy;
this._userAgent = userAgent;
// this._userAgent = userAgent;
}
_readDataURL(urlRecord) {
......
......@@ -188,6 +188,10 @@ exports.install = (globalObject, globalNames) => {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
get innerText() {
console.log('body.webkitRequestFullScreen')
}
get webkitRequestFullScreen() {
console.log('body.webkitRequestFullScreen')
......@@ -795,6 +799,7 @@ exports.install = (globalObject, globalNames) => {
onunhandledrejection: { enumerable: true },
onunload: { enumerable: true },
webkitRequestFullScreen: { enumerable: true },
innerText: { enumerable: true },
[Symbol.toStringTag]: { value: "HTMLBodyElement", configurable: true }
});
if (globalObject[ctorRegistrySymbol] === undefined) {
......
Date.now = function now() {
return 1685096207545
};
Date.parse = function () {
return 1685096207545
};
Date.prototype.valueOf = function () {
return 1685096207545
};
Date.prototype.getTime = function () {
return 1685096207545
};
Date.prototype.toString = function () {
return 1685096207545
};
Performance.prototype.now = function now() {
return Number('1685096207545'.slice(8))
}
Math.random = function random() {
return 0.08636862211354912
};
con3 = function(){};
con4 = console.log;
(function L(T) {
var p = new Error("HALT");
var Z = {}, c = {};
......@@ -2107,18 +2131,21 @@
"use strict";
let res = jR.R[jR.R.length - 2][jR.R[jR.R.length - 1]];
con3(jR.R[jR.R.length - 2], 'get', jR.R[jR.R.length - 1], '==>', res)
if (jR.R[jR.R.length - 1] === 0 && typeof res === 'boolean'
if (jR.R[jR.R.length - 1] === 5 && typeof res === 'boolean'
// && jR.R[jR.R.length - 2].length === 3
){
// console.log(jR.R[jR.R.length - 2])
console.log(jR.R[jR.R.length - 2])
// console.log(jR.R[jR.R.length - 2].join(''));
// debugger;
}
if ( jR.R[jR.R.length - 1] === 'join'){
// console.log(jR.R[jR.R.length - 2]);
// debugger;
}
// if ( jR.R[jR.R.length - 1] === 'length' && Array.isArray(jR.R[jR.R.length - 2]) && jR.R[jR.R.length - 2].length > 1000){
// console.log(JSON.stringify(jR.R[jR.R.length - 2]));
// // debugger;
//
// }
// if(jR.R[jR.R.length - 2].length === 10003){
// debugger;
// }
jR.R[jR.R.length - 2] = res;
if (Array.isArray(jR.R[jR.R.length - 2]) && jR.R[jR.R.length - 2].length === 60) {
let res = [];
......@@ -2131,7 +2158,7 @@
}
})
console.log([].slice.call(res).join('iii'))
con4([].slice.call(res).join('iii'))
}
jR.R[jR.R.length - 2] = res;
jR.R.length -= 1
......
......@@ -90,8 +90,8 @@ print = console.log
dtavm.log = console.log
let con3 = console.log
let con4 = console.log
// con3 = function (){}
// con4 = function (){}
con3 = function (){}
con4 = function (){}
......@@ -6030,7 +6030,7 @@ xhr.send("{\"tripType\":\"oneWay\",\"from\":\"ZLA\",\"to\":\"NAS\",\"depart\":\"
xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers))
_process.exit(0)
}, 1000)
}, 1500)
// fetch("https://jbrest.jetblue.com/lfs-rwb/outboundLFS", {
// "headers": {
......
This diff is collapsed.
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