Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Pandora

Name: Anonymous 2008-01-24 20:22

# pandora.com v15 xmlrpc encrypt/decrypt routines
# for data sent to /radio/xmlrpc/v15 in a POST
# usage:
#   _xmlrpc_request_ = pandora_decrypt(_POST_data_)
#   _POST_data_ = pandora_encrypt(_xmlrpc_request_)

P = [0x62b25781, 0x36c6e49e, 0x79cecc68, 0x16a94f4, 0xb23506e5, 0xf3209930, 0x31cc9e6f, 0xf9c1c6f, 0x3ada9d11, 0xf8b18ccf, 0x8788eb, 0x3433eb64, 0x1bccf5a3, 0xdf91b435, 0xa50ea6fa, 0x8c069dcc, 0x1ff83b56, 0xa75abeba]

S = [[],[],[],[]]

S[0] =
see post >>2

S[1] =
see post >>3

S[2] =
see post >>4

S[3] =
see post >>5

def blowfish_round_function(XL):
    F = S[0][XL>
>24]
    F += S[1][(XL>
>16)&0xff]
    F &= 0xffffffff
    F ^= S[2][(XL>
>8)&0xff]
    F += S[3][XL&0xff]
    F &= 0xffffffff
    return F

def blowfish_block_decrypt(XL, XR):
    for i in xrange(17, 1, -1):
            XL ^= P[i]
            XR ^= blowfish_round_function(XL)
            XL, XR = XR, XL
    XL, XR = XR, XL
    XR ^= P[1]
    XL ^= P[0]
    return [XL, XR]

def blowfish_block_encrypt(XL, XR):
    for i in xrange(16):
            XL ^= P[i]
            XR ^= blowfish_round_function(XL)
            XL, XR = XR, XL
    XL, XR = XR, XL
    XR ^= P[16]
    XL ^= P[17]
    return [XL, XR]

def blowfish_intlist_decrypt(Li):
    Lo = []
    for i in xrange(0, len(Li), 2):
        Lo.extend(blowfish_block_decrypt(Li[i], Li[i+1]))
    return Lo

def blowfish_intlist_encrypt(Li):
    Lo = []
    for i in xrange(0, len(Li), 2):
        Lo.extend(blowfish_block_encrypt(Li[i], Li[i+1]))
    return Lo

def hexstr_to_intlist(H):
    L = []
    Hl = len(H)
    Hm = Hl%8
    for i in xrange(0, Hl-Hm, 8):
        L.append(int(H[i:i+8],16))
    if Hm > 0:
        L.append(int(H[Hl-Hm:]+('0'*(8-Hm)),16))
    return L

def intlist_to_hexstr(L):
    H = ""
    for I in L:
        s = hex(I).replace('0x','').replace('L','')
        H += ('0'*(8-len(s)))+s
    return H

def str_to_intlist(S):
    L = []
    Sl = len(s)
    Sm = Sl%4
    if Sm > 0:
        S += chr(0)*(4-Sm)
    for i in xrange(0, len(S), 4):
        L.append((ord(S[i])<<24)+(ord(S[i+1])<<16)+(ord(S[i+2])<<8)+ord(S[i+3]))
    return L

def intlist_to_str(L):
    S = ""
    for I in L:
        S += chr(I>
>24&0xff)+chr(I>>16&0xff)+chr(I>>8&0xff)+chr(I&0xff)
    return S

def pandora_encrypt(S):
    return intlist_to_hexstr(blowfish_intlist_encrypt(str_to_intlist(S)))

def pandora_decrypt(H):
    return intlist_to_str(blowfish_intlist_decrypt(hexstr_to_intlist(H)))

Name: Anonymous 2008-01-24 20:23

