Reputation: 662
There is an App which features downloading their videos for offline viewing via their Android and Windows app. I was wondering where does this app saves these videos and if they are encrypted, how to decrypt and play them?
I am a programmer but I know nothing about Android/windows app development, here is what I have been able to hack so far:
It seems like it saves videos at
/storage/emulated/0/Android/data/com..android.root/files/videos//encrypted/
These files have no extension, I copied them to my laptop and tried giving different popular media extensions, nothing worked so far in neither of WMP, VLC & Quicktime Player.
I tried to identify file type using TrID
(as specified in this link and this utility suggests it is an mp3 file (while it should be a video), I changed the extension to mp3
, it did not worked either.
I tried opening the file in ISO buster and several other apps. Finally while trying different things, on android system itself when I choose the option to compute checks, it display some MD5
and SHA-1
values. I am not much familiar with these terms but figured out, these files seems to be encrypted.
If I try to directly open this file on Android, System starts generating Hex Dump and then file explorer crashes.
Now if these files are really the video files and are encrypted, is there a way I can decrypt them and play directly in a video player?
I found App files are stored at:
C:\Program Files\WindowsApps\.com..com_1.5.0.2_neutral_split.scale-140_
C:\Program Files\WindowsApps\.com..com_1.5.0.2_x64__
C:\Program Files\WindowsApps\.com..com_2015.924.1324.2728_neutral_~_
I was able to figure out how to assign privileges to currently logged in User and gain the access to reach at these paths but couldn't make any further progress to find encrypted or non-encrypted video files in these folders at all.
I understand that if I really just want to download the video files there is much better and easier way - directly log in to their website and use any video grabber application or extension, it's as easy as that, which does works.
But my intention here is not to download videos but rather I am just curious to do ethical hacking for learning and exploring things. Just want to understand whether it is even possible to decrypt, find appropriate extension and play them directly without the app or not. And where does both Android and Windows Apps are actually storing these videos on my own device which I am unable to access/play without App.. huh well done app developers!
Any help or pointers appreciated.
Upvotes: 9
Views: 47735
Reputation: 449
if you use lynda.com Windows Store App you can find it under
C:\Users{userName}\AppData\Local\Packages\lynda.com.lynda.com_0dmhem0sv94sr\LocalState\offline
for those who use "Lynda Desktop App" to find the exact location for video files in windows
Run Lynda Desktop App from App menu on top left of app select "Options" you can find path of downloaded files there "Course Download location" also you can change it to any path you want,and its default location is
."C:\Users\{userName}\AppData\Local\lynda.com\Lynda.com Desktop App\offline\ldc_dl_courses
"
for those who can not play files using VLC now offline App Encrypt files so it can only decrypted and played with lynda offline App only
if any one needs how to decrypt files I have already developed tool for my personnel use to do so but I think I can not share it for public
Upvotes: 2
Reputation: 37120
For Mac users, you can find the offline files at
~/Library/Containers/com.lyndadotcom.lyndaosx/Data/Library/Caches/com.lyndadotcom.lyndaosx/offlnvds/
Cheers!
Upvotes: 9
Reputation: 662
Alright, so the above listed solutions worked for a while but Lynda
was smart enough to begin encrypting the downloaded videos. And hence just finding the downloaded content is not good enough anymore.
I could not find a way to decrypt the videos downloaded by the Windows Store app but someone did a great job in decrypting the videos downloaded by the Desktop app (yes, it is different), which is not as popular as the store app. You can download the desktop version of this app from here.
Find encrypted downloaded vdos here:
C:\Users\\AppData\Local\lynda.com\Lynda.com Desktop App\offline\ldc_dl_courses
and decrypt them using this tool.
Upvotes: 6
Reputation: 7325
Since Lynda is using HTML5 just click Save as on the video an download it as a mp4....
Upvotes: 10
Reputation: 41
This is how:
C:\Users\*User Name*\AppData\Local\Packages\lynda.com.lynda.com_0dmhem0sv94sr\LocalState\offline\*XXXXXX*
Add the extension .mp4 to the files in that folder.
(If you download the files in order they will be alot easier to name because it will be possible to sort by date and time.)
Open a Command Window in that folder (as administrator)
ren *. *.mp4
Upvotes: 3
Reputation: 186
I was wondering the same thing and I done some exploring with windirstat and found a large bunch of files at:
C:\Users\*username*\AppData\Local\Packages\lynda.com.lynda.com_0dmhem0sv94sr\LocalState\offline\194074
They are .file but the large ones are the videos and they play fine in vlc. Could probably mess around with them and add the .avi or whatever, to the end for completeness if you wanted..
Upvotes: 6