2022-05-23 21:49
(This post was last modified: 2022-05-23 21:50 by marekmistrzuk.)
Code:
Example data:
website url: https://www.camwhores.tv/videos/5243237/anah-1576635395/
|-id--- |-video_name---
small image: https://cdn.camwhores.tv/contents/videos_screenshots/5243000/5243237/180x135/1.jpg
|-sid-- |-id--- |-idx
full image: https://cdn.camwhores.tv/contents/videos_sources/5243000/5243237/screenshots/1.jpg
|-sid-- |-id--- |-idx
video: https://www.camwhores.tv/get_file/108/20e56a7dc67a5c4b0be03b16ea6e514173a22e0bbf/5243000/5243237/5243237.mp4/?rnd=1651977116067
| |-vid ----------------------------------- |-sid-- |-id--- |-id---
|-svid
For the lack of a better name:
vid - video id
svid - short video id
sid - short id
Getting full image:
`https://cdn.camwhores.tv/contents/videos_sources/${sid}/${id}/screenshots/${idx}.jpg`
Getting video:
`https://www.camwhores.tv/get_file/${svid}/${vid}/${sid}/${id}/${id}.mp4`
Problems:
- svid - can be bruteforced or checked (probably depends on date of upload)
- vid - can't be broken (seems there is no way to guess)
Solution:
- vid must be shared between all users (testing nobodyhome as a storage solution for video_name, svid, vid, id)
Facts:
- vid length is 42 characters all base16