[0xe15fd5a9, 0xd25b170f, 0xaeac9b3, 0xae998ac6, 0x3e694f5f, 0xd3e1228, 0x83601a97, 0xd26449de, 0x3b6dc71a, 0x85612f9a, 0x9ef38a5d, 0xac05eafc, 0xdcea1c3f, 0x6e0ae344, 0x7b1f628d, 0xe76d113b, 0xab42b872, 0x6d9e2e2f, 0x70d2550a, 0x8d9c1205, 0x96a30e57, 0x4ff84d5f, 0xf0bedb0b, 0x2b4f01f9, 0x76a6accb, 0x1bb2347d, 0xca18b089, 0x756e4dda, 0xd0c02802, 0xe3a3c50e, 0x7440be90, 0xf060fe51, 0xd2a3b7b7, 0xd834938f, 0x12a3f699, 0xfdf2b2a5, 0x6d3acaf3, 0x9b9cf2ee, 0x25d6d931, 0x8bddd606, 0xdbf98272, 0xd6cf4f23, 0x3ae81ace, 0x925d333e, 0x7af058ab, 0x11bbc6df, 0xcb08ed80, 0xe189f7df, 0x29c97d5c, 0x88da07f5, 0x5c9be650, 0xa0601fe0, 0x976da585, 0x5f94f2c0, 0x72ef2a20, 0xc7bc2fe7, 0x73e72636, 0x231e0ee0, 0x56458317, 0x29693f85, 0x7c25793e, 0x20fe42bc, 0x5c9dc490, 0x9c9b6058, 0x87b77d18, 0x597d7c98, 0x4998ce1c, 0x3fa6b1fb, 0xbd0d53c0, 0x86296735, 0x7c633aa6, 0x75d4e494, 0x24df11a, 0xf9c10ebd, 0x81c86316, 0x2784c8bc, 0xc49eb16d, 0x41b39ec7, 0xd3e0c2e0, 0xbb63da1d, 0x73c5cadd, 0xfeb8c1fc, 0x2366f858, 0xd5ff7654, 0x349a2c98, 0x9a529d87, 0x5b885cb0, 0xc7097185, 0x1d387ca4, 0x8615d305, 0x984906b1, 0xde94fe3e, 0xe848a9f8, 0xd97c3943, 0x1cfc9945, 0x3e30ad6f, 0xaf5d5c4a, 0x396a5673, 0x480803ae, 0x8bfbb66f, 0x9c4a2be9, 0x85f3f6d9, 0x84d15d63, 0x349e4fe7, 0x9d8d7fd5, 0xad1f271f, 0x387c8995, 0x383dedbf, 0x3b3c403b, 0xd81910f4, 0x3d9607a6, 0x740d49be, 0x7e8de1f7, 0xae169e8d, 0x21541c6d, 0x2fdcb08a, 0xe58fd973, 0x9b517d4e, 0x716bfd44, 0x748bd724, 0x1276f, 0xab524888, 0x87d1e57e, 0xa9d88e20, 0xe6ee9b3a, 0xeadc6540, 0x8a6b7873, 0x26fb3699, 0x1afd1c95, 0xfc09201c, 0x91022ca5, 0xb0d986fa, 0x65d5edfd, 0xefbd4a, 0x6699473c, 0xace6a943, 0x1644ba54, 0x7d23ff8d, 0x7bea699f, 0xa65492b2, 0x91c704ad, 0x96a68e1b, 0xa0ae5a35, 0x2e0a92c7, 0x36c0aef8, 0xc825d3f4, 0xd589d75e, 0xca1c1fb8, 0xb16d0f93, 0xe52980f6, 0x6ce33cac, 0xc6de58e8, 0x7a3bd884, 0x7a3afd2b, 0xf6c86c86, 0x1cacb73d, 0x4268e881, 0x8e7f157a, 0x549ae699, 0x2958bd42, 0x70a80604, 0xa214b714, 0xd8d8e927, 0x1d385eb5, 0xe0983bc6, 0x644272b7, 0xd16dc0b5, 0x30ab27fc, 0x7a15df26, 0x5b124625, 0xb5412d0f, 0xa9896f40, 0x6c76182f, 0x67d1c211, 0x307461a2, 0xee7017f, 0xdcea5962, 0xdd11b2d4, 0x12187f0a, 0xd4165f46, 0xc1dc7c06, 0x7a901d84, 0x23370fbf, 0x843f186f, 0x5b8e1c44, 0x1f66a796, 0xcfc4987e, 0x313c7069, 0xd9daa537, 0x224abb95, 0xe9ea85e9, 0xd352704e, 0x7c668935, 0x2302a081, 0x20e7d975, 0x8e70851, 0x2ede26c7, 0xf60ab8bd, 0x903bc108, 0x3cf18ad9, 0x7b3fdf3, 0xbf354c5a, 0x6ead1e4c, 0x4f29906f, 0x672da8ff, 0x9db9e49a, 0x85d421c8, 0xd6350fe8, 0xec5c2185, 0xc8dd91e5, 0xd5059c9e, 0x627185d2, 0xb7cfd602, 0x482bb716, 0x60eac31c, 0xa56b09c, 0xdeb194e3, 0xac9defd2, 0x47fb2b20, 0xc1b71bb2, 0x3edd5f8f, 0xe0494ee0, 0xf06f4bc4, 0xa6f630a3, 0xf65a1c2d, 0x9967dd7e, 0xe38802f7, 0x7f08d40, 0x7676ceee, 0xb02f05b2, 0x3e31fd01, 0x921e8e16, 0x20641b6d, 0xf0a690d2, 0x4d9c1dd3, 0x79e07d0, 0x8a413c6c, 0x3dafcf7f, 0x90a56e00, 0x9ae55cfe, 0x771ac074, 0x4186a116, 0x35b039f3, 0x51aba191, 0xda97c9d6, 0x401f193e, 0xd046606a, 0x7a102f0b, 0x2d2dd126, 0xd40b8535, 0x2d87d9dd, 0x31e5f7c8, 0xaed3f8f9, 0x65297121, 0xba4ed128, 0x837e96fa]

Name: Anonymous 2008-01-24 20:23

