Coder Social home page Coder Social logo

ali_ecc's Introduction

AliyunDrive ECC Signature

Welcome star, issue and pull requests.

What can it do

  1. Generate random ECC key-pair to create a new session.
  2. Get the file’s download url without invalid X-Device-Id.

How to use

  1. Set the deviceId in line 7.
  2. Set the userId in line 8.
  3. Set the authorization in line 34.
  4. (Optional) Set the private key in line 11,12. (Only if you want to use custom key-pair.)

Some details

  1. deviceId could be found in DevTools -> Application -> Local Storage -> cna.

  2. userId could be found in DevTools -> Application -> Local Storage -> token -> user_id.

  3. authorization could be found in Network, choose any request, Request Headers -> authorization.

  4. private key could be found in DevTools -> Application -> IndexedDB -> ALIYUN_DRIVE_CLIENT_SIGNATURE -> signature -> privateKey.

    private key will be generated automatically, so there’s no need to specificate.

Last

There’re some problems need to be solved.

  • How to generate a deviceId?
  • How to generate authorization from cookie or local storage?
  • How often is nonce updated? (Could be frozen?)

Test

You can use ali_renew_test.py to test nonce update.

If nonce is 0, it will create a session automatically.

If nonce is larger than 0, it will renew the session.

Notice: If it fails, try to increase the interval.

Now it could pass almost 1000 rounds 👍

LICENSE

Anti-996-License.

ali_ecc's People

Contributors

kazutoiris 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.