Initialize encryption and JavaScript reverse-engineering study repository
Document the project structure and setup while excluding local dependencies and IDE settings. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
37
魔改算法-2026-08-28/实战案例-吉林长春产权交易中心/python调用.py
Normal file
37
魔改算法-2026-08-28/实战案例-吉林长春产权交易中心/python调用.py
Normal file
@@ -0,0 +1,37 @@
|
||||
import execjs
|
||||
import requests
|
||||
import time
|
||||
|
||||
|
||||
with open("js解密.js", "r", encoding="utf-8") as f:
|
||||
js_code = f.read()
|
||||
|
||||
code = execjs.compile(js_code)
|
||||
|
||||
headers = {
|
||||
"Accept": "application/json, text/plain, */*",
|
||||
"Accept-Language": "zh-CN,zh;q=0.9",
|
||||
"Connection": "keep-alive",
|
||||
"Content-Type": "text/xml;charset=UTF-8",
|
||||
"Origin": "https://www.ccprec.com",
|
||||
"Referer": "https://www.ccprec.com/projectSecPage/",
|
||||
"Sec-Fetch-Dest": "empty",
|
||||
"Sec-Fetch-Mode": "cors",
|
||||
"Sec-Fetch-Site": "same-origin",
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36",
|
||||
"sec-ch-ua": "\"Chromium\";v=\"152\", \"Not?A_Brand\";v=\"24\", \"Google Chrome\";v=\"152\"",
|
||||
"sec-ch-ua-mobile": "?0",
|
||||
"sec-ch-ua-platform": "\"Windows\""
|
||||
}
|
||||
url = 'https://www.ccprec.com/honsanCloudAct'
|
||||
for page in range(1, 11):
|
||||
data = code.call("encrypt_payload", page)
|
||||
print(data)
|
||||
response = requests.post(url, headers=headers, data=data)
|
||||
|
||||
response_data = code.call("decrypt_data", response.text)
|
||||
print(response_data)
|
||||
|
||||
# print(response.text)
|
||||
# print(response)
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user