mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 21:55:07 +08:00
猿人学第5题-js 混淆-乱码增强
This commit is contained in:
parent
82cbacf36b
commit
0793993b0c
@ -27,14 +27,28 @@ function RM4hZBv0dDon443M(pr, dada_time){
|
||||
return _0x29dd83['toString']()
|
||||
}
|
||||
|
||||
pr = [
|
||||
"b2148c31fb09c98f90ce78424d6cdd58",
|
||||
"3be88c860ec6fc7e4e33fe7a167d02dd",
|
||||
"0be14faf5221bbdefdede418b077ca60",
|
||||
"9c2b5781ba44e92f5e4b3f4d7951b899",
|
||||
"08aca52cf82f1e26cc1f4dd35db9795e"
|
||||
];
|
||||
// pr = [
|
||||
// "b2148c31fb09c98f90ce78424d6cdd58",
|
||||
// "3be88c860ec6fc7e4e33fe7a167d02dd",
|
||||
// "0be14faf5221bbdefdede418b077ca60",
|
||||
// "9c2b5781ba44e92f5e4b3f4d7951b899",
|
||||
// "08aca52cf82f1e26cc1f4dd35db9795e"
|
||||
// ];
|
||||
// dada_time = "1678253268764";
|
||||
// console.log(RM4hZBv0dDon443M(pr, dada_time));
|
||||
|
||||
dada_time = "1678253268764";
|
||||
|
||||
console.log(RM4hZBv0dDon443M(pr, dada_time));
|
||||
function RM4hZBv0dDon443M_f(pr_list, dada_time) {
|
||||
return{
|
||||
"cookie_m": pr_list[4],
|
||||
"cookie_RM4": RM4hZBv0dDon443M(pr_list, dada_time),
|
||||
"m": _$yw,
|
||||
"f": _$Wa
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
module.exports =
|
||||
{
|
||||
RM4hZBv0dDon443M_f
|
||||
};
|
||||
|
@ -0,0 +1,47 @@
|
||||
import requests
|
||||
|
||||
|
||||
def sign():
|
||||
url = f"http://127.0.0.1:3005/sign_5"
|
||||
session = requests.session()
|
||||
headers = {
|
||||
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
||||
}
|
||||
session.headers = headers
|
||||
response = session.request("POST", url, data={})
|
||||
return response.json()
|
||||
|
||||
|
||||
def challenge5(encrypt_params, page_num):
|
||||
url = "https://match.yuanrenxue.com/api/match/5?page=%s" % page_num
|
||||
params = {
|
||||
"m": encrypt_params['m'],
|
||||
"f": encrypt_params['f']
|
||||
}
|
||||
cookie_m = encrypt_params['cookie_m']
|
||||
RM4hZBv0dDon443M = encrypt_params['cookie_RM4']
|
||||
session = requests.session()
|
||||
headers = {
|
||||
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
||||
'cookie': f'sessionid=lrdqq6irmhyoy2ingpso9l3uzschqw1s; m={cookie_m}; RM4hZBv0dDon443M={RM4hZBv0dDon443M}'
|
||||
}
|
||||
print(headers)
|
||||
session.headers = headers
|
||||
response = requests.get(url, headers=headers, params=params)
|
||||
return response.json()
|
||||
|
||||
|
||||
def run():
|
||||
data_num = 0
|
||||
for page in range(1, 6):
|
||||
res = sign()
|
||||
response_json = challenge5(res, page)
|
||||
data_list = response_json.get('data')
|
||||
print(data_list)
|
||||
for data in data_list:
|
||||
data_num += int(data.get('value'))
|
||||
print(data_num)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
run()
|
File diff suppressed because one or more lines are too long
@ -1,15 +1,14 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const encryption = require("./aes-test");
|
||||
const pr = require("./pr");
|
||||
var bodyParser = require('body-parser');
|
||||
app.use(bodyParser());
|
||||
|
||||
|
||||
app.post('/sign_60', function (req, res) {
|
||||
app.post('/sign_5', function (req, res) {
|
||||
let result = '';
|
||||
let pageNum = req.body.pageNum;
|
||||
result = encryption.sign(pageNum);
|
||||
res.send(result.toString());
|
||||
result = pr.getCookie();
|
||||
res.send(result);
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user