[0x6118dfd5, 0x36f60ef9, 0x1e0d71a0, 0x38e8b6cb, 0x72946e3, 0xdd7c3bec, 0xe109c18d, 0x46735f6, 0xdebe1521, 0x18728720, 0xfbf73faa, 0x7f53831b, 0x6c379f0, 0x37ce8b46, 0x6d69b219, 0xe6a393ea, 0x77d6176c, 0xce189988, 0xa116497a, 0xb200d8aa, 0xd22d87a1, 0xc844623a, 0xa8856387, 0x612a1ea, 0x46af1acf, 0x81205a8f, 0x7ab81963, 0xee579292, 0x7f64f77e, 0x4317e21c, 0x5b28346a, 0xbdf877c6, 0xd160a802, 0x4e25d6b4, 0xfed8c923, 0x4d33f268, 0x2569ac25, 0x5402e4ff, 0x667201b7, 0x5b74f2a3, 0x4aba3afe, 0x45bbd3a1, 0x5aad1277, 0x4b715eeb, 0x219d8f3b, 0xb4455ad3, 0x59072a48, 0x19312a79, 0x92cfccc, 0x1d4e8b45, 0x336237e, 0xe7ee371e, 0xe220ff4f, 0x1885d354, 0x39824702, 0xd06453e4, 0xb6d2dae, 0x8c31f619, 0xebe47b9, 0xbb94ddc7, 0x3b126d70, 0x7be9bf21, 0xe796701a, 0x8c530afa, 0x9e7d1e19, 0x16a844ad, 0xa7c2cccd, 0xf9551eb5, 0x2f9cd7c2, 0x6e12432f, 0x4536ded6, 0xcde32d73, 0x68c6949c, 0x72651831, 0x53404637, 0xcdddd601, 0x56dab5c9, 0x100d7540, 0x7bc85f10, 0x638400e1, 0xe7c40876, 0x484dbfc6, 0x7f6371a7, 0xe7ab548f, 0xa0776e96, 0x9e194f2a, 0x7ac7542b, 0x396bfa02, 0x98d30fdd, 0x3b10d6f1, 0x9cef4431, 0x4698c02e, 0x94ad2f64, 0x4705fd39, 0x7b314747, 0x5d535d53, 0x89d2525c, 0x3bca4ed0, 0x19bf5573, 0x7e43ed74, 0x6910d8d5, 0xb32c5cb3, 0x918d57ee, 0x5160e37d, 0xb58794ab, 0xcdba980b, 0x81889212, 0x691c11a8, 0x65c7c146, 0x78b8f33f, 0x4b609166, 0x75bff10c, 0xe1d07245, 0xebc545d3, 0xd55ecffc, 0xc3816f23, 0x87bdabce, 0x620ecd9b, 0x4f9c0473, 0xad86793e, 0xf31ff1f1, 0xc81d40f8, 0x7475103f, 0x4193f4f2, 0x920d5768, 0x3a29f5b7, 0x76730d95, 0x4d7a38fb, 0x2d097b91, 0xc8cdf87d, 0x1257198c, 0xcf29169a, 0x8407dd6, 0xb0b2c9ee, 0xee5c629e, 0xd828de97, 0xcec3ba5, 0xf4878e2e, 0x73e9e32e, 0x28b6eb81, 0x8ff54503, 0x5d077a3f, 0x34d1d06f, 0xc61a1595, 0xf5475617, 0x95d88484, 0x5c79a988, 0x7668f2f, 0x260bf6e5, 0xd0bb528e, 0xedeca9d5, 0x366cf472, 0xa2d48226, 0xbb47b7ac, 0x37d52e0, 0xd844abd2, 0x874117a1, 0x5414e89d, 0x438f122f, 0x69e80850, 0xb85aee4c, 0xa161266c, 0x2d8d478b, 0xe7ea3269, 0x548cd5d6, 0xf10a1906, 0x5fbbfadc, 0xc1deb674, 0xc6c2f85e, 0x9ba2177, 0x7dc1655c, 0x127f0653, 0xd8d6ff02, 0x81983495, 0x17c3ff5c, 0x41ba1c94, 0xb686d3e5, 0x1e94a029, 0xa58c6e8a, 0x8e53dab5, 0x4c6b4c, 0xe8df7021, 0x8aa102a, 0x7749501e, 0xed48caa5, 0x651b5b42, 0xe412537f, 0xdb012165, 0xe2ef979e, 0xb11ac3d, 0x20583cc8, 0x6ddfbfd9, 0x3fe0a42c, 0xef68c6ec, 0x904c7e3c, 0x697550a3, 0x3117f95f, 0xbbf8cebf, 0x2dec77ac, 0xb9fc894a, 0xadb6c9ff, 0xeac61109, 0x160d831d, 0xc4c50452, 0x7be2992d, 0x8e6c27eb, 0x1a28d263, 0x90c5df2d, 0x8ada16ce, 0x2ed7d03b, 0x330dd17b, 0x7e10eca7, 0x5d260110, 0x97640c8, 0x2c1ebebb, 0x97825b78, 0xeb4f729b, 0xd78209cf, 0x9c0576f6, 0xd1b45463, 0x8bb8859, 0x55726a98, 0x587f0305, 0x7b4349ac, 0x63c22c12, 0x7949edf1, 0xaae786bd, 0x66d635f6, 0xd394bba9, 0xe197ad38, 0x6c026598, 0xd2232408, 0x2b3385f7, 0x9e25919c, 0xf4cfaee1, 0x8932f0c3, 0x8bad4522, 0xa29d7cec, 0xd69041c4, 0xa328801a, 0x109662b4, 0xf39ffc0e, 0x352ed1e2, 0xf3059d2b, 0x55b4f14a, 0xb0a32bd1, 0x61237b61, 0x5ff11f7b, 0xb2889168, 0x78b0605a, 0x44033d94, 0xa1073671, 0xe7c47740, 0x84e07d5a, 0xf29ec9bf, 0x74b0a3d6]

Name: Anonymous 2008-01-24 20:23

[0x1fa3f926, 0x90752ed8, 0x2b0c08ea, 0xa6ecd92d, 0x10e5351e, 0x89529d82, 0xaa537eab, 0x53114f81, 0x704f1d5d, 0x12ded1d1, 0x9ea0b881, 0x4093240, 0xa4af17f8, 0xfe5276f3, 0xc366a3e, 0xdaa24ca7, 0x9a83c178, 0x57d6a3e5, 0x3281b9fd, 0xbfaedd28, 0xfed82fd3, 0xa7044894, 0xb69b6973, 0xba1cc4d9, 0x2bb56d91, 0x3d6e9fad, 0x2181cbcb, 0x587d07b3, 0x18a46843, 0xb540c8b8, 0x5e489832, 0x622bce01, 0x90db1e7c, 0xdc8b7380, 0x662efbc2, 0x71e7349f, 0xcc278ca8, 0xa0fc13a4, 0xc7619888, 0x6f9b58e4, 0x66c6a7b3, 0x57d92866, 0xe41dcbca, 0xcc064a3d, 0x3918b583, 0x9d1ecd9c, 0xc382eae3, 0x79af5822, 0xb328d176, 0xed3ded54, 0xff1c34b3, 0x2370d7fe, 0x2427cf77, 0xee6f5e23, 0x9d871edf, 0x50a6ae7b, 0xe987717e, 0xa0451b81, 0x751cf4f3, 0x4c8d3b02, 0x386b873f, 0xf1e22e93, 0x6ce3cdbe, 0xda88af7f, 0x1518d574, 0xad8ac259, 0xe5a3ee4b, 0x48207b86, 0x911020d5, 0x78ce8e94, 0xd1cb536c, 0xcb3a9a2, 0x4db8813f, 0x7074b746, 0xcd209040, 0x15daf03, 0x14b7a001, 0x1b4ed7d8, 0x353b45cb, 0x2cd4c802, 0xfcf37320, 0x29a1ebb6, 0x7c4aed50, 0xab9a87db, 0xa7e83350, 0xe3cd026, 0x15bf6def, 0x75671595, 0x574ff07d, 0xf2c7f09b, 0x69474b14, 0x3732db55, 0x811e46cc, 0x5747ce53, 0xe414efec, 0xbe4b23c9, 0xdaaa7f58, 0x590a978a, 0x5265eca2, 0x51da476d, 0xa59fa701, 0x869b6e5f, 0xe4e54882, 0xe47937c0, 0x640ff3a6, 0x28aac694, 0x8cbbf218, 0x6f55bcec, 0x5b91860b, 0x5a25d6ba, 0x49875dd9, 0x3ee6dd8e, 0x5852cc77, 0xa3e0d114, 0xe3b0aa15, 0xb1026f5b, 0x2b588b52, 0x27b31ac3, 0x5763a3bb, 0xc5b1ffc0, 0xc54ad70c, 0x82eb88f, 0x3169169c, 0x57a931bc, 0x49e960e5, 0x1440f2d9, 0x9656fc6d, 0x3be74a93, 0xcabb0fdf, 0x296837, 0xce6dab81, 0x21670dcb, 0x47201bb0, 0x77f63c1d, 0xad6b3bab, 0x292b2590, 0x1ad9177a, 0x68ab8e, 0x9af3975d, 0xe3f0a46e, 0x988d17a0, 0x5c80d6c2, 0xfe9341ae, 0xefbb75c7, 0x56e4d198, 0xdf41b913, 0x1445f845, 0x56553df1, 0x668691b3, 0x1148980f, 0x24538059, 0xbc59d035, 0x7f006175, 0x276de0ab, 0x3da9e7ba, 0x6217512f, 0xdcb07163, 0x574cd9d4, 0x12bf350d, 0xb2e0fddb, 0xc7c8ebb8, 0x7f42ed2d, 0xebc8bb03, 0xa876d29f, 0x7e542f5c, 0x905863f0, 0xe9cf98bf, 0x1129410d, 0xfcb32e14, 0xb8d0eabb, 0x42879986, 0x719514d6, 0x8bdd6381, 0x9cc7a224, 0xcf394859, 0x1bf54491, 0x857b2700, 0xf0fb87c9, 0x1ba41cc2, 0x987ba2b0, 0x353f969d, 0xc8722a77, 0x1467bf50, 0xfe3de14f, 0x5ec8c585, 0x4bfaed23, 0x8b21ec45, 0xbcc80973, 0x74615ed, 0x7edefb26, 0xfb2997af, 0x1efd77d3, 0xb210c363, 0xe336896a, 0x90315eb6, 0xeec90ec0, 0x6ab6a464, 0x8bb1f7e0, 0xe0b8dd14, 0x3c7cf0d4, 0xd117a90d, 0xa65f1dff, 0x81b11a5d, 0xf562ed21, 0xec72ff6c, 0xabe27e22, 0x3d449e8b, 0x5d14b2ac, 0xa83e0b36, 0x697ccfb, 0x710889d8, 0x9dd51042, 0xa157bf89, 0x80c9f444, 0xca02a53b, 0xfca90e8c, 0x81c54ec6, 0xa1aa2c4f, 0x24b3222a, 0x16f1fc8a, 0x46dddec2, 0xb96a3bd5, 0xffa3ee9e, 0x77721ad0, 0x5a0716e7, 0x85cf8066, 0x17081f4f, 0x74e64dce, 0x54e5dd73, 0xccd24849, 0xcbf9033, 0xc3ee8316, 0x78cadebf, 0xf7780e5, 0xd07d7634, 0x571067e3, 0x5aeab5fb, 0x51ac8aa6, 0x117bb011, 0x20791d6e, 0x36da1a09, 0x62da816, 0xaaada64b, 0x947f3bac, 0xa645c698, 0xf55f537, 0x48050d29, 0x6edb198e, 0x42639ad, 0xb66a43ea, 0xab2b1b07, 0x2a636aaa, 0xd0923a6, 0x2e6a937, 0x5d131589, 0x20c37e4a]

Name: Anonymous 2008-01-24 20:23

[0x66b077c0, 0x64055e09, 0xdb61fe61, 0xb4d5e25d, 0x2e6407ed, 0x645e9238, 0xdbdb7e8a, 0x351a36ed, 0xa56cb2f3, 0x1933acfa, 0xc53eee57, 0xe8326ce0, 0x98d86ae4, 0xbe700428, 0x8cef84fd, 0x87b386cc, 0xb8af037b, 0x5a3b5e14, 0x70710a59, 0x31f4263e, 0x7212aad9, 0xf787047c, 0xe75ec802, 0x21b80bcc, 0xc35534e, 0xa3b60d92, 0x7021e979, 0xb9dd9197, 0x2710b10f, 0x56651dec, 0x66a068d2, 0xcd18c866, 0xca676944, 0xea7ebb47, 0x33ae1106, 0xa124928e, 0xb8c47b51, 0x7cde0bea, 0x72f323e7, 0x2f3d30fb, 0x69562d5b, 0x7636818e, 0xeaa2b4d1, 0xd18b6767, 0xbf40de17, 0xa3a5792e, 0xa1ac70f7, 0x3eb1316a, 0xf16369fe, 0x8daa3b09, 0xff55343f, 0x3bb84db7, 0xfb9e6240, 0x4c436bf2, 0xc818cd9f, 0xfcc59a8, 0x85a44856, 0x81dbda1a, 0x284bc921, 0x4ebc6c56, 0x3953f96, 0xbdbfbaaa, 0x29376593, 0xb320361a, 0x63b74ec3, 0x6cfc5af8, 0x7a83bf9a, 0xe253b080, 0xc27c4b66, 0x75ad4b4f, 0x8c08c4c, 0xea1cb3fd, 0xd524ac1e, 0xcaaa8198, 0x17e186c9, 0xdf25406e, 0x44066b3, 0x38ed0458, 0xcdc99a5a, 0xc814e0a3, 0xe48471a7, 0xfaa85f50, 0xd51b8da9, 0x32bf2ca5, 0x65f67497, 0x73077eb3, 0x7f774085, 0x532fb644, 0x522375e4, 0xdf875bb, 0xdb5d374, 0x8283eaa5, 0xe7074579, 0x212861d3, 0x6ab52960, 0xff4f42a3, 0xd0942562, 0x361bcdcf, 0xfdcc8a52, 0xbfb9b286, 0x614f0f94, 0x40aee36c, 0x82b51884, 0xeae97111, 0xe17e62c8, 0x489308c9, 0x12d2262e, 0x279c80b9, 0xdafd46a6, 0x68f21d95, 0xf707114c, 0xc9fab82b, 0x399f88e9, 0x7fc36314, 0x31750016, 0xd98c6310, 0xd348719d, 0x367d27fd, 0xec902ffb, 0xffb7ffbe, 0xa83cb14, 0xe4f62bde, 0x3c863565, 0xc7517ad1, 0x8d05b961, 0x8a07853b, 0xe8f39de6, 0xcfbf9187, 0xb194e3ad, 0x1eeff312, 0x4d4b44ef, 0xacc2e4c2, 0x143041dc, 0x758acfd5, 0xe36833a5, 0xe157ffaa, 0xfa50a27b, 0x3c58a15e, 0x967e3419, 0x753e000b, 0xe64c79c0, 0xf456e9c4, 0x9467c936, 0xcba7ca23, 0x4dca8188, 0xf3ff33ea, 0x2bb11ea, 0x5e5874e1, 0x3eaf9634, 0xf8f63c30, 0x3239a9fb, 0x397f4bac, 0xcfae7529, 0x7d600855, 0xaa6b75d4, 0x60146387, 0x87f9f5f9, 0x69bc951f, 0x4b6289ab, 0xfcc9582e, 0x8e24139f, 0x38dcfa0, 0x7befaa6, 0x6bb31156, 0x681740d7, 0x2da2c86d, 0x385620e0, 0xbf6195d2, 0x1c0ac1bc, 0xeefd10d3, 0xefb95292, 0xe9640863, 0x1bfba657, 0x352495c5, 0x1cdac88b, 0xa61e5edc, 0x5f9e2428, 0x193a91e6, 0x1d1f3d6a, 0x377bea5f, 0xf1890c92, 0xfcc2d494, 0x40202394, 0x8c630e2e, 0x23234031, 0xc4477da, 0xfd3fdbea, 0xd07ac6ee, 0xd62b095, 0xb7bd7418, 0x679b6962, 0xfff93753, 0x778ef9f5, 0x7766b03b, 0x260cc5fd, 0xf4604bc, 0x6ae10211, 0xd5d79516, 0xbb5c163a, 0x15ae9caf, 0x69efdb6b, 0xd2e0f71b, 0x886df85a, 0xc79c8373, 0x95d155bb, 0xc3f1b92d, 0xd892abfc, 0xc26e2b0, 0x27893915, 0xde6534fd, 0x3f1d7b95, 0x9aa8e416, 0x9267fe17, 0x30a7780a, 0x2eac697a, 0xe91bb70, 0x19bfb05, 0xe821dec8, 0x79610800, 0x572358bf, 0x5556c860, 0x21357848, 0x14115c29, 0xf4c86a9b, 0xc2a1dcf6, 0x5b9d0962, 0x15342e92, 0xc988f111, 0xddd7015b, 0x4f71c83e, 0xe457f1f0, 0x414c19cc, 0xae36987c, 0xc02b1556, 0x461d20ec, 0xa5cd8207, 0x7f3f77bc, 0xbf91e63f, 0xa453caea, 0xf1cb169b, 0x2b8eceb2, 0x5df06235, 0x26111de5, 0xb2e4e9da, 0xc1eca3a6, 0xa4a604fb, 0xea80256b, 0x785695d2, 0xd5e386d8, 0x96fc2a4f, 0x21bf1761, 0x82bfc227, 0x20ac456d, 0x5ea53c7c, 0x65d04603, 0xc8a71f16]

