A small code-snippet to decrypt links from a RSDF container:
def decryptRSDF(filename): from Crypto.Cipher import AES links = [] f = open(filename, "r") lines = f.readlines() f.close() data = bytearray.fromhex("".join(lines)) array = data.split("\n") key = bytearray.fromhex("8C35192D964DC3182C6F84F3252239EB4A320D2500000000") iv = bytearray.fromhex("a3d5a33cb95ac1f5cbdb1ad25cb0a7aa") aes_context = AES.new(str(key), AES.MODE_ECB, str(iv)) for line in array: url_in = base64.b64decode(line) length = len(url_in) if length > 0: url_input = bytearray(url_in) url_output = bytearray(length) #1 byte output_block = bytearray(aes_context.encrypt(str(iv))) url_output[0] = url_input[0] ^ output_block[0] #other bytes for n in range(1, length+1): iv[:15] = iv[1:] iv[15] = url_input[n-1] if n < length: output_block = bytearray(aes_context.encrypt(str(iv))) url_output[n] = url_input[n] ^ output_block[0] links.append(str(url_output)) return linksDecrypting RSDF files,
0 Comments.