Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't bypass CF Bot Fight Mode #24

Closed
1 task done
Danny1994d opened this issue Jun 4, 2020 · 6 comments
Closed
1 task done

Can't bypass CF Bot Fight Mode #24

Danny1994d opened this issue Jun 4, 2020 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@Danny1994d
Copy link

Danny1994d commented Jun 4, 2020

Describe the bug

  • Hooman version: 1.2.5
  • Node.js version: v14.4.0
  • OS & version: Debian 9

Actual behavior

Hello im try to bypass a uam + bot fight mode, and can't, hooman can't do it?
Tested URL : https://audiograb.net/

//edit : url some times use uam + captcha (not for all ips, if im using vpn work just on uam)
How can use hooman to bypass uam + captcha in same time, can do it?

Expected behavior

write here

Code to reproduce

return new Promise((resolve, reject) => {
hooman.get(url, {
      agent: {
        https: proxy,
      },
      cloudflareRetry: 10,
    })
      .then(response => {
        resolve(response);
      })
      .catch((error) => {
      console.log(error.response.body);
        let obj_v = proxies.indexOf(proxy);
        proxies.splice(obj_v, 1);
        console.log(error.message);
        return reject(error.message);
      });
  });
}

Checklist

  • I have tried my code with the latest version of Node.js and hooman.
@Danny1994d Danny1994d changed the title Can't bypass UAM+Bot Fight Mode Can't bypass CF Bot Fight Mode Jun 5, 2020
@sayem314 sayem314 added the help wanted Extra attention is needed label Jun 5, 2020
@sayem314
Copy link
Owner

sayem314 commented Jun 5, 2020

You need to provide captchaKey from 2captcha. Hooman automatically bypasses both challenges at the same URL.

@Danny1994d
Copy link
Author

Danny1994d commented Jun 5, 2020

You need to provide captchaKey from 2captcha. Hooman automatically bypasses both challenges at the same URL.

I tried to add 2captcha key, but i get error, hooman dont found the hcaptcha on url, just starting to bypass uam
And get error

`write EPROTO 139647672223616:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

socket hang up
Client network socket disconnected before secure TLS connection was established
socket hang up
Client network socket disconnected before secure TLS connection was established
`

exemple code

return new Promise((resolve, reject) => {
hooman.get(url, {
      captchaKey: 'key',
      agent: {
        https: proxy,
      },
      cloudflareRetry: 10,
    })
      .then(response => {
        resolve(response);
      })
      .catch((error) => {
        let obj_v = proxies.indexOf(proxy);
        proxies.splice(obj_v, 1);
        console.log(error.message);
        return reject(error.message);
      });
  });
}```

@sayem314
Copy link
Owner

sayem314 commented Jun 5, 2020

Looks like the error is from your proxy provider. Please set rejectUnauthorized to false on proxy-agent. This is not an error with hooman, you can try this with bare got library and then either open an issue on got or proxy-agent repo.

@Danny1994d
Copy link
Author

Danny1994d commented Jun 5, 2020

Looks like the error is from your proxy provider. Please set rejectUnauthorized to false on proxy-agent. This is not an error with hooman, you can try this with bare got library and then either open an issue on got or proxy-agent repo.
@sayem314
Just a problem sir, why if im removing console.log(error.response.body); script stoped bypass, but if i still add console.log(error.response.body); bypass work, but server is spammed with html content

@sayem314
Copy link
Owner

sayem314 commented Jun 5, 2020

error.response.body contains HTML of challenge page, not the actual HTML you might be looking for. Take a good look at the source.

@Danny1994d
Copy link
Author

Danny1994d commented Jun 5, 2020

error.response.body contains HTML of challenge page, not the actual HTML you might be looking for. Take a good look at the source.

Oke sir, will check again, but i thinkis the new challenge of cloudflare, i think has updated again, becaue now all websites get a free captcha and browser verification when detect bad requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants