NopeCHALLC / nopecha-extension

Automated CAPTCHA solver for your browser. Works with Selenium, Puppeteer, Playwright, and more.
MIT License
6.63k stars 96 forks source link

Is it still possible to solve Hcaptcha? #42

Closed MatheusVCosta closed 5 months ago

MatheusVCosta commented 8 months ago

Hi Guys!

I'm developing a web-crawler and I need to solve an hCaptcha challenge, but I can't. I tried using captcha solving services like 2Captcha, CapSolver and deathByCaptcha, but none of them worked. Is it still possible today to crack captcha challenges using these services nowsday? In specific the hCaptcha.

If somebody can help me with this, i needing so much solve a captcha.

edimarmonteiro commented 7 months ago

Ola pessoa, estou tentando resolver um HCaptcha através da biblioteca anti-captcha. Consigo quebrar o captcha, mas por algum motivo fica informando "Captcha não Informado!". Estou fazendo isso com TypeScript e Playwright. Esse é o código:

Código: async function solveHCaptcha(page: Page) { const iframeSelector = 'iframe[src]'; await page.waitForSelector(iframeSelector); const hcaptcha = await page.$(iframeSelector); await waitingTime(7000);

if (hcaptcha !== null) { const hcaptchaSrc = await hcaptcha.getAttribute("src"); if (hcaptchaSrc !== null) { const siteKey = hcaptchaSrc.split('&')[10].split('=')[1]; console.log('siteKey do if hcaptcha: ' + siteKey);

  const responseSelector = 'textarea[name="h-captcha-response"]';
  await page.waitForSelector(responseSelector);
  const hcaptchaResponse = await page.$(responseSelector);
  const isInvisible = false;
  const isEnterprise = false;
  antiCaptach.setAPIKey('--------------------------------');
  const setWebsiteKey = 'https://radar.serpro.gov.br/main.html#/cidadao'

  antiCaptach.setSoftId(0);
  await waitingTime(7000);
  try {
    const gresponse = await antiCaptach.solveHCaptchaProxyless(setWebsiteKey, siteKey, isInvisible, isEnterprise);
    console.log('g-response: ' + gresponse);
    if (hcaptchaResponse) {
      await hcaptchaResponse.fill(gresponse);
      console.log('Acabei de adicionar o valor do captcha');
    }
  } catch (error) {
    console.log('test received error ' + error);
  } }}}

async function submitPage(page: Page){ await page.getByText('Pesquisar').click(); }

Image: breakingHCaptchaOFC

Serei muito grato se alguem conseguir me ajudar

NopeCHALLC commented 6 months ago

It takes time for our models to learn new hCaptcha challenges as they are added.

Please let us know if you notice that it's taking longer than a day for the recognition quality to improve.