Name: Anonymous 2008-01-24 20:43

pandora restricts its services to UK users which sucks.
I used to sniff songs from them, but now i have to use a proxy and that sucks

Name: Anonymous 2008-01-24 20:49

>>6
Do you use a proxy for the songs too, or just the data/website?

Name: Anonymous 2008-01-24 20:51

Was this extracted from the client applet?
You know, there're easier ways to record the music.

Name: Anonymous 2008-01-24 20:57

>>8
Yes, though it took quite a bit of effort as they'd used some sort of code obfuscator.

It's not about recording the music, it's gaining access to their API that is more interesting.

Name: Anonymous 2008-01-24 20:59

Security through obscurity will always prevail!

Name: Anonymous 2008-01-24 21:14

Frphevgl guebhtu bofphevgl jvyy nyjnlf cerinvy

Name: Anonymous 2008-01-24 23:07

[b]THE FORCED INDENTATION OF CODE[/b]

Name: Anonymous 2008-01-25 3:46

>>12
THE FAILED NESTING OF BBCODE TAGS

Name: Anonymous 2008-01-25 4:09

>>9
Do you know of a Python decompiler that supports the latest version? Or was that above code not written with the latest version?

Name: Anonymous 2008-01-25 4:10

>>14
I use GHC 6.8.2

Name: Anonymous 2008-01-25 4:50

>>15
Glamorous Haskell Compiler

Name: Anonymous 2008-01-25 4:54

>>16
Great Hadron Collider.

Name: Anonymous 2008-01-25 5:00

>>17
GO HOME CHINK

Name: Anonymous 2008-01-25 5:03

>>14
This is a reimplementation in Python. The original is ActionScript contained within http://www.pandora.com/tuner_8_2_0_3_pandora.swf. I used flasm (http://www.nowrap.de/flasm.html) to pick it apart, after the two decompilers (ASV and SoThink) choked on it.

Name: Anonymous 2008-01-25 5:30

Name: Anonymous 2008-01-25 6:16

>>20
Ok, now try to extract the S and P boxes from that decompilation - you will fail. (Hint: search for "$Fv", "$GQ" and "$km" to see why.)

Name: Anonymous 2008-01-25 11:25

### pandora.com xmlrpc routines (v15)

P = [0x62b25781, 0x36c6e49e, 0x79cecc68, 0x16a94f4, 0xb23506e5, 0xf3209930, 0x31cc9e6f, 0xf9c1c6f, 0x3ada9d11, 0xf8b18ccf, 0x8788eb, 0x3433eb64, 0x1bccf5a3, 0xdf91b435, 0xa50ea6fa, 0x8c069dcc, 0x1ff83b56, 0xa75abeba]

S = [[],[],[],[]]

