sayem314 / hooman

http interceptor to hoomanize cloudflare requests
https://www.npmjs.com/package/hooman
MIT License
148 stars 18 forks source link

Can't bypass CF Bot Fight Mode #24

Closed Danny1994d closed 4 years ago

Danny1994d commented 4 years ago

Describe the bug

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

sayem314 commented 4 years ago

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

Danny1994d commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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