diff options
-rw-r--r-- | module/plugins/crypter/CryptItCom.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/module/plugins/crypter/CryptItCom.py b/module/plugins/crypter/CryptItCom.py new file mode 100644 index 000000000..fab7625b8 --- /dev/null +++ b/module/plugins/crypter/CryptItCom.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- + +import tempfile +import re +import os.path + +from time import time +from module.plugins.Crypter import Crypter + + +class CryptItCom(Crypter): + __name__ = "CryptItCom" + __type__ = "container" + __pattern__ = r"http://[\w\.]*?crypt-it\.com/(s|e|d|c)/[\w]+" + __version__ = "0.1" + __description__ = """Crypt.It.com Container Plugin""" + __author_name__ = ("jeix") + __author_mail__ = ("jeix@hasnomail.de") + + def __init__(self, parent): + Crypter.__init__(self, parent) + self.parent = parent + + def file_exists(self): + return True + + def proceed(self, url, location): + repl_pattern = r"/(s|e|d|c)/" + url = re.sub(repl_pattern, r"/d/", url) + + # download ccf + file_name = os.path.join(tempfile.gettempdir(), "pyload_tmp_%d.ccf"%time()) + file_name = self.req.download(url, file_name) + + # and it to package + self.links = [file_name] +
\ No newline at end of file |