Commit a8f8fb31 authored by wang's avatar wang

开始按压验证码

parent 72ea0e22
...@@ -398,16 +398,16 @@ class PxBypass(): ...@@ -398,16 +398,16 @@ class PxBypass():
"cookie": '; '.join(cks) "cookie": '; '.join(cks)
}, method="GET", proxy=self.prox, }, method="GET", proxy=self.prox,
debug=True debug=True
# ,allow_redirects=True ,allow_redirects=True
)) ))
response = response.json() response = response.json()
print(response) # print(response)
if response['status_code'] == 302: # if response['status_code'] == 302:
print(response['text']) # print(response['text'])
else: # else:
with open('index.html', 'w') as f: # with open('index.html', 'w') as f:
f.write(response['text']) # f.write(response['text'])
print(response['status_code']) print(response['status_code'])
self.session.cookies.update( self.session.cookies.update(
response['cookies'] response['cookies']
......
...@@ -10,9 +10,7 @@ headers = { ...@@ -10,9 +10,7 @@ headers = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"accept-language": "en-US,en;q=0.9", "accept-language": "en-US,en;q=0.9",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36",
"cookie": "_pxvid=0c1ef793-8dc2-11ee-91da-228dc1c257d4; pxcts=0c1f055f-8dc2-11ee-91da-a5735ff258e2; _px2=eyJ1IjoiMGIxYzRkMDAtOGRjMi0xMWVlLThhN2YtZjJhNzU0NzcyY2M1IiwidiI6IjBjMWVmNzkzLThkYzItMTFlZS05MWRhLTIyOGRjMWMyNTdkNCIsInQiOjYyMDIzMzg4MDAwNCwiaCI6ImVhYWZlMGVlOTZmYTNkYTEwMjE1ZGU2NDQxMTk4NTBjZTc5NWFlODlmZjIyMTZiNzY5ODkxZWQzZWU4MjRlYWUifQ==; ASP.NET_SessionId=4gt02ighp0k5r4ty4wh3iet3; _pxhd=775810c9fc376835be665fdfdf1f06dffa708f8cea2c10aa4af5c8ab0e9012b2:0c1ef793-8dc2-11ee-91da-228dc1c257d4; dotrez=!FgFe6N5gWZG0qguT9B3Zm8gW+yuktH8sD1YB8FqPTxitanvn/804bUKUpzB/3jqDJVrfklg9dZFZN/o=" "cookie": 'ASP.NET_SessionId=zmykrv0wggqluubtjmyfy4h1; _px2=eyJ1IjoiMTJmMWY1MTAtOGRjMy0xMWVlLThlZmYtZTQzN2RjZWY1NTdmIiwidiI6IjEzMjEzZDRmLThkYzMtMTFlZS1hODA2LThmMWNlZmJlN2U5OSIsInQiOjYyMDIzMzg4MDAwNCwiaCI6IjE0NTA2ZmU0MmU0MGVmOWY5YTI3Y2NkNDk1OGE1YmNmZDliMDI3NDU1YzNkNzA2ZTJiZGU3MWFjYzM2MWQ2NjMifQ==; _pxhd=6ad997a6ece343c39258bccd9a5a87ee99cb775f0eff65609dfa7ac67260cc77:13213d4f-8dc3-11ee-a806-8f1cefbe7e99; _pxvid=13213d4f-8dc3-11ee-a806-8f1cefbe7e99; dotrez=!4C4MDUsvsH15JtmT9B3Zm8gW+yuktA+6pabh5irAasQHKwrF/pgXe9pVpnHDkhjjTENXRZq7Nih+0Z8=; pxcts=13214c7c-8dc3-11ee-a806-8627dd1ff4db'
} }
...@@ -33,7 +31,8 @@ print(prox) ...@@ -33,7 +31,8 @@ print(prox)
# prox = 'http://127.0.0.1:8890' # prox = 'http://127.0.0.1:8890'
response = requests.post('http://52.52.23.116/tls/forward', response = requests.post('http://52.52.23.116/tls/forward',
# response = requests.post('http://127.0.0.1:58000/tls/forward', # response = requests.post('http://127.0.0.1:58000/tls/forward',
json=dict(url=url, method="GET", proxy=prox, headers=headers, debug=True) json=dict(url=url, method="GET", proxy=prox, headers=headers, debug=True,
allow_redirects=True)
) )
# response = session.post(url, headers=h, data=data, proxy={ # response = session.post(url, headers=h, data=data, proxy={
# # 'http':'http://127.0.0.1:7890', # # 'http':'http://127.0.0.1:7890',
......
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