diff options
Diffstat (limited to 'Plugins/RSDF.py')
-rw-r--r-- | Plugins/RSDF.py | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/Plugins/RSDF.py b/Plugins/RSDF.py index 27938bb17..bbbf3d960 100644 --- a/Plugins/RSDF.py +++ b/Plugins/RSDF.py @@ -1,30 +1,24 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -import urllib2 -import urllib -import re -import time -import binascii import base64 -import sys +import binascii from Plugin import Plugin -from time import time class RSDF(Plugin): def __init__(self, parent): Plugin.__init__(self, parent) - plugin_config = {} - plugin_config['name'] = "RSDF" - plugin_config['type'] = "container" - plugin_config['pattern'] = r".*\.rsdf" - plugin_config['version'] = "0.2" - plugin_config['description'] = """RSDF Container Decode Plugin""" - plugin_config['author_name'] = ("RaNaN", "spoob") - plugin_config['author_mail'] = ("RaNaN@pyload.org", "spoob@pyload.org") - self.plugin_config = plugin_config + props = {} + props['name'] = "RSDF" + props['type'] = "container" + props['pattern'] = r".*\.rsdf" + props['version'] = "0.2" + props['description'] = """RSDF Container Decode Plugin""" + props['author_name'] = ("RaNaN", "spoob") + props['author_mail'] = ("RaNaN@pyload.org", "spoob@pyload.org") + self.props = props self.parent = parent self.multi_dl = True self.links = [] @@ -35,22 +29,22 @@ class RSDF(Plugin): return True def __call__(self): - return self.plugin_config['name'] + return self.props['name'] def proceed(self, url, location): try: from Crypto.Cipher import AES - infile = url.replace("\n","") + infile = url.replace("\n", "") Key = binascii.unhexlify('8C35192D964DC3182C6F84F3252239EB4A320D2500000000') IV = binascii.unhexlify('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF') - IV_Cipher = AES.new(Key,AES.MODE_ECB) + IV_Cipher = AES.new(Key, AES.MODE_ECB) IV = IV_Cipher.encrypt(IV) - obj = AES.new(Key,AES.MODE_CFB,IV) + obj = AES.new(Key, AES.MODE_CFB, IV) - rsdf = open(infile,'r') + rsdf = open(infile, 'r') data = rsdf.read() data = binascii.unhexlify(''.join(data.split())) @@ -59,7 +53,7 @@ class RSDF(Plugin): for link in data: link = base64.b64decode(link) link = obj.decrypt(link) - decryptedUrl = link.replace('CCF: ','') + decryptedUrl = link.replace('CCF: ', '') self.links.append(decryptedUrl) rsdf.close() |