VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. ###
    Last edited by ddll2; 19th Nov 2026 at 02:08.
    Quote Quote  
  2. now stop asking me in DMs on two different platforms

    Code:
    from Crypto.Cipher import DES3
    
    def derive_kek(masked_key):
        o = [102, 252, 33, 80, 195, 247, 204, 49, 107, 204, 21, 183, 102, 240, 91, 233]
        g = [180, 292, 363, 301, 107, 166, 302, 118, 298, 203, 294, 143, 277]
    
        p_src = [837, 150, 342, 699, 774, 778, 171, 516, 782, 292, 611, 327]
        q_src = [683, 428, 806, 447, 600, 320, 658, 361, 433, 849, 808, 637]
    
        p = ''.join(f"{(c - 3 * o[i + 1]) & 0xFF:02x}" for i, c in enumerate(p_src))
        q = ''.join(f"{(c - 2 * g[12 - i]) & 0xFF:02x}" for i, c in enumerate(q_src))
    
        return bytes(
            int(p[i] + q[i], 16) ^ int(masked_key[2 * i: 2 * i + 2], 16)
            for i in range(len(p))
        )
    
    if __name__ == "__main__":
        client_key = "C0B5B4954D926E7EFA3E0490962736392448A69008328D45"  # /mandoPublic/seraph
        clip_key = "FE7B3000C154795720A0BAE48FDCFE5C682176E18D76F265"  # /plPublic/slotclipkeys
    
        kek = derive_kek(client_key)
    
        content_key = DES3 \
            .new(kek, DES3.MODE_ECB) \
            .decrypt(bytes.fromhex(clip_key))[:16]
    
        print(content_key.hex())
    Bypass HMACs, One-time-tokens and Lic.Wrapping: https://github.com/DevLARLEY/WidevineProxy2
    Quote Quote  
  3. Originally Posted by larley View Post

    Code:
    from Crypto.Cipher import DES3
    
    def derive_kek(masked_key):
        o = [102, 252, 33, 80, 195, 247, 204, 49, 107, 204, 21, 183, 102, 240, 91, 233]
        g = [180, 292, 363, 301, 107, 166, 302, 118, 298, 203, 294, 143, 277]
    
        p_src = [837, 150, 342, 699, 774, 778, 171, 516, 782, 292, 611, 327]
        q_src = [683, 428, 806, 447, 600, 320, 658, 361, 433, 849, 808, 637]
    
        p = ''.join(f"{(c - 3 * o[i + 1]) & 0xFF:02x}" for i, c in enumerate(p_src))
        q = ''.join(f"{(c - 2 * g[12 - i]) & 0xFF:02x}" for i, c in enumerate(q_src))
    
        return bytes(
            int(p[i] + q[i], 16) ^ int(masked_key[2 * i: 2 * i + 2], 16)
            for i in range(len(p))
        )
    
    if __name__ == "__main__":
        client_key = "C0B5B4954D926E7EFA3E0490962736392448A69008328D45"  # /mandoPublic/seraph
        clip_key = "FE7B3000C154795720A0BAE48FDCFE5C682176E18D76F265"  # /plPublic/slotclipkeys
    
        kek = derive_kek(client_key)
    
        content_key = DES3 \
            .new(kek, DES3.MODE_ECB) \
            .decrypt(bytes.fromhex(clip_key))[:16]
    
        print(content_key.hex())

    larley, absolute legend, ty for sharing the code

    Code:
    N_m3u8DL-RE "https://htd15.selocon.com/media/clips/tertiary/clips/feed_58545/17230224_5586735_t.m3u8?dlv=2" --custom-hls-key 437f895264d9766d51437519ae8607c2 --save-name "Der Horror-Alligator (1980)"
    Quote Quote  
  4. Originally Posted by ListyDoM View Post

    larley, absolute legend, ty for sharing the code
    yes
    Quote Quote  
  5. Originally Posted by larley View Post
    now stop asking me in DMs on two different platforms

    Code:
    from Crypto.Cipher import DES3
    
    def derive_kek(masked_key):
        o = [102, 252, 33, 80, 195, 247, 204, 49, 107, 204, 21, 183, 102, 240, 91, 233]
        g = [180, 292, 363, 301, 107, 166, 302, 118, 298, 203, 294, 143, 277]
    
        p_src = [837, 150, 342, 699, 774, 778, 171, 516, 782, 292, 611, 327]
        q_src = [683, 428, 806, 447, 600, 320, 658, 361, 433, 849, 808, 637]
    
        p = ''.join(f"{(c - 3 * o[i + 1]) & 0xFF:02x}" for i, c in enumerate(p_src))
        q = ''.join(f"{(c - 2 * g[12 - i]) & 0xFF:02x}" for i, c in enumerate(q_src))
    
        return bytes(
            int(p[i] + q[i], 16) ^ int(masked_key[2 * i: 2 * i + 2], 16)
            for i in range(len(p))
        )
    
    if __name__ == "__main__":
        client_key = "C0B5B4954D926E7EFA3E0490962736392448A69008328D45"  # /mandoPublic/seraph
        clip_key = "FE7B3000C154795720A0BAE48FDCFE5C682176E18D76F265"  # /plPublic/slotclipkeys
    
        kek = derive_kek(client_key)
    
        content_key = DES3 \
            .new(kek, DES3.MODE_ECB) \
            .decrypt(bytes.fromhex(clip_key))[:16]
    
        print(content_key.hex())
    can't thank you enough larley
    dont need anything from this platform
    but the learning i get from the script is evrything
    thanks a lot
    Quote Quote  
  6. Code:
    python
    from Crypto.Cipher import DES3
    
    def derive_kek(masked_key: str) -> bytes:
        xor_mask = bytes.fromhex("5811383e6d6a72292014a5641386c13dadabef5735e21355")
        return bytes(a ^ b for a, b in zip(xor_mask, bytes.fromhex(masked_key)))
    
    if __name__ == "__main__":
        client_key = "F9F4EE66818529EEE8547ADB638212A90C8E88F62A948758" 
        clip_key = "5680BADE43CF8C610F7DC5366294059D44E9DA3B77E911B7"
        kek = derive_kek(client_key)
        content_key = DES3 \
            .new(kek, DES3.MODE_ECB) \
            .decrypt(bytes.fromhex(clip_key))[:16]
        print(content_key.hex())
    Quote Quote  



Similar Threads