吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1467|回复: 6
收起左侧

[Web逆向] 记一次DE物后台请求sign加密算法过程

  [复制链接]
ab19950220 发表于 2023-2-9 22:20
本帖最后由 ab19950220 于 2023-2-12 17:56 编辑

事件前要:某一个小伙伴需要商家后台管理每日统计数据 就是下图圈起来这块数据


废话不多说,直接开始分析,登陆上去先找到对应接口
2.png
1.观察返回数据可以看出 这是我们的目标接口

找到关键位置 进行断点调试
4.png
image.png
image.png
5.png
image.png
image.png
image.png
image.png

6.png
[Python] 纯文本查看 复制代码
headers = {
    'Host': "stark.dewu.com",
    'User-Agent': "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36",
    'appid': "h5",
    'channel': "pc",
    'clientId': "stark",
    'content-type': "application/json",
    'Accept-Encoding': "gzip, deflate",
    'platform': "h5",
    'Accept': "*/*",
    }
   post_data = dict()
   post_data['bizChannelId'] = '-1'
   post_data['brandIds'] = []
   post_data['categoryLv3Ids'] = []
   post_data['endDate'] = "20230205"
   post_data['startDate'] = "20230130"
   post_data['sign'] = return_sign('bizChannelId-1brandIdscategoryLv3IdsendDate20230205startDate20230130timeSpanType2timeType2048a9c4943398714b356a696503d2d36')
   post_data['timeSpanType'] = "2"
   post_data['timeType'] = "2"
#    print(headers)
#    print(post_data)
   post_data = str(post_data).encode('utf-8')
   res_data = requests.post(index_load_list_url, headers=headers, data=post_data).text


最终结果:
{"code":200,"msg":"success","data":{"tradeOutline":[{"title":"提交订单金额","tips":"","value":70931600,"dataType":2,"chainRatio":3747},{"title":"提交订单笔单价","tips":"","value":17921,"dataType":2,"chainRatio":437},{"title":"支付订单金额","tips":"","value":60511600,"dataType":2,"chainRatio":3771},{"title":"支付订单笔单价","tips":"","value":17882,"dataType":2,"chainRatio":418},{"title":"交易成功金额","tips":"","value":32452900,"dataType":2,"chainRatio":0},{"title":"交易成功笔单价","tips":"","value":18294,"dataType":2,"chainRatio":694}],"submitOrderCnt":{"value":3958,"chainRatio":3171},"submitPaidRate":8550,"paidOrderCnt":{"value":3384,"chainRatio":3219},"paidSuccessRate":5242,"successOrderCnt":{"value":1774,"chainRatio":-648},"submitSuccessRate":4482,"returnOrderCnt":0,"returnReasonList":[{"number":0,"contrastRate":"0","reasonTypeName":"质检不通过"},{"number":0,"contrastRate":"0","reasonTypeName":"鉴定不通过"},{"number":0,"contrastRate":"0","reasonTypeName":"虚假发货"}],"returnOutline":[{"title":"未支付订单数","tips":"","value":574,"dataType":1,"chainRatio":2899},{"title":"未支 付订单金额","tips":"","value":10420000,"dataType":2,"chainRatio":3608},{"title":"未发货取消订单数","tips":"","value":910,"dataType":1,"chainRatio":3725},{"title":"未发货取消订单金额","tips":"","value":15959500,"dataType":2,"chainRatio":3892},{"title":"卖家未履约订单数","tips":"","value":0,"dataType":1,"chainRatio":0},{"title":"卖家未履约订单金额","tips":"","value":0,"dataType":2,"chainRatio":0}],"paidOrderCntTrend":[{"statTime":202245,"value":17471,"dataType":1},{"statTime":202246,"value":21246,"dataType":1},{"statTime":202247,"value":15991,"dataType":1},{"statTime":202248,"value":33409,"dataType":1},{"statTime":202249,"value":19832,"dataType":1},{"statTime":202250,"value":18112,"dataType":1},{"statTime":202251,"value":14225,"dataType":1},{"statTime":202252,"value":11514,"dataType":1},{"statTime":202301,"value":12469,"dataType":1},{"statTime":202302,"value":8488,"dataType":1},{"statTime":202303,"value":2604,"dataType":1},{"statTime":202304,"value":2560,"dataType":1},{"statTime":202305,"value":3384,"dataType":1}],"paIDAmountTrend":[{"statTime":202245,"value":326449500,"dataType":2},{"statTime":202246,"value":402394700,"dataType":2},{"statTime":202247,"value":306081100,"dataType":2},{"statTime":202248,"value":666986000,"dataType":2},{"statTime":202249,"value":402780200,"dataType":2},{"statTime":202250,"value":363504000,"dataType":2},{"statTime":202251,"value":290578500,"dataType":2},{"statTime":202252,"value":238319500,"dataType":2},{"statTime":202301,"value":256257900,"dataType":2},{"statTime":202302,"value":179337300,"dataType":2},{"statTime":202303,"value":49506700,"dataType":2},{"statTime":202304,"value":43940200,"dataType":2},{"statTime":202305,"value":60511600,"dataType":2}],"paidAvePriceTrend":[{"statTime":202245,"value":18685,"dataType":2},{"statTime":202246,"value":18940,"dataType":2},{"statTime":202247,"value":19141,"dataType":2},{"statTime":202248,"value":19964,"dataType":2},{"statTime":202249,"value":20310,"dataType":2},{"statTime":202250,"value":20070,"dataType":2},{"statTime":202251,"value":20427,"dataType":2},{"statTime":202252,"value":20698,"dataType":2},{"statTime":202301,"value":20552,"dataType":2},{"statTime":202302,"value":21128,"dataType":2},{"statTime":202303,"value":19012,"dataType":2},{"statTime":202304,"value":17164,"dataType":2},{"statTime":202305,"value":17882,"dataType":2}],"submitPaidRateTrend":[{"statTime":202245,"value":8380,"dataType":3},{"statTime":202246,"value":8351,"dataType":3},{"statTime":202247,"value":8434,"dataType":3},{"statTime":202248,"value":8534,"dataType":3},{"statTime":202249,"value":8433,"dataType":3},{"statTime":202250,"value":8458,"dataType":3},{"statTime":202251,"value":8574,"dataType":3},{"statTime":202252,"value":8593,"dataType":3},{"statTime":202301,"value":8609,"dataType":3},{"statTime":202302,"value":8616,"dataType":3},{"statTime":202303,"value":8217,"dataType":3},{"statTime":202304,"value":8519,"dataType":3},{"statTime":202305,"value":8550,"dataType":3}],"submitSuccessRateTrend":[{"statTime":202245,"value":7500,"dataType":3},{"statTime":202246,"value":7384,"dataType":3},{"statTime":202247,"value":7507,"dataType":3},{"statTime":202248,"value":7350,"dataType":3},{"statTime":202249,"value":7299,"dataType":3},{"statTime":202250,"value":7277,"dataType":3},{"statTime":202251,"value":7506,"dataType":3},{"statTime":202252,"value":7310,"dataType":3},{"statTime":202301,"value":7470,"dataType":3},{"statTime":202302,"value":7518,"dataType":3},{"statTime":202303,"value":6762,"dataType":3},{"statTime":202304,"value":6313,"dataType":3},{"statTime":202305,"value":4482,"dataType":3}]},"status":200}
完美!!!

免费评分

参与人数 3威望 +1 吾爱币 +22 热心值 +3 收起 理由
爱钢至深 + 1 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
涛之雨 + 1 + 20 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
笙若 + 1 + 1 谢谢@Thanks!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

debug_cat 发表于 2023-2-10 16:01
人生苦短,我用Python
 楼主| ab19950220 发表于 2023-2-11 13:42
我好像设置错权限了,这个怎么更改,第一次发帖 有点不太熟练

点评

帖子下方编辑按钮,改成所有人都可以阅读?  详情 回复 发表于 2023-2-12 01:52
Hmily 发表于 2023-2-12 01:52
ab19950220 发表于 2023-2-11 13:42
我好像设置错权限了,这个怎么更改,第一次发帖 有点不太熟练

帖子下方编辑按钮,改成所有人都可以阅读?
g0101s 发表于 2023-2-15 18:49
大佬,微信小程序要怎么弄
 楼主| ab19950220 发表于 2023-2-15 19:50
g0101s 发表于 2023-2-15 18:49
大佬,微信小程序要怎么弄

微信小程序反编译后一样的
最强野猪佩奇 发表于 2023-2-16 18:42
青蛙哥 教我 我要把大哥的头锤爆
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-24 17:00

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表