Skip to content

Instantly share code, notes, and snippets.

@osuranboa
osuranboa / widevine_fixup.py
Created March 28, 2023 08:54 — forked from DavidBuchanan314/widevine_fixup.py
Patch aarch64 widevine blobs from ChromeOS to work on non-ChromeOS linux, including platforms with 16K page size like Apple Silicon / Asahi Linux
"""
MIT License
Copyright (c) 2023 David Buchanan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
// ==UserScript==
// @name Fake Widevine
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Fake the presence of a functional Widevine CDM - enough to get the spotify UI to launch, so you can pick another playback device.
// @author David Buchanan
// @match https://open.spotify.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=spotify.com
// @grant none
// ==/UserScript==
@osuranboa
osuranboa / dsnp_chapters.py
Created August 2, 2022 20:32
Code to get chapters from Disney+ (for BAMSDK v7.3.0)
def get_chapters(self, title):
milestones = []
for type_, type_milestones in title.service_data.get("milestone").items():
for milestone in type_milestones:
milestones.append((type_, milestone))
if not milestones:
return []
types = {
# https://github.com/IMFTool/IMFTool/blob/master/src/ImfCommon.cpp#L458-L504
@osuranboa
osuranboa / btn-site-tags.md
Created August 2, 2022 20:31 — forked from rlaphoenix/btn-site-tags.md
BTN Site Tags
Site/Network Abbreviation
9Now 9NOW
A&E AE
ABC (AU) iView AUBC
ABC (US) AMBC
Adult Swim AS
Al Jazeera English AJAZ
All4 (Channel 4, ex-4oD) ALL4
Amazon AMZN
@osuranboa
osuranboa / charles-proxy-android.md
Created September 6, 2021 12:08 — forked from twaddington/charles-proxy-android.md
How to set up Charles Proxy for the Android Emulator.

Charles Proxy Android

Steps

1. Add the Network Security Configuration to your app

<network-security-config>
   <debug-overrides>
 
@osuranboa
osuranboa / muxing_script.py
Created July 30, 2021 12:50 — forked from Ichunjo/muxing_script.py
Mux video + polices + chapitre
"""Script de multiplexage"""
# pylint: disable=unused-import
# pylint: disable=import-outside-toplevel
from typing import List, cast
import os
import sys
import tkinter
from tkinter.filedialog import askdirectory
#---------------------------------------------------------------------
# Simple IDA script to extract RSA private keys and certificates.
# kyprizel, 2010
#
# Based on original idea and PoC by Tobias Klein
# http://www.trapkit.de/research/sslkeyfinder/
#---------------------------------------------------------------------
import os
import idaapi
from idautils import *
@osuranboa
osuranboa / m3u_to_brasero.py
Created November 6, 2020 20:55 — forked from Deconstrained/m3u_to_brasero.py
Python script to convert a M3U into the XML format that Brasero uses for its project files, so that one can burn a playlist to a data CD. YMMV.
#!/usr/bin/env python3
import argparse
import os
import sys
import urllib.parse as url
import xml.etree.ElementTree as ET
def main():
ap = argparse.ArgumentParser(description="Convert an M3U file to a Brasero "
print "hello"
import httplib, urllib
hexstring = "436c6f4b54416741456b67414141414341414152585139614c34554a75784d576b3656424a744a6d5146764447354b4376726e656b56725656454c677532555152424f6469315141747875544231455369754856364c434b62597958346876724a523130556c5f6b5a35675342434c7472584d614241674145674153494b79712d734c786b676d31486b36506e336d6a4d42593945435978526e72644f6e4552354c67384c2d4f31"
hexdata = hexstring.decode("hex")
bytedata = bytearray(hexdata)
base64data = "NDM2YzZmNGI1NDQxNjc0MTQ1NmI2NzQxNDE0MTQxNDM0MTQxNDE1MjU4NTEzOTYxNGMzNDU1NGE3NTc4NGQ1NzZiMzY1NjQyNGE3NDRhNmQ1MTQ2NzY0NDQ3MzU0YjQzNzY3MjZlNjU2YjU2NzI1NjU2NDU0YzY3NzUzMjU1NTE1MjQyNGY2NDY5MzE1MTQxNzQ3ODc1NTQ0MjMxNDU1MzY5NzU0ODU2MzY0YzQzNGI2MjU5Nzk1ODM0Njg3NjcyNGE1MjMxMzA1NTZjNWY2YjVhMzU2NzUzNDI0MzRjNzQ3MjU4NGQ2MTQyNDE2NzQxNDU2NzQxNTM0OTRiNzk3MTJkNzM0Yzc4NmI2NzZkMzE0ODZiMzY1MDZlMzM2ZDZhNGQ0MjU5Mzk0NTQzNTk3ODUyNmU3MjY0NGY2ZTQ1NTIzNTRjNjczODRjMmQ0ZjMx"
url = "www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18
@osuranboa
osuranboa / DRMFairplay.swift
Created September 7, 2020 11:28 — forked from neha-bansal790/DRMFairplay.swift
DRM fairplay with hls integration
//
// DRMFairplay.swift
// Collection
//
// Created by B0203948 on 04/02/20.
// Copyright © 2020 wynk. All rights reserved.
//
import UIKit
import AVFoundation