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:
2026-10-09 23:25:05 +08:00
commit 418a0411d1
34 changed files with 1544 additions and 0 deletions

View 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)