Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ключ парсится так
- let key = $("*").html().match("(?<=key\'\ \:\ \').*?(?=\')")[0];
- console.log(key);
- // в боди подставь свои данные логина пароля
- recapchaSolve(url: string, key: string, proxy: Object = {}): Promise<any> {
- let headers ={
- "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "Accept-Language": "en-US,en;q=0.5",
- "Accept-Encoding": "gzip, deflate",
- "Referer": "https://www.leon.ru/login",
- "Content-Type": "application/x-www-form-urlencoded"
- };
- api.send(GET_CAPTCHA_VALUE, {type: 'recaptcha', url: url, key, proxy}).then((response) => {
- console.log(response);
- fetch(url, {
- method: "post",
- headers: headers,
- credentials: 'include',
- body: "do=login&doaction=1&trg=&favMatchId=null&cs=%2Flogin&qs=&sport=&sportTournament=&league=&oid=&brid=&toto_id=&odd=&sbm=&ang=&match=&oddstype=&outcome=&ssoLoginTicket=&login=adsasdasd%40gmail.com&password=desi123412&g-recaptcha-response="+ response +""
- })
- .then((resp) => console.log(resp))
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement