Skip to content

Instantly share code, notes, and snippets.

@rpwnage
Created February 25, 2024 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpwnage/d115a15e59e512cc59bff796f3f25eec to your computer and use it in GitHub Desktop.
Save rpwnage/d115a15e59e512cc59bff796f3f25eec to your computer and use it in GitHub Desktop.
extract the m3u8 from voe.sx
import json, re, base64, requests
VOE_SX_URL = "some voe.sx url"
streamRequest = requests.get(VOE_SX_URL)
secret = re.search("let f62aad852c654bf8c9737da67c45630c7dec5019 = '(.*)';", streamReq.text).group(1)
secretDecoded = json.loads(re.search("'(.*)'b", (str(base64.b64decode(secret))[::-1])).group(1).replace("\\", ""))
# secretDecoded["file"] is the m3u8 file used in the stream, yay!
print(secretDecoded)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment