mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 01:41:00 +00:00
Update server.py
This commit is contained in:
parent
6e502fc5ba
commit
2653992795
12
server.py
12
server.py
|
@ -376,5 +376,17 @@ def pwnedpasswords_test(s):
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# TrueCaptcha - truecaptcha.org
|
||||||
|
def truecaptcha_solve(userid, apikey, encoded_string):
|
||||||
|
url = 'https://api.apitruecaptcha.org/one/gettext'
|
||||||
|
data = {
|
||||||
|
'userid': userid,
|
||||||
|
'apikey': apikey,
|
||||||
|
'data': encoded_string
|
||||||
|
}
|
||||||
|
response = requests.post(url = url, json = data)
|
||||||
|
data = response.json()
|
||||||
|
return data
|
||||||
|
|
||||||
if __name__== "__main__":
|
if __name__== "__main__":
|
||||||
start()
|
start()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user