Skip to content

aldsb/ali_ecc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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 -> 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?

LICENSE

Anti-996-License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%