Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

Decrypt AES-128 encrypted video files from a m3u8

(http://stream-recorder.com/forum/showthread.php?t=18317)

Dune 05-21-2014 05:47 AM

Decrypt AES-128 encrypted video files from a m3u8


 
Hello,

This thread is somewhat related to this recent topic.
The idea here is to decrypt the video that is described by a .m3u8 playlist:

Code:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:20
#EXT-X-KEY:METHOD=AES-128,URI="key.key",IV=0xF85A5066CCB442181ACACA2E862A34DC
#EXTINF:10.368000,
segment-00000.ts
#EXTINF:14.252000,
segment-00001.ts
...

The .key file is just:
Code:

e2f96a0861cb381a8b52801f18bf04924c3472bc8f319930
I have tried ffmpeg but it is failing, so I'm now trying to decrypt separate .ts parts (TS is one of these formats which you can read even if you have a part of the file).

I have tried to use (as well as some online AES decrypting tools) openssl, with the following command:

Code:

openssl aes-128-cbc -d -in segment-00001.ts -out output.ts -K e2f96a0861cb381a8b52801f18bf04924c3472bc8f319930 -iv F85A5066CCB442181ACACA2E862A34DC
But this returns a "bad decrypt" error:

Code:

bad decrypt
139974157190984:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:596:

Does anyone here have a clue about this?
Thank you in advance! ;)
Dune

surya987 05-21-2014 08:39 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
post actual link of video... i think i know how to do .. but post actual link..

Dune 05-21-2014 08:49 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
That's nice of you, thanks.
What do you mean by "video"?
All you are missing from this are the TS segments (and the complete m3u8 that references all these segments).

I can download all the TS segments and zip them to you when I'm back home (within an hour).

If just one is enough, here is a link to the first one: https://www.mediafire.com/?7bx93bcs756o8d0

surya987 05-21-2014 08:54 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
from where you got this m3u8 file... i am asking this ... or provide me m3u8 file...

thanks

Dune 05-21-2014 09:52 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
You cannot directly download the m3u8 or the ts because of localization restrictions (or you'd have to use a proxy), so the automatic download of the .ts files by ffmpeg is likely not to work.

Here are the .m3u8 and the .key downloads:
.m3u8 download: http://www.mediafire.com/view/lhk7h6..._XTFCNSNV.m3u8
.key download: http://www.mediafire.com/view/wyf8ne...zrwtaxcilu.key

I'm working on uploading all the .ts chunks, in case this is not enough :)
I already linked one chunk to test on by the way (http://www.mediafire.com/download/7b...leeia-00001.ts)

surya987 05-21-2014 10:15 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
bro just post link of actual weburl.....i have to look m3u8 file so that i can help you .... and also where is m3u8 file..???? there are lot of files..

i cnt locate it are you kidding me or what....???

Dune 05-21-2014 10:19 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
Whoops, fixed the link :) (http://www.mediafire.com/view/lhk7h6..._XTFCNSNV.m3u8)

Sorry for the misclick.

surya987 05-21-2014 10:23 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
got it PM me now.... i will tell you how to actully do it... :D

Dune 05-22-2014 04:42 AM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
To the people who PMd me, this guy (surya987) didn't give me (yet) an actually working solution...
I am still desperately trying to figure that out.

blimey 05-22-2014 12:17 PM

Re: Decrypt AES-128 encrypted video files from a m3u8


 
Quote:

Originally Posted by Dune (Post 67757)
To the people who PMd me, this guy (surya987) didn't give me (yet) an actually working solution...
I am still desperately trying to figure that out.

The key doesn't seem like what is typically used for hls/m3u8.

Usually the key is around 16 bytes varied hexadecimal (like shown at the start of the other thread you mention), and not like the alphanumeric key string you show.

What is the url original source (not some copy) for;

BlackBullet07C_HD.mp4_420kbps-zrwtaxcilu.key

and

BlackBullet07C_HD.mp4_420kbps_XTFCNSNV.m3u8

There doesn't seem to be any geo restriction on the ts segments. You say you don't need to post the original source url because you have already provided all of the pieces, but there is no way to verify that the key you provided is correct without the original source.


All times are GMT -6. The time now is 10:00 AM.