summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/ILoadTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter/ILoadTo.py')
-rw-r--r--module/plugins/crypter/ILoadTo.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/module/plugins/crypter/ILoadTo.py b/module/plugins/crypter/ILoadTo.py
index 100ba2bc6..61869fdc0 100644
--- a/module/plugins/crypter/ILoadTo.py
+++ b/module/plugins/crypter/ILoadTo.py
@@ -1,10 +1,10 @@
-
import re
import urllib
from module.plugins.Crypter import Crypter
from module.lib.BeautifulSoup import BeautifulSoup
+
class ILoadTo(Crypter):
__name__ = "ILoadTo"
__type__ = "crypter"
@@ -14,8 +14,8 @@ class ILoadTo(Crypter):
__description__ = """iload.to Crypter Plugin"""
__author_name__ = ("hzpz")
__author_mail__ = ("none")
-
-
+
+
def decrypt(self, pyfile):
url = pyfile.url
src = self.req.load(str(url))
@@ -34,19 +34,21 @@ class ILoadTo(Crypter):
formTag = soup.find("form", attrs={"id": "CaptchaForm"})
formUrl = "http://iload.to" + formTag["action"]
self.logDebug("Form URL: %s" % formUrl)
-
+
# submit decrypted captcha
self.req.lastURL = url
src = self.req.load(str(formUrl), post={'captcha': result})
-
+
# find decrypted links
- links = re.findall(r"<a href=\"(.+)\" style=\"text-align:center;font-weight:bold;\" class=\"button\" target=\"_blank\" onclick=\"this.className\+=' success';\">", src)
-
+ links = re.findall(
+ r"<a href=\"(.+)\" style=\"text-align:center;font-weight:bold;\" class=\"button\" target=\"_blank\" onclick=\"this.className\+=' success';\">",
+ src)
+
if not len(links) > 0:
self.retry()
-
+
self.correctCaptcha()
-
+
cleanedLinks = []
for link in links:
if link.startswith("http://dontknow.me/at/?"):
@@ -55,8 +57,8 @@ class ILoadTo(Crypter):
cleanedLink = link
self.logDebug("Link: %s" % cleanedLink)
cleanedLinks.append(cleanedLink)
-
+
self.logDebug("Decrypted %d links" % len(links))
-
+
self.pyfile.package().password = "iload.to"
- self.packages.append((self.pyfile.package().name, cleanedLinks, self.pyfile.package().folder)) \ No newline at end of file
+ self.packages.append((self.pyfile.package().name, cleanedLinks, self.pyfile.package().folder))