码迷,mamicode.com
首页 > 其他好文 > 详细

淘口令解析

时间:2019-12-27 11:51:03      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:comm   name   kpi   aop   api   解析   def   val   处理   

淘口令解析

通过程序解析淘口令,无需联盟开发者权限,只需几行代码就可实现自动识别淘口令:

def query_password(sign_server, share_password):
    data = "{\"passwordContent\":\"" + share_password + "\"}"
    v = "1.0"
    api = "mtop.taobao.sharepassword.querypassword"
    call_gw_api(sign_server, api, v, data)


if __name__ == '__main__':
    sign_server = "http://192.168.3.5:6778/xsign"
    share_password = "hv****MNT5"
    query_password(sign_server, share_password)

程序返回结果:

{
  "api": "mtop.taobao.sharepassword.querypassword",
  "data": {
    "createAppkey": "21380790",
    "validDate": "15796****632",
    "isTaoFriend": "false",
    "weakShow": "0",
    "taopwdOwnerId": "59****22",
    "title": "淘口令",
    "templateId": "common",
    "extendInfo": "{\"groupName\":\"薄呢外套\",\"instanceId\":\"42\",\"groupDesc\":\"我发现一个特别适合你的主题\",\"groupVister\":\"穿着舒适透气\",\"callBack\":\"38\",\"genAppKey\":\"21380790\",\"groupImage\":\"//gw.alicdn.com/tfs/TB1t4O1skvoK1RjSZFwXXciCFXa-195-195.png\",\"groupFlag\":\"\"}",
    "myTaopwdToast": "",
    "content": "我发现一个特别适合你的主题:薄呢外套,快去看看吧",
    "url": "https://market.m.taobao.com/app/tbsearchwireless-pages/cloudtopic-joint-page/p/cloudtopic-joint-page?*********",
    "sPlan-rPlan": "A:B",
    "target": "copy",
    "backflowTemplateId": "common",
    "picUrl": "http://gw.alicdn.com/tfs/TB1ITjGshnaK1RjSZFBXXcW7VXa-940-940.png",
    "popUrl": null,
    "rankPic": null,
    "password": "hv****T5",
    "ownerName": "我*****",
    "price": null,
    "rankNum": null,
    "ownerFace": "https://gw.alicdn.com/sns_logo/T1oh*****.jpg",
    "bizId": "iCloud",
    "popType": null
  },
  "ret": [
    "SUCCESS::调用成功"
  ],
  "v": "1.0"
}

已对结果部分敏感信息打码处理,程序实际使用中是完整的内容。

淘口令解析

标签:comm   name   kpi   aop   api   解析   def   val   处理   

原文地址:https://www.cnblogs.com/super19911115/p/12106152.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!