|
7 | 7 |
|
8 | 8 | class CaptchaService: |
9 | 9 | __name__ = "CaptchaService" |
10 | | - __version__ = "0.12" |
| 10 | + __version__ = "0.13" |
11 | 11 |
|
12 | 12 | __description__ = """Base captcha service plugin""" |
13 | 13 | __license__ = "GPLv3" |
@@ -52,14 +52,14 @@ def result(self, server, challenge): |
52 | 52 |
|
53 | 53 | class ReCaptcha(CaptchaService): |
54 | 54 | __name__ = "ReCaptcha" |
55 | | - __version__ = "0.05" |
| 55 | + __version__ = "0.06" |
56 | 56 |
|
57 | 57 | __description__ = """ReCaptcha captcha service plugin""" |
58 | 58 | __license__ = "GPLv3" |
59 | 59 | __authors__ = [("pyLoad Team", "admin@pyload.org")] |
60 | 60 |
|
61 | 61 |
|
62 | | - KEY_PATTERN = r'https?://(?:www\.)?google\.com/recaptcha/api/challenge\?k=(?P<KEY>[\w-]+)' |
| 62 | + KEY_PATTERN = r'recaptcha/api/challenge\?k=(?P<KEY>[\w-]+)' |
63 | 63 | KEY_AJAX_PATTERN = r'Recaptcha\.create\s*\(\s*["\'](?P<KEY>[\w-]+)' |
64 | 64 |
|
65 | 65 |
|
@@ -113,15 +113,15 @@ def result(self, server, challenge): |
113 | 113 |
|
114 | 114 | class AdsCaptcha(CaptchaService): |
115 | 115 | __name__ = "AdsCaptcha" |
116 | | - __version__ = "0.03" |
| 116 | + __version__ = "0.04" |
117 | 117 |
|
118 | 118 | __description__ = """AdsCaptcha captcha service plugin""" |
119 | 119 | __license__ = "GPLv3" |
120 | 120 | __authors__ = [("pyLoad Team", "admin@pyload.org")] |
121 | 121 |
|
122 | 122 |
|
123 | | - ID_PATTERN = r'http://api\.adscaptcha\.com/Get\.aspx\?[^"\']*CaptchaId=(?P<ID>\d+)' |
124 | | - KEY_PATTERN = r'http://api\.adscaptcha\.com/Get\.aspx\?[^"\']*PublicKey=(?P<KEY>[\w-]+)' |
| 123 | + ID_PATTERN = r'api\.adscaptcha\.com/Get\.aspx\?[^"\']*CaptchaId=(?P<ID>\d+)' |
| 124 | + KEY_PATTERN = r'api\.adscaptcha\.com/Get\.aspx\?[^"\']*PublicKey=(?P<KEY>[\w-]+)' |
125 | 125 |
|
126 | 126 |
|
127 | 127 | def detect_key(self, html=None): |
@@ -175,14 +175,14 @@ def result(self, server, challenge): |
175 | 175 |
|
176 | 176 | class SolveMedia(CaptchaService): |
177 | 177 | __name__ = "SolveMedia" |
178 | | - __version__ = "0.04" |
| 178 | + __version__ = "0.05" |
179 | 179 |
|
180 | 180 | __description__ = """SolveMedia captcha service plugin""" |
181 | 181 | __license__ = "GPLv3" |
182 | 182 | __authors__ = [("pyLoad Team", "admin@pyload.org")] |
183 | 183 |
|
184 | 184 |
|
185 | | - KEY_PATTERN = r'http://api\.solvemedia\.com/papi/challenge\.(no)?script\?k=(?P<KEY>.+?)["\']' |
| 185 | + KEY_PATTERN = r'api\.solvemedia\.com/papi/challenge\.(no)?script\?k=(?P<KEY>.+?)["\']' |
186 | 186 |
|
187 | 187 |
|
188 | 188 | def challenge(self, key=None): |
|
0 commit comments