S[0] =
(see post >>2)
S[1] =
(see post >>3)
S[2] =
(see post >>4)
S[3] =
(see post >>5)

def blowfish_round_function(XL):
    F = S[0][XL>
>24]
    F += S[1][(XL>
>16)&0xff]
    F &= 0xffffffff
    F ^= S[2][(XL>
>8)&0xff]
    F += S[3][XL&0xff]
    F &= 0xffffffff
    return F

def blowfish_block_decrypt(XL, XR):
    for i in xrange(17, 1, -1):
            XL ^= P[i]
            XR ^= blowfish_round_function(XL)
            XL, XR = XR, XL
    XL, XR = XR, XL
    XR ^= P[1]
    XL ^= P[0]
    return [XL, XR]

def blowfish_block_encrypt(XL, XR):
    for i in xrange(16):
            XL ^= P[i]
            XR ^= blowfish_round_function(XL)
            XL, XR = XR, XL
    XL, XR = XR, XL
    XR ^= P[16]
    XL ^= P[17]
    return [XL, XR]

def blowfish_intlist_decrypt(Li):
    Lo = []
    for i in xrange(0, len(Li), 2):
        Lo.extend(blowfish_block_decrypt(Li[i], Li[i+1]))
    return Lo

def blowfish_intlist_encrypt(Li):
    Lo = []
    for i in xrange(0, len(Li), 2):
        Lo.extend(blowfish_block_encrypt(Li[i], Li[i+1]))
    return Lo

def hexstr_to_intlist(H):
    L = []
    Hl = len(H)
    Hm = Hl%8
    for i in xrange(0, Hl-Hm, 8):
        L.append(int(H[i:i+8],16))
    if Hm > 0:
        L.append(int(H[Hl-Hm:]+('0'*(8-Hm)),16))
    return L

def intlist_to_hexstr(L):
    H = ""
    for I in L:
        s = hex(I).replace('0x','').replace('L','')
        H += ('0'*(8-len(s)))+s
    return H

def str_to_intlist(S):
    L = []
    Sm = len(S)%8
    if Sm > 0:
        S += chr(0)*(8-Sm)
    for i in xrange(0, len(S), 4):
        L.append((ord(S[i])<<24)+(ord(S[i+1])<<16)+(ord(S[i+2])<<8)+ord(S[i+3]))
    return L

def intlist_to_str(L):
    S = ""
    for I in L:
        S += chr(I>
>24&0xff)+chr(I>>16&0xff)+chr(I>>8&0xff)+chr(I&0xff)
    return S

def pandora_encrypt(S):
    return intlist_to_hexstr(blowfish_intlist_encrypt(str_to_intlist(S)))

def pandora_decrypt(H):
    return intlist_to_str(blowfish_intlist_decrypt(hexstr_to_intlist(H)))

import urllib
import urllib2

def variable_to_xml(A):
    X = "<value>"
    tA = type(A)
    if tA == list:
        X += "<array><data>"
        for B in A:
            X += variable_to_xml(B)
        X += "</data></array>"
    elif tA == dict:
        X += "<struct>"
        for Ak in A:
            X += "<member><name>"
            X += Ak
            X += "</name></member>"
            X += variable_to_xml(A[Ak])
        X += "</struct>"
    elif tA == bool:
        X += "<boolean>"
        X += "1" if A else "0"
        X += "</boolean>"
    elif tA == int or tA == long:
        X += "<int>"
        X += str(A).replace('L','')
        X += "</int>"
    elif tA == str:
        X += "<string>"
        X += A
        X += "</string>"
    X += "</value>"
    return X

def make_xmlrpc_content(method, params):
    X = "<?xml version=\"1.0\"?><methodCall><methodName>"
    X += method
    X += "</methodName><params>"
    for P in params:
        X += "<param>"
        X += variable_to_xml(P)
        X += "</param>"
    X += "</params></methodCall>"
    return X

def pandora_make_url(method, args, ssl, rid, lid):
    url = "http"
    url += "s" if ssl else ""
    url += "://www.pandora.com/radio/xmlrpc/v15?rid="
    url += ('0'*6+str(rid))[-7:]
    url += "P"
    if lid != None:
        url += "&lid="
        url += str(lid)
    url += "&method="
    url += method.split(".")[-1]
    for i in xrange(len(args)):
        url += "&arg"
        url += str(i+1)
        url += "="
        url += urllib.quote_plus(str(args[i]))
    return url

def pandora_xmlrpc_call(method, args, ssl, rid, lid):
    url = pandora_make_url(method, args, ssl, rid, lid)
    data = pandora_encrypt(make_xmlrpc_content(method, args))
    headers = {"User-Agent":"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)","Content-Type":"text/xml","Content-Length":str(len(data))}
    req = urllib2.Request(url, data, headers)
    res = urllib2.urlopen(req)
    return res.read()

Name: Anonymous 2008-01-25 11:31

>>22
Example usage:

