Giter Site home page Giter Site logo

python---9uu's Introduction

*Crypto模块安装方法:pip install pycryptodome 分析思路:https://www.52pojie.cn/thread-1149036-1-1.html

1.当前分析的是加密参数

(1)该接口进行了AES/CBC/PKCS7Padding加密

(2)主页请求地址,这是一个post请求:https://alipaydatabase.com/video/lists

(3)密钥:AG+BwcnekYZy$9f7X#b2zdB93brfFMmz

(4)偏移:(f%Z4F+qtFh)+(六位随机数字和随机字母)//这两括号里面是的值是一个整体

(5)随机生成的范围["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]

(6)sign值进行了md5加密:devicetype=pc&page=页数&timestamp=13位的时间戳&6Bf2_khP?4tuBC#@WEVf752x8beCE@uB-Z

(7)post请求的data参数{"tag":"","timestamp":13位的时间戳,"devicetype":"pc","page":页数,"encode_sign":"sign值"}

2.当前分析的是解密参数

(1)解密的偏移值主要是还是请求,只有把请求发出去才可以获取偏移的后六位数

例如: 响应内容如下: { "code":0, "msg":"\u64cd\u4f5c\u6210\u529f",//unicode转中文-->操作成功 "data":"xxxxxxxx=", "suffix":"pvYcSk" } 这个suffix,就是我们的解密偏移后六位数

(2)拼接出来如下-->:f%Z4F+qtFhpvYcSk

这个就是我们解密所需要的偏移了

python---9uu's People

Contributors

zg10472580 avatar

Stargazers

Zmm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.