Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#21
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8Quote:
|
#22
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8Quote:
Quote:
|
#23
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8I'm not sure what you mean by "port", it has nothing to do with the earlier ruby code (which only handle a classic HLS stream)
My code specifically and only address the problem of the encrypted .key file. (it even includes the secret - well not that secret anymore - key !) If you want a python port of the ruby code (to dump a classic HLS stream like ffmpeg would do) it's more like that : Code:
import m3u8 from Crypto.Cipher import AES f = open('file.ts','rb') playlist = m3u8.loads(playlist) key = urllib2.urlopen(playlist.key.uri).read() # <- swap that line with my earlier snippet to handle encrypted keys iv = ('%x' % int(playlist.key.iv,16)).decode("hex") aes = AES.new(key, AES.MODE_CBC, iv) for x in playlist.segments : r = urllib2.urlopen(x.uri) d = r.read() d = aes.decrypt(d) f.write(d) f.close() |
#24
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8Can you explain how you find this key ?
|
#25
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8Quote:
Thank you a HUGE lot for your investment! I just tested it, and it works!!! It is going to help a lot of us, that's for sure Dat key though Huge thanks again! Edit: as Spyne said, it would help us a bunch in the future if you could give a few directions&tip as to how to get this key. |
#26
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8You can access the key with every sniffer you can find on the net (personally I use Coojah). But take care to the banishment ! The criteria change weekly, they are still programming their system, then we never know when it changes.
I suggest to focus on the key we have to decrypt, because surrounding stuff can be solved with Google . |
#27
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8Quote:
hint n°2 : everything the browser executes is basically plain text (or not so far from it) hint n°3 : it's in the HLSProvider6.0.2.swf file |
#28
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8Quote:
Trying that on my own atm, thanks for the hints! |
#29
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8Alright, I've looked into the .swf file, but I can't find anything there; what would you use track the execution/use of that file (or of the player in general)?
Damn I'm feeling incompetent now :/ |
#30
|
|||
|
|||
Re: Decrypt AES-128 encrypted video files from a m3u8how to use this for download video ?
|
Tags: aes, encrypt, ffmpeg, openssl |
Thread Tools | |
Display Modes | |
|
|