Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 09-10-2014, 11:57 AM
MOZ MOZ is offline
Junior Member
 
Join Date: Aug 2014
Posts: 20
MOZ is on a distinguished road
Default

How to Download AES Encrypted Stream


I'm wondering if you experts can give me any help? I'm trying to download a few different AES encrypted streams and am having no luck. Below is the m3u8 file for the particular stream I am after.

M3U8 File or Direct Link to the m3u8 file.

It's a stream from www.premierleaguepass.com. Can anybody help me please? Would be happy to send a small paypal donation for anyone who can teach me how to do this.

Thanks!
Reply With Quote
  #2  
Old 09-10-2014, 01:52 PM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


normally i would say ffmpeg can do it.

Quote:
ffmpeg -i "http://nlds4.cdnllnwnl.lon.neulion.com/nlds_vod/coliseum/vod/2014/08/30/420/2_420_manchesterunited_burnley_2014_h_whole_1_4500 .mp4.m3u8" -c copy video.ts
this gets a 403 error on retrieving the key. there might be some auth or parameters or cookies you need to get the key.

this is the key url that returns 403
http://solr.zon.neulion.com/nlsk/hls...mobile_vod.key

you could monitor the requests and figure out what the need parameters are to get the key. Maybe then you could download it.
Reply With Quote
  #3  
Old 09-11-2014, 05:03 AM
MOZ MOZ is offline
Junior Member
 
Join Date: Aug 2014
Posts: 20
MOZ is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


Quote:
Originally Posted by BlueCop View Post
normally i would say ffmpeg can do it.



this gets a 403 error on retrieving the key. there might be some auth or parameters or cookies you need to get the key.

this is the key url that returns 403
http://solr.zon.neulion.com/nlsk/hls...mobile_vod.key

you could monitor the requests and figure out what the need parameters are to get the key. Maybe then you could download it.
So I had a look through Web Developer > Network when I first load the video and this is what requests are made:



This points to a different key to the one in m3u8 playlist? The key it points to in the Network tools can be downloaded here without a 403.

Is that the correct key to be able to decrypt it? If I change the part at the top of the m3u8 to below:

#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=AES-128,URI="http://nlds4.lon.neulion.com:443/nlds_vod/coliseum/vod/2014/08/30/420/2_420_manchesterunited_burnley_2014_h_whole_1_4500 .mp4/adaptive.key?clientKey=ffbd0f4faa2546d359cc074c228 c8e6b"
#EXTINF:10,

I get the following error from ffmpeg:

Quote:
[http @ 0x7f9f094536a0] HTTP error 403 Forbidden
Unable to open key file http://nlds4.lon.neulion.com:443/nld...074c228 c8e6b
[crypto @ 0x7f9f094536a0] Unable to open input
[hls,applehttp @ 0x7f9f09821800] Failed to open segment of playlist 0
[hls,applehttp @ 0x7f9f09821800] Error when loading first segment '2_420_manchesterunited_burnley_2014_h_whole_1_450 0_000000.ts'
2_420_manchesterunited_burnley_2014_h_whole_1_4500 .mp4.m3u8: No such file or directory
If I download the adaptive.key and open it up in TextEdit it shows me the following:



Thanks for your help so far BlueCop. Any more help from yourself or anybody else to crack this one will be greatly appreciated.
Reply With Quote
  #4  
Old 09-11-2014, 05:45 AM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


the key is encrypted... use hexdump to get decrypted key value..

hexdump will give you the hex value of key to use for decryption via manual open ssl method ... the site is geo blocked otherwise may b i could find some other way to do it...

thanks
Reply With Quote
  #5  
Old 09-11-2014, 07:43 AM
MOZ MOZ is offline
Junior Member
 
Join Date: Aug 2014
Posts: 20
MOZ is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


Quote:
Originally Posted by surya987 View Post
the key is encrypted... use hexdump to get decrypted key value..

hexdump will give you the hex value of key to use for decryption via manual open ssl method ... the site is geo blocked otherwise may b i could find some other way to do it...

thanks
Thanks for your reply. How do I do this? I have access to either OSX or Windows.

I feel within touching distance of getting this file! Thanks once again for everybody's continued help.
Reply With Quote
  #6  
Old 09-11-2014, 08:00 AM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


Quote:
Originally Posted by surya987 View Post
the key is encrypted... use hexdump to get decrypted key value..

hexdump will give you the hex value of key to use for decryption via manual open ssl method ... the site is geo blocked otherwise may b i could find some other way to do it...

thanks
the key isn't encrypted. that is data encoding. that is the text representation of the actual data and not encrypted at all.

MOZ: There is authorization tokens/headers used somewhere. Can you can get the full url used to retrieve the orginal m3u8 by the client and then try to download that with ffmpeg?

if that doesn't work then we can add some cookies to the header to get the download working correctly for you.
Reply With Quote
  #7  
Old 09-11-2014, 08:18 AM
MOZ MOZ is offline
Junior Member
 
Join Date: Aug 2014
Posts: 20
MOZ is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


Quote:
Originally Posted by BlueCop View Post
the key isn't encrypted. that is data encoding. that is the text representation of the actual data and not encrypted at all.

MOZ: There is authorization tokens/headers used somewhere. Can you can get the full url used to retrieve the orginal m3u8 by the client and then try to download that with ffmpeg?

if that doesn't work then we can add some cookies to the header to get the download working correctly for you.
Is this the link you're looking for? -

So looking further I have two more parameters that I've found:

NLAuth:

Quote:
"e053a2875d8625d30de0b049f58d7586-0-32"
serverKey_internal_ASV3:

Quote:
"8aacac8811168c78ac54864d3ace607f-c2d79d7058e903b534adbe3cc470633e-0-32"
Not sure if that helps at all.
Reply With Quote
  #8  
Old 09-11-2014, 08:24 AM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


maybe I am not sure if that is the m3u8 or not. It won't let me connect.

I meant for you to use the full authorized url with ffmpeg to download the video. cookies might be required though.
Reply With Quote
  #9  
Old 09-11-2014, 08:41 AM
MOZ MOZ is offline
Junior Member
 
Join Date: Aug 2014
Posts: 20
MOZ is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


Quote:
Originally Posted by BlueCop View Post
maybe I am not sure if that is the m3u8 or not. It won't let me connect.

I meant for you to use the full authorized url with ffmpeg to download the video. cookies might be required though.
I'm not sure if I know what you mean? The only m3u8 url is the one I provided. Let me run it on my phone with iOS and sniff out some parameters and come back with the full m3u8 url from there.
Reply With Quote
  #10  
Old 09-11-2014, 09:20 AM
MOZ MOZ is offline
Junior Member
 
Join Date: Aug 2014
Posts: 20
MOZ is on a distinguished road
Default

Re: How to Download AES Encrypted Stream


Okay so loaded the stream on my iPad and sniffed the original m3u8 which is available here

Does that help? When run through ffmpeg I get the same problem:
Shows the Following under Cookie:
Quote:
nlqptid=nltid=plp&nltdt=6&nltnt=1&uid=28845&hdnea= expires%3D1408315446%7Eaccess%3D%2F*%7Emd5%3Dbd2f4 b735763cc1c66b2f432b160cf1a
Reply With Quote
Reply Post New Thread
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:14 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons