赞
踩
通过cipher算法将请求体参数加密,unidbg打包jar给python调用
- if (type.equals("search")){
- String data="{\"addrFilter\":\"1\",\"articleEssay\":\"1\",\"deviceidTail\":\"\",\"exposedCount\":\"0\",\"first_search\":\"1\",\"imagesize\":{\"gridImg\":\"531x531\",\"listImg\":\"390x390\",\"longImg\":\"531x708\"},\"insertArticle\":\"1\",\"insertScene\":\"1\",\"insertedCount\":\"0\",\"isCorrect\":\"1\",\"jdv\":\"0|kong|t_2018512525_store_nopay_else|tuiguang|17093045161922140570002|1709304516\",\"keyword\":\""+keyword+"\",\"localNum\":\"0\",\"newMiddleTag\":\"1\",\"newVersion\":\"3\",\"oneBoxMod\":\"1\",\"orignalSearch\":\"1\",\"orignalSelect\":\"1\",\"page\":\"1\",\"pageEntrance\":\"1\",\"pagesize\":\"10\",\"pvid\":\"\",\"searchVersionCode\":\"9760\",\"secondInsedCount\":\"0\",\"showShopTab\":\"yes\",\"showStoreTab\":\"1\",\"sourceRef\":[{\"eventId\":\"Home_Refresh\",\"pageId\":\"Home_Main\",\"pvId\":\"\"},{\"eventId\":\"Search_Searchthi\",\"isDirectSearch\":\"0\",\"pageId\":\"Search_Activity\",\"pvId\":\"c46631d8a9a14bd99fec2b3c2e8c1ddd\"}],\"stock\":\"1\"}";
- String cipher_string=cipher.b(data.getBytes(StandardCharsets.UTF_8));
- System.out.println(cipher_string);
- }
- def get_cipher(type,keyword):
- cmd = f"java -jar unidbg-master.jar {type} {keyword} "
- signs = subprocess.check_output(cmd, shell=True, cwd="unidbg_master_cipher")
- cipher = signs.strip().decode('utf-8').split("\n")[-1]
- # print(cipher)
- return cipher
获取sign签名 unidbg 调用libjdbitmapkit.so中算法
{
HcCid1: "9987",
HcCid2: "653",
HcCid3: "655",
IsSpecialStock: "0",
MergeSKUType: "mergesku_not_hit_cate",
UserPersonalization: "0",
cornerIconLabelOpt: "1",
filterItemStatus: "1",
hideNewClothes: "1",
labelBgStyle: "1",
mainPicAmplify: "1",
originSearchParseFilter: "1",
searchBackStatus: "1"
cancelTxt: "取消",
filterBodyKey: "promID",
filterPoint: "10003738",
filterTxt: "筛选xx活动商品",
filterTxtClicked: "xx活动商品",
filterTxtImg: "https://m.360buyimg.com/umm/jfs/t1/238079/14/12093/2749/65d7fa8bF69db448b/5113c3758daffd61.png",
filterValue: "10003738||icon_id",
selectImg: "https://m.360buyimg.com/cc/jfs/t1/179357/35/24403/675/626def7fE182fcea4/adabb1b33fca422a.png",
type: "prom"
adEventId: "7",
adIconResCode: "search_001",
adIds: "2884",
keyword: "K70",
linkUrl: "【小米Redmi K70】小米(MI)Redmi K70 第二代骁龙® 8 澎湃OS 第二代2K屏 12GB+256GB 墨羽 小米红米K70 手机【行情 报价 价格 评测】-京东"
keyword: "小米14",
linkUrl: "【小米14】小米14 徕卡光学镜头 光影猎人900 徕卡75mm浮动长焦 骁龙8Gen3 16+512 黑色 小米手机 红米手机 5G【行情 报价 价格 评测】-京东"
keyword: "小米14U",
linkUrl: "【小米 14 Ultra】小米Xiaomi 14Ultra 徕卡光学Summilux镜头 大师人像 双向卫星通信 小米澎湃OS 16+512 黑色 5g手机【行情 报价 价格 评测】-京东"
keyword: "N125G",
keyword: "N13P",
extension_id: "{"ad":"2884","business_type":"16","campaign_type":"23","ch":"1","shop":"1000004123","ts":"1709344187","uniqid":"{\"material_id\":\"18548219923\",\"pos_id\":\"2884\",\"sid\":\"e4e8e876-9086-4d00-bd4d-6dbd88aebda8\"}"}",
followCount: "10917.8 万人关注",
hasNewWare: "1",
homeBussiness: "",
imageSize: "0.66",
logoUrl: "https://img30.360buyimg.com/popshop/jfs/t1/14105/5/16943/9132/62a2aac3Eb89f4984/a74d04a7b0bea54a.jpg",
self: "1",
resCode: "tab_054"
resCode: "search_004"
shopId: "1000004123",
shopName: "小米京东自营旗舰店",
styleType: "5",
venderId: "1000004123"
articleInserted: "1",
cancelTxt: "取消",
filterBodyKey: "promID",
filterPoint: "10003738",
filterTxt: "点击筛选xx活动商品",
filterTxtClicked: "以下是xx活动商品",
filterTxtImg: "https://m.360buyimg.com/umm/jfs/t1/238079/14/12093/2749/65d7fa8bF69db448b/5113c3758daffd61.png",
filterValue: "10003738||icon_id"
buryClient: "1431503009201",
code: "0",
ctmStyle: "1",
curPage: "1",
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。