nilaoda / N_m3u8DL-CLI

[.NET] m3u8 downloader 开源的命令行m3u8/HLS/dash下载器,支持普通AES-128-CBC解密,多线程,自定义请求头等. 支持简体中文,繁体中文和英文. English Supported.
https://nilaoda.github.io/N_m3u8DL-CLI/
MIT License
13.84k stars 2.12k forks source link

视频解密 #765

Closed MyGoodbye closed 1 year ago

MyGoodbye commented 1 year ago

可以直接用key解密吗,没有keyIV

nilaoda commented 1 year ago

IV不是必须的

MyGoodbye commented 1 year ago

直接- -key然后加上16位密钥吗?

MyGoodbye commented 1 year ago

IV不是必须的 我有16位的hex密钥,该如何使用呢,希望大佬能稍微示范下

nilaoda commented 1 year ago

https://base64.guru/converter/encode/hex

--useKeyBase64 BASE64字符串
MyGoodbye commented 1 year ago

https://base64.guru/converter/encode/hex

--useKeyBase64 BASE64字符串

好的,谢谢

MyGoodbye commented 1 year ago

https://base64.guru/converter/encode/hex

--useKeyBase64 BASE64字符串

大佬,我按如上操作,显示输入不是完整的块,然后窗口关闭,请问这个是什么原因呢

nilaoda commented 1 year ago

一般是你的KEY不正确

MyGoodbye commented 1 year ago

nilaoda @.***>於 2023年1月12日 週四,16:41寫道:

一般是你的KEY不正确

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1379984838, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF27KQZAC5TJSLU5U4Y3WR67UVANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

我直接用32位key是可以解密成功的

nilaoda commented 1 year ago

程序默认的解密方式是AES-128-CBC

MyGoodbye commented 1 year ago

陳峯 @.***>於 2023年1月12日 週四,16:42寫道:

nilaoda @.***>於 2023年1月12日 週四,16:41寫道:

一般是你的KEY不正确

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1379984838, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF27KQZAC5TJSLU5U4Y3WR67UVANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

我直接用32位key是可以解密成功的

我用那个decryptgui mp4 hex解密是可以的,但是那个软件总是报毒,而且也多一步操作,实在有点繁琐

MyGoodbye commented 1 year ago

nilaoda @.***>於 2023年1月12日 週四,16:47寫道:

程序默认的解密方式是AES-128-CBC

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1379990668, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF27CGTZCKUF5WNJFUYTWR7AJRANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

那可以更换解密方式吗

nilaoda commented 1 year ago

。。。。你应该使用 N_m3u8DL-RE 而不是过时的 N_m3u8DL-CLI

widevine有以下加密:

在 N_m3u8DL-RE 中,你可以使用以下命令来设置DRM解密密钥:

N_m3u8DL-RE --key kid1:key1 "http://xxxx"

程序将自动调用mp4decrypt进行解密

KID可以使用 mp4decryptgui 获取

MyGoodbye commented 1 year ago

nilaoda @.***>於 2023年1月12日 週四,16:57寫道:

。。。。你应该使用 N_m3u8DL-RE https://github.com/nilaoda/N_m3u8DL-RE 而不是过时的 N_m3u8DL-CLI

widevine有以下加密:

  • cenc AES-CTR scheme
  • cbc1 AES-CBC scheme
  • cens AES-CTR subsample pattern encryption scheme
  • cbcs AES-CBC subsample pattern encryption scheme

在 N_m3u8DL-RE 中,你可以使用以下命令来设置DRM解密密钥:

N_m3u8DL-RE --key kid1:key1 "http://xxxx"

KID可以使用 mp4decryptgui 获取

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1380001576, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF25ZPB24PHILYNF6QJ3WR7BRBANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

好的,我晚上试试,用那个getwvkey可以直接得到kid和key吧

MyGoodbye commented 1 year ago

nilaoda @.***>於 2023年1月12日 週四,16:57寫道:

