Created
April 7, 2016 15:39
-
-
Save gaudat/2d4ecdb002e80c425f12ec56843bab4b to your computer and use it in GitHub Desktop.
Viu TV Downloading script. Get the key and IV yourself first.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Crackviu""" | |
import requests | |
from Crypto.Cipher import AES | |
f = open('out.ts','wb') | |
key = b'\x8D\xCB\x59\xBF\x3C\xBD\x4D\xBC\x84\x79\xAF\x65\x53\x1B\xBA\xEF' | |
iv = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
aes = AES.new(key,AES.MODE_CBC,iv) | |
for n in range(278): | |
resp = requests.get('http://219.76.112.212/session/p8-21edec0817050ea2ea5c912e8099c/hls/vodcp20/201603250261688/201603250261688_Layer4/8616_Period1/segment'+str(n)+'.ts') | |
d = resp.content | |
d = aes.decrypt(d) | |
f.write(d) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment