声明:
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
有相关问题请第一时间头像私信联系我删除博客!
前言
简单分析一下极验4文字点选。
逆向过程
训练和孪生部分我就不说了。
var uuid = function () { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = Math.random() * 16 | 0; var v = c === 'x' ? r : (r & 0x3 | 0x8); return v.toString(16); }); }; function getData(lot_number,captcha_id,date_time,passtime,userresponse,payload,process_token){ result = { "passtime": passtime, "userresponse": userresponse, "device_id": "", "lot_number": lot_number, } Object.assign(result,window.i(lot_number,captcha_id,'md5',"1",0,date_time,"")) Object.assign(result,{ "geetest": "captcha", "lang": "zh", "ep": "123", "biht": "1426265548", gee_guard:undefined, MEcY: "4yMyZD", em:{ "ph": 0, "cp": 0, "ek": "11", "wd": 1, "nt": 0, "si": 0, "sc": 0 } }) w = window.s(window.encrypt['stringify'](result),{ options:{ 'pt':'1', } }) // console.log(window.guid()) data = { "callback": `geetest_${Date.now()}`, "captcha_id": captcha_id, "client_type": "web", "lot_number": lot_number, "payload": payload, "process_token": process_token, "payload_protocol": 1, "pt": "1", "w": w } return data }