Git Product home page Git Product logo

yyets-restorer's Introduction

yyets-restorer

Build Status

用来解密人人影视客户端下载的视频的工具

人人影视客户端直链接下载

GET http://www.zmzfile.com/file/search?keyword=%E9%80%83%E9%81%BF%E5%8F%AF%E8%80%BB

keyword=为要搜索的关键词,可以为url编码。

返回:

[
    {
        "file_name": "逃避可耻却有用.NIGERUHA.HAJIDAGA.YAKUNITATSU.Ep01.Chi_Jap.HDTVrip.1280X720-ZhuixinFanV2.mp4",
        "file_size": 733967923,
        "fileid": "fa1a42ee8066da0aa2b66ca470814489160ad214",
        "url": "https://www.zmzfile.com:9043/rt/route?fileid=fa1a42ee8066da0aa2b66ca470814489160ad214"
    },
    {
        "file_name": "逃避可耻却有用.NIGERUHA.HAJIDAGA.YAKUNITATSU.Ep02.Chi_Jap.HDTVrip.1280X720-ZhuixinFan.mp4",
        "file_size": 629086728,
        "fileid": "d21a081cc6a32daa85310ca6aad81e378f0b736e",
        "url": "https://www.zmzfile.com:9043/rt/route?fileid=d21a081cc6a32daa85310ca6aad81e378f0b736e"
   },
   以下省略………………
]

对URL继续进行get,经过几轮重定向之后,即可得到真正的下载地址(根据你的IP重定向到不同的服务器)。 然后可以使用curl url -C - -Lv -o xxx.mp4下载。

加密原理

原理由JasonKhew96提供,在此非常感谢他的工作!

简单复述下就是使用md5(file_id+'zm'+file_id)作为key,以aes-128-ecb每4096个字节加密前16个字节。

使用方法

需要Python(2、3均可),先安装cryptography

pip install cryptography

然后运行如下命令:

python restore.py sample.mp4 fb755fd1b51c769bfed987e2a8c8b03ee7a8e7cc

或者直接使用release下的二进制文件

restore.exe sample.mp4 fb755fd1b51c769bfed987e2a8c8b03ee7a8e7cc

另请参见

License

Apache License 2.0

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.