。。。。你应该使用 N_m3u8DL-RE https://github.com/nilaoda/N_m3u8DL-RE 而不是过时的 N_m3u8DL-CLI

widevine有以下加密:

  • cenc AES-CTR scheme
  • cbc1 AES-CBC scheme
  • cens AES-CTR subsample pattern encryption scheme
  • cbcs AES-CBC subsample pattern encryption scheme

在 N_m3u8DL-RE 中,你可以使用以下命令来设置DRM解密密钥:

N_m3u8DL-RE --key kid1:key1 "http://xxxx"

KID可以使用 mp4decryptgui 获取

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1380001576, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF25ZPB24PHILYNF6QJ3WR7BRBANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

我运行显示mp4decrypt not found这个是

MyGoodbye commented 1 year ago

nilaoda @.***>於 2023年1月12日 週四,16:57寫道:

。。。。你应该使用 N_m3u8DL-RE https://github.com/nilaoda/N_m3u8DL-RE 而不是过时的 N_m3u8DL-CLI

widevine有以下加密:

  • cenc AES-CTR scheme
  • cbc1 AES-CBC scheme
  • cens AES-CTR subsample pattern encryption scheme
  • cbcs AES-CBC subsample pattern encryption scheme

在 N_m3u8DL-RE 中,你可以使用以下命令来设置DRM解密密钥:

N_m3u8DL-RE --key kid1:key1 "http://xxxx"

KID可以使用 mp4decryptgui 获取

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1380001576, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF25ZPB24PHILYNF6QJ3WR7BRBANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

可以了,谢谢

MyGoodbye commented 1 year ago

我下午试了可以,晚上就又解密不了,出来的视频仍然是被加密过的,无法播放

陳峯 @.***>於 2023年1月12日 週四,17:54寫道:

nilaoda @.***>於 2023年1月12日 週四,16:57寫道:

。。。。你应该使用 N_m3u8DL-RE https://github.com/nilaoda/N_m3u8DL-RE 而不是过时的 N_m3u8DL-CLI

widevine有以下加密:

  • cenc AES-CTR scheme
  • cbc1 AES-CBC scheme
  • cens AES-CTR subsample pattern encryption scheme
  • cbcs AES-CBC subsample pattern encryption scheme

在 N_m3u8DL-RE 中,你可以使用以下命令来设置DRM解密密钥:

N_m3u8DL-RE --key kid1:key1 "http://xxxx"

KID可以使用 mp4decryptgui 获取

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1380001576, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF25ZPB24PHILYNF6QJ3WR7BRBANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

可以了,谢谢

MyGoodbye commented 1 year ago

在windows 上一切正常解密,在mac的windows 虚拟机里解密不能成功

nilaoda commented 1 year ago

在windows 上一切正常解密,在mac的windows 虚拟机里解密不能成功

mac上的mp4decrypt可以使用 homebrew 安装:

brew install bento4
MyGoodbye commented 1 year ago

nilaoda @.***>於 2023年1月13日 週五,16:05寫道:

在windows 上一切正常解密,在mac的windows 虚拟机里解密不能成功

mac上的mp4decrypt可以使用 homebrew https://formulae.brew.sh/formula/bento4 安装:

brew install bento4

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1381451248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF25OMLOGYQOAABMTN33WSEEGDANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

这个安装,目前就只能虚拟机里面下载然后mac上解密然后再合并了,期待mac端下载工具,感谢大佬的辛苦回复。

nilaoda commented 1 year ago

还可以尝试使用 shaka-packager ,RE的命令需要增加 --use-shaka-packager

MyGoodbye commented 1 year ago

nilaoda @.***>於 2023年1月13日 週五,16:25寫道:

还可以尝试使用 shaka-packager https://github.com/shaka-project/shaka-packager/releases ,RE的命令需要增加 --use-shaka-packager

— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-CLI/issues/765#issuecomment-1381470750, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUXF2YZ7V3B5ZTBUI7DYVDWSEGRHANCNFSM6AAAAAATVS4VS4 . You are receiving this because you authored the thread.Message ID: @.***>

好的,谢谢