Commit 892b939d authored by wang's avatar wang

wn fix

parent a76037bd
a1 = [22,28,65,7,92,95,115,192,7,38,212,157,81,202,44,150,188,237,40,0,148,75,67,186,150,66,121,236,192,48,193,251,5,56,34,41,59,181,78,100,67,44,0,80,86,23,166,0,251,16,196,44,147,53,234,192,94,213,42,197,1,38,0,200,40,115,7,178,111,149,219,101,238,139,99,18,153,28,48,133,217,246,206,238,156,165,29,33,241,209,168,184,24,147,35,88,117,58,210,218,93,30,207,30,33,25,73,58,230,223,2,191,96,30,134,193,190,182,226,254,110,89,73,199,188,230,88,20,197,244,241,82,218,251,225,246,26,251,173,246,220,82,218,135,127,8,50,96,249,91,108,138,247,243,15,170,130,171,99,183,77,125,148,93,251,144,170,120,141,121,148,12,17,232,156,85,185,118,191,143,74,76,1,224,209,238,239,86,79,22,156,224,36,167,95,151,4,211,54,36,109,198,120,221,163,1,225,97,46,233,239,143,38,149,212,16,144,46,230,127,247,142,57,185,111,50,37,54,132,28,77,65,82,174,193,36,15,162,67,43,211,66,113,6,200,219,83,237,47,129,100,114,50,160,166,66,134,39,191,39,92,145,72,191,204,11,233,178,183,125,136,84,104,199,90,45,191,80,80,67,15,28,163,25,192,198,221,53,206,58,145,198,71,70,152,219,25,112,9,11,104,55,234,189,22,22,64,107,175,5,138,75,248,181,184,87] a1 = [22,28,65,7,12,97,5,120,168,210,18,169,244,142,173,245,230,211,94,34,100,86,61,153,8,49,253,32,185,122,42,62,57,109,201,142,200,150,22,0]
a2 = [22,28,65,7,92,95,115,192,7,38,212,157,81,202,44,150,188,237,40,0,148,75,67,186,150,66,121,236,192,48,193,251,5,56,34,41,59,181,78,100,67,44,0,80,86,23,166,0,251,16,196,44,147,53,234,192,94,213,42,197,1,38,0,200,40,115,7,178,111,149,219,101,238,139,99,18,153,28,48,133,217,246,206,238,156,165,29,33,241,209,168,184,24,147,35,88,117,58,210,218,93,30,207,30,33,25,73,58,230,223,2,191,96,30,134,193,190,182,226,254,110,89,73,199,188,230,88,20,197,244,241,82,218,251,225,246,26,251,173,246,220,82,218,135,127,8,50,96,249,91,108,138,247,243,15,170,130,171,99,183,77,125,148,93,251,144,170,120,141,121,148,12,17,232,156,85,185,118,191,143,74,76,1,224,209,238,239,86,79,22,156,224,36,167,95,151,4,211,54,36,109,198,120,221,163,1,225,97,46,233,239,143,38,149,212,16,144,46,230,127,247,142,57,185,111,50,37,54,132,28,77,65,82,174,193,36,15,162,67,43,211,66,113,6,200,219,83,237,47,129,100,114,50,160,166,66,134,39,191,39,92,145,72,191,204,11,233,178,183,125,136,84,104,199,90,45,191,80,80,67,15,28,163,25,192,198,221,53,206,58,145,198,71,70,152,219,25,112,9,11,104,55,234,189,22,22,64,107,175,5,138,75,248,181,173,105]
a2 = [22,28,65,7,12,97,5,124,168,208,18,169,244,142,173,245,230,211,90,38,96,86,61,153,8,49,253,32,189,126,42,58,61,105,205,138,204,150,22,4]
for idx, (k,v ) in enumerate(zip(a1,a2)): for idx, (k,v ) in enumerate(zip(a1,a2)):
......
No preview for this file type
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
...@@ -207,7 +207,8 @@ while True: ...@@ -207,7 +207,8 @@ while True:
# proxy = requests.post('http://ymx-lcc.unififi.com/proxy/get-proxy', json={'name':"B6", 'type':'shopping'}).json()['url'] # proxy = requests.post('http://ymx-lcc.unififi.com/proxy/get-proxy', json={'name':"B6", 'type':'shopping'}).json()['url']
# proxy = f'http://ynfflcc2023.hotmail.com:gdcfh9@69.30.227.194:{random.randint(20001, 20250)}' # proxy = f'http://ynfflcc2023.hotmail.com:gdcfh9@69.30.227.194:{random.randint(20001, 20250)}'
proxy2 = f'http://user-uni003-region-us-sessid-${random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600' proxy2 = f'http://user-uni003-region-us-sessid-{random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
proxy = f'http://user-uni003-region-us-sessid-{random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{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'
tlsV = f'chrome_{random.randint(105, 113)}' tlsV = f'chrome_{random.randint(105, 113)}'
...@@ -220,10 +221,10 @@ while True: ...@@ -220,10 +221,10 @@ while True:
session = tls_client.Session(tlsV) session = tls_client.Session(tlsV)
# session.timeout_seconds = 15 # session.timeout_seconds = 15
# session = requests.session() # session = requests.session()
session.proxies = { # session.proxies = {
'http': proxy, # 'http': proxy,
'https': proxy, # 'https': proxy,
} # }
session.verify = False session.verify = False
if platform.uname().system == 'Darwin': if platform.uname().system == 'Darwin':
session.proxies = { session.proxies = {
...@@ -312,8 +313,8 @@ setTimeout(r=> { ...@@ -312,8 +313,8 @@ setTimeout(r=> {
print(r) print(r)
xhr_url = r.pop('xhr_url') xhr_url = r.pop('xhr_url')
xhr_res = r.pop('xhr_res') xhr_res = r.pop('xhr_res')
print(xhr_url) print('xhr_url', xhr_url)
print(xhr_res) print('xhr_res', xhr_res)
headers.update(r) headers.update(r)
# headers = r # headers = r
logger.info(f"success:{success} total:{total} {(time.time() - t1) *1000:.3f}ms {len(headers['ee30zvqlwf-a'.lower()])} {selectId} {headers['user-agent']}") logger.info(f"success:{success} total:{total} {(time.time() - t1) *1000:.3f}ms {len(headers['ee30zvqlwf-a'.lower()])} {selectId} {headers['user-agent']}")
...@@ -339,14 +340,20 @@ setTimeout(r=> { ...@@ -339,14 +340,20 @@ setTimeout(r=> {
"application": "air-booking", "application": "air-booking",
"site": "southwest" "site": "southwest"
} }
data = json.dumps(data)
# #
# session = requests.Session() # session = requests.Session()
# #
# if platform.uname().system == 'Darwin': # if platform.uname().system == 'Darwin':
total += 1 total += 1
response = session.post(url, headers=headers, json=data) # response = session.post(url, headers=headers, json=data)
logger.info(f'tls:{tlsV} proxy:{proxy} res:: {response.status_code}') response = requests.post('http://52.52.23.116/tls/forward',
status_code = response.status_code json=dict(url=url, headers=headers, method="POST", proxy=proxy, debug=True, data=data
, allow_redirects=True, random_tls=True
))
status_code = response.json()['status_code']
print(response.text)
logger.info(f'tls:{tlsV} proxy:{proxy} res:: {status_code}')
# status_code = 400 # status_code = 400
if status_code != 403: if status_code != 403:
success += 1 success += 1
...@@ -358,7 +365,7 @@ setTimeout(r=> { ...@@ -358,7 +365,7 @@ setTimeout(r=> {
brush_name = 'js2' brush_name = 'js2'
if platform.uname().system == 'Darwin': if platform.uname().system == 'Darwin':
print(headers) print(headers)
brush_name = 'js1' brush_name = 'jstest'
r = requests.post(uri, json={ r = requests.post(uri, json={
'brush_fromto': 'LAS-BOS', 'brush_fromto': 'LAS-BOS',
......
No preview for this file type
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