Commit 245464b0 authored by wang's avatar wang

wn test

parent 624e01db
......@@ -88,8 +88,8 @@ while True:
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_112'
# session = tls_client.Session(tlsV)
session = requests.session()
session = tls_client.Session(tlsV)
# session = requests.session()
session.proxies = {
'http': proxy,
'https': proxy,
......@@ -195,7 +195,7 @@ while True:
#
# if platform.uname().system == 'Darwin':
total += 1
response = session.post(url, headers=headers, json=data, timeout=5)
response = session.post(url, headers=headers, json=data)
logger.info(f'tls:{tlsV} proxy:{proxy} res:: {response.status_code}')
if response.status_code != 403:
success += 1
......
No preview for this file type
......@@ -50,27 +50,27 @@
console.log(e)
})
_join = Array.prototype.join;
Array.prototype.join = function (s) {
_print('join', this.length, this, s)
let res = _join.call(this, s)
_print('joinres', res)
return res;
}
_getOwnPropertyNames = Object.getOwnPropertyNames;
Object.getOwnPropertyNames = function (a) {
let res = _getOwnPropertyNames(a);
_print('getOwnPropertyNames', a, res)
return res;
}
var _hasOwnProperty = Object.hasOwnProperty;
Object.hasOwnProperty = function () {
let res = _hasOwnProperty.apply(this, arguments);
_print('Object.hasOwnProperty', arguments, res === undefined);
return res;
}
// _join = Array.prototype.join;
// Array.prototype.join = function (s) {
// _print('join', this.length, this, s)
// let res = _join.call(this, s)
// _print('joinres', res)
// return res;
// }
// _getOwnPropertyNames = Object.getOwnPropertyNames;
// Object.getOwnPropertyNames = function (a) {
// let res = _getOwnPropertyNames(a);
// _print('getOwnPropertyNames', a, res)
// return res;
//
// }
//
// var _hasOwnProperty = Object.hasOwnProperty;
// Object.hasOwnProperty = function () {
// let res = _hasOwnProperty.apply(this, arguments);
// _print('Object.hasOwnProperty', arguments, res === undefined);
// return res;
// }
</script>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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