宣告:本篇文章僅用於知識分享,不得用於其他用途
網址:https://www.jinglingshuju.com/articles
解密邏輯
-
看觸發的資料包。
-
data
一看就是加密的,全域性搜尋interceptors
。在最後一處可以明顯的看到有解密函式。
-
打斷點,重新整理介面。
-
跟響應資料中一致,找對地方了。關鍵程式碼如下。
var e = y.a.AES.decrypt(data, z, { iv: y.a.enc.Utf8.parse(j.substr(0, 16)), mode: y.a.mode.ECB, padding: y.a.pad.Pkcs7 });
只需搞清楚
data
、z
、j
三個變數的含義即可。data
:頁面響應的資料z
:對j
進行了編碼。
j
:定值。
-
可以編寫js程式碼,嘗試解密一下了。
y.a
其實就是crypto-js
庫。var CryptoJS = require("crypto-js"); var j = "DXZWdxUZ5jgsUFPF" , z = CryptoJS.enc.Utf8.parse(j); var data = 'Ou1c1U7XU3pQRu0GosMzTBM9qKrctdfwJM89QT0Znmuy/LzErzIW0T//b0tEPBpMfEZNscs5Ga8tjZlgbBBEJBlYLr1PWiu8MfZTdOXl4uHGrxFBacKnBvKglCJDeoZAQT4G3R8sOC904ti4nJGalcWd9anG/9ffijW0pDID4x2lI66Fie4XCKzs7UjdzQgf+r6bXdagsi+PlvREKBYkKNcVWSXRdV66Yf7MW7Sjp+u0cLX0cAHvzF6pzfAPQbInqMbAEs4e3+HjuPsJpwGgf4VJbXlZysJM/4R0BiEDzImuX0qKmSlXtY5XWuVy0X6KZabpgxqcdhCTDGjZGDEzgYXPv4QnZi2y+5/Bknbl08ew5Us0hy2IMjnp4hA3bNyQnIJZobsNSWn6e076ZIbGqt4ORhMSuH/z9BrLvBD9iKN8bI+WX9Ybx5EQhoMOGZsVNtX4rKsM1hiSZfW92kzCmPfLigjTBz28zmcrcTERmzRIugP+T+vtOzxNNHF1VpIRIcpwV3NgwAq/t87Z+Wy1A2pufdPxOOG3pHRvp4gV62qRjNE2+QFIdc7C7W3euKjVm7hgcXnGtEy5Fd6hr1tWe20nRG+zl1RKsd/ufmmCVQsSMVDtPiUhby0fMZ07L/yq5uXTFDswng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yDcn5uNtNjnF50UyxSacbzjppMqlOJFJ0ZM8JSi3b+hrtaWtRd36cbqF8Wxs2CUzInGAzaTuVwzmGNUT1mMl81xrrncTCT+QhYz07LUcWy82j5Rj7hJ9sARSLa6BmyFaPFsIU+s+3PBSNX26qPPY50PWAIS9OJ3UFRDyZB1UfG53KouXRCT8NnlBNuXJqY/TexcdofFwFggTFIPwT7EAeZS5oGh3+I89te0Qe5/sd3npoLs0kya7lDrRrk9NlOxM2AGQ86MPBnz9wjFg6GsAZeqQw='; var e = CryptoJS.AES.decrypt(data, z, { iv: CryptoJS.enc.Utf8.parse(j.substr(0, 16)), mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 }); console.log(JSON.parse(e.toString(CryptoJS.enc.Utf8)));
執行結果如下:
跟頁面顯示一致。
-
編寫python程式碼嘗試獲取前5頁的資料,這裡需要對js程式碼稍微修改一下。
test.pyfrom functools import partial # 鎖定引數 import subprocess subprocess.Popen = partial(subprocess.Popen, encoding="utf-8") import requests import execjs import time for i in range(1, 5): url = "https://vapi.jinglingshuju.com/Data/getNewsList" data = {"page": i, "num": 20} headers = { "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 " "Safari/537.36", "referer": "https://www.kaogujia.com/", "content-type": "application/json", } resp = requests.post(url, data=data, headers=headers) data = resp.json()['data'] # print(data) file = open("test.js", mode="r") exec_js = file.read() exec_code = execjs.compile(exec_js) res = exec_code.call("decrypt", data) print(res) time.sleep(1)
test.js
var CryptoJS = require("crypto-js"); function decrypt(data) { var j = "DXZWdxUZ5jgsUFPF" , z = CryptoJS.enc.Utf8.parse(j); var e = CryptoJS.AES.decrypt(data, z, { iv: CryptoJS.enc.Utf8.parse(j.substr(0, 16)), mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 }); return JSON.parse(e.toString(CryptoJS.enc.Utf8)); }
執行結果如下
與頁面顯示一致。