http://t.csdnimg.cn/yh08H
打开开发者工具,debugger所在行,打断点处右键,选中never pause here
抓包分析可得,获取机票价格,仅有m值加密
点击request
跳转处打上断点,刷新页面
由此可知,m值是由window.f + ‘丨’ + (13位时间戳 + 10000 0000 / 1000)得到的,点进oo0O0函数,扣出函数,格式化
function oo0O0(mw) {
window.b = '';
for (var i = 0, len = window.a.length; i < len; i++) {
console.log(window.a[i]);
window.b += String[document.e + document.g](window.a[i][document.f + document.h]() - i - window.c)
}
var U = ['W5r5W6VdIHZcT8kU', 'WQ8CWRaxWQirAW=='];
var J = function(o, E) {
o = o - 0x0;
var N = U[o];
if (J['bSSGte'] === undefined) {
var Y = function(w) {
var m = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=',
T = String(w)['replace'](/=+$/, '');
var A = '';
for (var C = 0x0, b, W, l = 0x0; W = T['charAt'](l++); ~W && (b = C % 0x4 ? b * 0x40 + W : W, C++ % 0x4) ? A += String['fromCharCode'](0xff & b >> (-0x2 * C & 0x6)) : 0x0) {
W = m['indexOf'](W)
}
return A
};
var t = function(w, m) {
var T = [],
A = 0x0,
C, b = '',
W = '';
w = Y(w);
for (var R = 0x0, v = w['length']; R < v; R++) {
W += '%' + ('00' + w['charCodeAt'](R)['toString'](0x10))['slice'](-0x2)
}
w = decodeURIComponent(W);
var l;
for (l = 0x0; l < 0x100; l++) {
T[l] = l
}
for (l = 0x0; l < 0x100; l++) {
A = (A + T[l] + m['charCodeAt'](l % m['length'])) % 0x100, C = T[l], T[l] = T[A], T[A] = C
}
l = 0x0, A = 0x0;
for (var L = 0x0; L < w['length']; L++) {
l = (l + 0x1) % 0x100, A = (A + T[l]) % 0x100, C = T[l], T[l] = T[A], T[A] = C, b += String['fromCharCode'](w['charCodeAt'](L) ^ T[(T[l] + T[A]) % 0x100])
}
return b
};
J['luAabU'] = t, J['qlVPZg'] = {}, J['bSSGte'] = !![]
}
var H = J['qlVPZg'][o];
return H === undefined ? (J['TUDBIJ'] === undefined && (J['TUDBIJ'] = !![]), N = J['luAabU'](N, E), J['qlVPZg'][o] = N) : N = H, N
};
eval(atob(window['b'])[J('0x0', ']dQW')](J('0x1', 'GTu!'), '\x27' + mw + '\x27'));
return ''
}
从代码最后两行可以发现,返回的是空,但是eval中运行了
atob(window['b'])[J('0x0', ']dQW')](J('0x1', 'GTu!'), '\x27' + mw + '\x27')
在代码中这个地方打断点,看具体内容
atob(window['b'])['replace']('mwqqppz', '1701177485000')
格式化控制台打印的atob(window[‘b’])
var hexcase = 0;
var b64pad = "";
var chrsz = 16;
function hex_md5(a) {
return binl2hex(core_md5(str2binl(a), a.length * chrsz))
}
function b64_md5(a) {
return binl2b64(core_md5(str2binl(a), a.length * chrsz))
}
function str_md5(a) {
return binl2str(core_md5(str2binl(a), a.length * chrsz))
}
function hex_hmac_md5(a, b) {
return binl2hex(core_hmac_md5(a, b))
}
function b64_hmac_md5(a, b) {
return binl2b64(core_hmac_md5(a, b))
}
function str_hmac_md5(a, b) {
return binl2str(core_hmac_md5(a, b))
}
function md5_vm_test() {
return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"
}
function core_md5(p, k) {
p[k >> 5] |= 128 << ((k) % 32);
p[(((k + 64) >>> 9) << 4) + 14] = k;
var o = 1732584193;
var n = -271733879;
var m = -1732584194;
var l = 271733878;
for (var g = 0; g < p.length; g += 16) {
var j = o;
var h = n;
var f = m;
var e = l;
o = md5_ff(o, n, m, l, p[g + 0], 7, -680976936);
l = md5_ff(l, o, n, m, p[g + 1], 12, -389564586);
m = md5_ff(m, l, o, n, p[g + 2], 17, 606105819);
n = md5_ff(n, m, l, o, p[g + 3], 22, -1044525330);
o = md5_ff(o, n, m, l, p[g + 4], 7, -176418897);
l = md5_ff(l, o, n, m, p[g + 5], 12, 1200080426);
m = md5_ff(m, l, o, n, p[g + 6], 17, -1473231341);
n = md5_ff(n, m, l, o, p[g + 7], 22, -45705983);
o = md5_ff(o, n, m, l, p[g + 8], 7, 1770035416);
l = md5_ff(l, o, n, m, p[g + 9], 12, -1958414417);
m = md5_ff(m, l, o, n, p[g + 10], 17, -42063);
n = md5_ff(n, m, l, o, p[g + 11], 22, -1990404162);
o = md5_ff(o, n, m, l, p[g + 12], 7, 1804660682);
l = md5_ff(l, o, n, m, p[g + 13], 12, -40341101);
m = md5_ff(m, l, o, n, p[g + 14], 17, -1502002290);
n = md5_ff(n, m, l, o, p[g + 15], 22, 1236535329);
o = md5_gg(o, n, m, l, p[g + 1], 5, -165796510);
l = md5_gg(l, o, n, m, p[g + 6], 9, -1069501632);
m = md5_gg(m, l, o, n, p[g + 11], 14, 643717713);
n = md5_gg(n, m, l, o, p[g + 0], 20, -373897302);
o = md5_gg(o, n, m, l, p[g + 5], 5, -701558691);
l = md5_gg(l, o, n, m, p[g + 10], 9, 38016083);
m = md5_gg(m, l, o, n, p[g + 15], 14, -660478335);
n = md5_gg(n, m, l, o, p[g + 4], 20, -405537848);
o = md5_gg(o, n, m, l, p[g + 9], 5, 568446438);
l = md5_gg(l, o, n, m, p[g + 14], 9, -1019803690);
m = md5_gg(m, l, o, n, p[g + 3], 14, -187363961);
n = md5_gg(n, m, l, o, p[g + 8], 20, 1163531501);
o = md5_gg(o, n, m, l, p[g + 13], 5, -1444681467);
l = md5_gg(l, o, n, m, p[g + 2], 9, -51403784);
m = md5_gg(m, l, o, n, p[g + 7], 14, 1735328473);
n = md5_gg(n, m, l, o, p[g + 12], 20, -1921207734);
o = md5_hh(o, n, m, l, p[g + 5], 4, -378558);
l = md5_hh(l, o, n, m, p[g + 8], 11, -2022574463);
m = md5_hh(m, l, o, n, p[g + 11], 16, 1839030562);
n = md5_hh(n, m, l, o, p[g + 14], 23, -35309556);
o = md5_hh(o, n, m, l, p[g + 1], 4, -1530992060);
l = md5_hh(l, o, n, m, p[g + 4], 11, 1272893353);
m = md5_hh(m, l, o, n, p[g + 7], 16, -155497632);
n = md5_hh(n, m, l, o, p[g + 10], 23, -1094730640);
o = md5_hh(o, n, m, l, p[g + 13], 4, 681279174);
l = md5_hh(l, o, n, m, p[g + 0], 11, -358537222);
m = md5_hh(m, l, o, n, p[g + 3], 16, -722881979);
n = md5_hh(n, m, l, o, p[g + 6], 23, 76029189);
o = md5_hh(o, n, m, l, p[g + 9], 4, -640364487);
l = md5_hh(l, o, n, m, p[g + 12], 11, -421815835);
m = md5_hh(m, l, o, n, p[g + 15], 16, 530742520);
n = md5_hh(n, m, l, o, p[g + 2], 23, -995338651);
o = md5_ii(o, n, m, l, p[g + 0], 6, -198630844);
l = md5_ii(l, o, n, m, p[g + 7], 10, 11261161415);
m = md5_ii(m, l, o, n, p[g + 14], 15, -1416354905);
n = md5_ii(n, m, l, o, p[g + 5], 21, -57434055);
o = md5_ii(o, n, m, l, p[g + 12], 6, 1700485571);
l = md5_ii(l, o, n, m, p[g + 3], 10, -1894446606);
m = md5_ii(m, l, o, n, p[g + 10], 15, -1051523);
n = md5_ii(n, m, l, o, p[g + 1], 21, -2054922799);
o = md5_ii(o, n, m, l, p[g + 8], 6, 1873313359);
l = md5_ii(l, o, n, m, p[g + 15], 10, -30611744);
m = md5_ii(m, l, o, n, p[g + 6], 15, -1560198380);
n = md5_ii(n, m, l, o, p[g + 13], 21, 1309151649);
o = md5_ii(o, n, m, l, p[g + 4], 6, -145523070);
l = md5_ii(l, o, n, m, p[g + 11], 10, -1120210379);
m = md5_ii(m, l, o, n, p[g + 2], 15, 718787259);
n = md5_ii(n, m, l, o, p[g + 9], 21, -343485551);
o = safe_add(o, j);
n = safe_add(n, h);
m = safe_add(m, f);
l = safe_add(l, e)
}
return Array(o, n, m, l)
}
function md5_cmn(h, e, d, c, g, f) {
return safe_add(bit_rol(safe_add(safe_add(e, h), safe_add(c, f)), g), d)
}
function md5_ff(g, f, k, j, e, i, h) {
return md5_cmn((f & k) | ((~f) & j), g, f, e, i, h)
}
function md5_gg(g, f, k, j, e, i, h) {
return md5_cmn((f & j) | (k & (~j)), g, f, e, i, h)
}
function md5_hh(g, f, k, j, e, i, h) {
return md5_cmn(f ^ k ^ j, g, f, e, i, h)
}
function md5_ii(g, f, k, j, e, i, h) {
return md5_cmn(k ^ (f | (~j)), g, f, e, i, h)
}
function core_hmac_md5(c, f) {
var e = str2binl(c);
if (e.length > 16) {
e = core_md5(e, c.length * chrsz)
}
var a = Array(16),
d = Array(16);
for (var b = 0; b < 16; b++) {
a[b] = e[b] ^ 909522486;
d[b] = e[b] ^ 1549556828
}
var g = core_md5(a.concat(str2binl(f)), 512 + f.length * chrsz);
return core_md5(d.concat(g), 512 + 128)
}
function safe_add(a, d) {
var c = (a & 65535) + (d & 65535);
var b = (a >> 16) + (d >> 16) + (c >> 16);
return (b << 16) | (c & 65535)
}
function bit_rol(a, b) {
return (a << b) | (a >>> (32 - b))
}
function str2binl(d) {
var c = Array();
var a = (1 << chrsz) - 1;
for (var b = 0; b < d.length * chrsz; b += chrsz) {
c[b >> 5] |= (d.charCodeAt(b / chrsz) & a) << (b % 32)
}
return c
}
function binl2str(c) {
var d = "";
var a = (1 << chrsz) - 1;
for (var b = 0; b < c.length * 32; b += chrsz) {
d += String.fromCharCode((c[b >> 5] >>> (b % 32)) & a)
}
return d
}
function binl2hex(c) {
var b = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
var d = "";
for (var a = 0; a < c.length * 4; a++) {
d += b.charAt((c[a >> 2] >> ((a % 4) * 8 + 4)) & 15) + b.charAt((c[a >> 2] >> ((a % 4) * 8)) & 15)
}
return d
}
function binl2b64(d) {
var c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var f = "";
for (var b = 0; b < d.length * 4; b += 3) {
var e = (((d[b >> 2] >> 8 * (b % 4)) & 255) << 16) | (((d[b + 1 >> 2] >> 8 * ((b + 1) % 4)) & 255) << 8) | ((d[b + 2 >> 2] >> 8 * ((b + 2) % 4)) & 255);
for (var a = 0; a < 4; a++) {
if (b * 8 + a * 6 > d.length * 32) {
f += b64pad
} else {
f += c.charAt((e >> 6 * (3 - a)) & 63)
}
}
}
return f
};
window.f = hex_md5(mwqqppz)
从最后一行可知,window.f就是对mwqqppz进行hex_md5()函数的加密,再联系上文console中打印出来的,相当于是对加运算后的13位时间戳进行hex_md5(),代码如下
import requests
import time
import execjs
cookies = {
'sessionid': 'g1ouqiqexr4usavkkiexznbgejgprd39',
}
headers = {
'user-agent': 'yuanrenxue.project',
}
timestamp = int(time.time()) * 1000 + 100000000
js_code = execjs.get()
js_read = js_code.compile(open('hunxiao.js', encoding='utf-8').read())
func = 'hex_md5("{}")'.format(timestamp)
m = js_read.eval(func)
sum = 0
for page in range(1, 6):
params = {
'page': page,
'm': m + '丨' + str(int(timestamp / 1000)),
}
resp = requests.get('https://match.yuanrenxue.cn/api/match/1', params=params, cookies=cookies, headers=headers).json()
print(resp)
datas_list = resp.get('data')
for data_list in datas_list:
print(data_list)
sum += int(data_list.get('value'))
print(sum, sum/50)
https://blog.csdn.net/weixin_44611400/article/details/130410857
import requests
s = requests.session()
headers = {
'authority': 'match.yuanrenxue.cn',
'Connection': 'keep-alive',
'sec-ch-ua': '"Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"',
'content-length': '0',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36',
'origin': 'https://match.yuanrenxue.cn',
'sec-fetch-site': 'same-origin',
'sec-ch-ua-mobile': '?0',
'accept': '*/*',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'referer': 'https://match.yuanrenxue.cn/match/3',
'Accept-Encoding': 'gzip, deflate, br',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
'cookie': 'Hm_lvt_9bcbda9cbf86757998a2339a0437208e=1700804481,1701049088,1701064160,1701133771; Hm_lvt_c99546cf032aaa5a679230de9a95c7db=1700804481,1701049088,1701064160,1701133771; qpfccr=true; no-alert3=true; tk=7428199885286583787; sessionid=49l494ccgcff44pfc7kgzy8jip6wyq8j; Hm_lpvt_9bcbda9cbf86757998a2339a0437208e=1701133780; Hm_lpvt_c99546cf032aaa5a679230de9a95c7db=1701133780',
}
headers1 = {'user-agent': 'yuanrenxue.project'}
val_list = []
for page in range(1, 6):
s.headers.clear()
s.headers.update(headers)
resp = s.post('https://match.yuanrenxue.cn/jssm')
cookies = requests.utils.dict_from_cookiejar(resp.cookies)
print(cookies)
s.cookies.update(cookies)
s.headers.update(headers1)
resp1 = s.get(f'https://match.yuanrenxue.cn/api/match/3?page={page}').json()
print(resp1)
datas = resp1.get('data')
for data in datas:
val_list.append(data['value'])
print(val_list)
print(max(val_list, key=val_list.count))
https://www.52pojie.cn/forum.php?mod=viewthread&tid=1346210&highlight=%D1%F9%CA%BD%B8%C9%C8%C5
import re
import requests
import base64
import hashlib
def md5_encrypt(string):
md5_hash = hashlib.md5()
md5_hash.update(string.encode('utf-8'))
encrypted_string = md5_hash.hexdigest()
return encrypted_string
cookies = {
'sessionid': '49l494ccgcff44pfc7kgzy8jip6wyq8j',
}
headers = {
'user-agent': 'yuanrenxue.project',
}
resultt = []
for page in range(1, 6):
resp = requests.get(f'https://match.yuanrenxue.cn/api/match/4?page={page}', cookies=cookies, headers=headers).json()
info = resp.get('info')
key = resp.get('key')
value = resp.get('value')
print(info)
dicts = {
'iVBORw0KGgoAAAANSUhEUgAAABQAAAAdCAYAAACqhkzFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAMTSURBVEhLrZY/TBNRHMe/bY82LeGA0Dp4NTGYqO1gdKEMwmQcGh38M5CQlGDSwWiMAwwYg2iCJsZJQ9CJ0ETsQMJgwuagLIUFXIAFXNoYcqDloLRXrq3v7v3aXktbSPCTXO77fZRvf/feu9+r5dz5iwX8R+oESigMPka6/wb2vSJUBx+1QoVD3kTz7DScb+f4YBVHA6U+ZKLPsON1IE9DtbDLP9AxEIawRgOEle4c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encode((key + value).encode('utf-8')).decode('utf-8').replace('=', ''))
print(j_key) # j_key是图片不显示的
td_lists = re.findall('(.*?) ', info) # 10个td
for td_list in td_lists:
indexs = []
index = 0
nums = re.findall('img_number (.*?)\\"', td_list)
dics = re.findall('base64,(.*?)\\"', td_list)
lefts = re.findall('"left:(.*?)px', td_list)
print('lefts:', lefts)
for num in nums:
if num == j_key:
else:
indexs.append(index)
index += 1
print(indexs)
i = 0
b = [''] * len(indexs)
for index in indexs:
x = int(i + float(lefts[index]) / 11.5)
b[x] = index
i += 1
print(b)
total = []
for index in b:
total.append(dicts.get(dics[index]))
print(total)
result = int(''.join(map(str, total)))
resultt.append(result)
print(resultt)
sum = 0
for numb in resultt:
sum += numb
print(sum)
https://blog.csdn.net/qq_44906798/article/details/132300699
import pywasm
import requests
import time
import random
cookies = {
'sessionid': 'nr1tvren1qwg4cbgu8vmxfecoux78ncn',
}
headers = {
'user-agent': 'yuanrenxue.project',
}
sum = 0
for page in range(1, 6):
t2 = int(time.time() / 2)
# parseInt(Date.parse(new Date())/1000/2 - Math.floor(Math.random() * (50) + 1));
t3 = int(time.time() / 2 - int(random.random() * 50 + 1))
# window.q = instance.exports.encode; 可以访问到模块中导出的名为encode的函数
wasm = pywasm.load('main.wasm')
t1 = wasm.exec('encode', [t2, t3])
params = {
'm': str(t1) + '|' + str(t2) + '|' + str(t3),
'page': str(page),
}
resp = requests.get('https://match.yuanrenxue.cn/api/match/15', params=params, cookies=cookies, headers=headers).json()
datas = resp['data']
for data in datas:
sum += data['value']
print(sum)
https://www.cnblogs.com/Eeyhan/p/15657354.html
import requests
import time
import execjs
cookies = {
'sessionid': 'hsypbztikghnhwlxukvklolnq5txcmbp',
}
headers = {
'user-agent': 'yuanrenxue.project',
}
sum = 0
for page in range(1, 6):
timestamp = int(time.time() * 1000)
print('timestamp:', timestamp)
with open('ceshi.js') as f:
js_code = f.read()
js = execjs.compile(js_code)
result = js.call('btoa', str(timestamp))
print('m:', result)
params = {
'm': str(result),
't': str(timestamp),
'page': page,
}
response = requests.get('https://match.yuanrenxue.cn/api/match/16', params=params, cookies=cookies, headers=headers).json()
print('response:', response)
for data in response['data']:
sum += data['value']
print('sum:', sum)
http://t.csdnimg.cn/8PCfR
http://t.csdnimg.cn/gF31y
import tls_client
session = tls_client.Session(client_identifier='Chrome119', random_tls_extension_order=True)
session.headers = {
'user-agent': 'yuanrenxue.project',
}
cookies = {
'sessionid': 'dfd2jp1ko9o39bwkzom28wj1kcqxj9c7',
}
sum = 0
for page in range(1, 6):
url = f"https://match.yuanrenxue.cn/api/match/19?page={page}"
resp = session.get(url, cookies=cookies).json()
print('resp:', resp)
for data in resp['data']:
sum += data['value']
print('sum:', sum)