Commit 245464b0 authored by wang's avatar wang

wn test

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