python -i post_22.py
>>> pandora_xmlrpc_call("misc.sync", [], False, 1234567, None)
... xmlrpc response from server ...
>>> pandora_decrypt(
data from Firefox's LiveHTTPHeaders, Wireshark etc)... decoded xmlrpc request ...

Parameters to pandora_xmlrpc_call:
1. method - string, method name
2. args - list of parameters
3. ssl - boolean indicating if https or http
4. rid - integer, route id (randomly generated for session)
5. lid - integer, listener id (returned from listener.getListenerResult method) or None if we don't have one yet

Name: Anonymous 2008-01-25 11:33

Full list of methods over http:

listener.isUsernameUnique
listener.getUsername
listener.emailPassword
listener.addTrackingCode
listener.getListenerResult
listener.addTiredSong
listener.setExplicitContentFilter
listener.setExplicitPIN
listener.isExplicitContentFilterPINProtected
listener.verifyExplicitPIN
listener.emailExplicitPINRescue
listener.clearVendorBilledTrialExpiredAlertCode
listener.clearVendorBilledSubscriberTimedOutAlertCode
misc.message
misc.sync
music.search
music.searchCancelled
playlist.narrative
playlist.getFirstFragment
playlist.getFragment
station.createStation
station.addSeed
station.deleteSeed
station.addFeedback
station.deleteFeedback
station.transformShared
station.getStations
station.setStationName
station.removeStation
station.createBookmark
station.createArtistBookmark
station.getStation
station.getQuickMix
station.setQuickMix


These ones go over https:
      
listener.createListener
listener.register
listener.activateAccount
listener.changeAccount
listener.setBillingInformation
listener.authenticateListener
listener.getCreditCard
listener.unsubscribe
vendor.getVendor

Name: Anonymous 2008-01-26 5:20

i see someone opened pandora's box.

Name: Anonymous 2008-01-30 22:37

I get:
<?xml version="1.0" encoding="UTF-8"?><methodResponse><fault><value><struct><member><name>faultString</name><value>org.apache.xmlrpc.XmlRpcException: Illegal hex value AE at byte 1</value></member><member><name>faultCode</name><value><int>0</int></value></member></struct></value></fault></methodResponse>

Something I'm missing?

Name: Anonymous 2008-01-31 5:00

>>26
Post your code please.

Name: Anonymous 2008-01-31 5:57

Python fails for not having an equivalent to C's switch/case

Name: Anonymous 2008-01-31 10:39

Name: Anonymous 2008-01-31 14:53

>>29
wow, disputes over little implementation details. JUST ADD THE DAMN SWITCH STATEMENT AND BE DONE WITH IT, WE DONT GIVE A SHIT ABOUT HOW ITS IMPLEMENTED.

Python's community is a bit like that of the Macfags.

Name: Anonymous 2008-01-31 16:30

>>30
And it's a shame, 'cause Python is generally a damn good language.

Name: Anonymous 2008-01-31 16:31

>>31
ONE WORD.  THE FORCED ASSIMILATION OF OPINION.  NEWFAG OVER.

Name: Anonymous 2008-01-31 18:17

>>29
Unfortunately now we are forced to indent the case expressions
How fitting.

Name: Anonymous 2008-01-31 19:18

>>30
Pfft, feature bloat.

The only real use for switch statements is for forced loop unrolling without -funroll-loops. If you're in a situation where using a switch statement is cleaner than using an if-elif chain (as the PyFags call it), then (in most cases) you've done something wrong with respect to the program structure.

Name: Anonymous 2008-01-31 21:58

>>27

Hmm, must have been an encoding issue?  gave that error on python2.4.4 works fine on 2.5.1

Name: Anonymous 2008-01-31 22:11

>>34
QFT

Name: Anonymous 2008-02-01 2:58

>>34
O RLY? Then why is it that almost every other imperative language out there, including the absolutely minimalistic C, includes one?

Also, table lookup > compare chain.

Name: Anonymous 2008-02-01 3:11

>>37
Implementation details are besides the point.

Even if they were; I don't have any documents or evidence of this, but I'd assume that a jmp is more costly than a couple cmp's. I'm not going to even try to argue this; if someone claims that it's the opposite, then so be it.

The point is that a single syntactic construct suffices for both if clauses and switch statements. And, for the most part, if clauses are shorter to write (in C, at least) because of the explicit break which is required. Composited cases are shorter to write too - conditions can simply be chained with ||, which saves you 3 characters over case:.

Finally, unlike C-style switch statements, if-else blocks are unambiguous - their bounds are clearly delimited by brackets, whereas cases in a switch statement can run over into one another.

tl;dr - code clarity over premature optimizations.

Name: >>38 2008-02-01 3:14

Composited cases are shorter to write too
I just wanted to point out that, in some cases, using cases which flow into one another can shorten code length, but I maintain my argument that this method

* Reduces overall code clarity.
* Suggests a possible flaw in overall program flow.
* Could be refactored to minimize code duplication while still avoiding the switch block.

Switches are just a glorified, limited goto. Yes, they exist, and yes, they're useful in some situations. But you should still avoid them like the plague.

Name: Anonymous 2008-02-01 4:30

>>39
And loops are also ``just a glorified, limited goto''. Yes, they exist, and yes, they're useful in some situations. But you should still avoid them like the plague, since loops can always be replaced by recursion.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List