├── README.md ├── hcaptcha ├── content │ ├── hcaptcha.js │ ├── model.js │ └── tf.js ├── images │ ├── icon_128.png │ ├── icon_16.png │ ├── icon_32.png │ └── icon_48.png ├── manifest.json ├── model │ ├── group1-shard1of5 │ ├── group1-shard2of5 │ ├── group1-shard3of5 │ ├── group1-shard4of5 │ ├── group1-shard5of5 │ └── model.json └── worker.js └── main.py /README.md: -------------------------------------------------------------------------------- 1 | # Cloudflare Captcha Bypass 2 | > ⚠️ **This cloudflare captcha bypass is no longer stable and no longer updated** 3 | 4 | ### Additional Informations 5 | - The proxies type are `http,https` ... 6 | - You need fast proxies without this, the script will be **unstable** 7 | - This script does not depending on captcha solving API 8 | 9 | ### Installation 10 | Install the app on the server 11 | ```sh 12 | user@domain:~# git clone https://github.com/inplex-sys/cloudflare-uam-bypass.git 13 | user@domain:~# cd ./cloudflare-captcha-bypass/ 14 | user@domain:~# pip3 install Pysocks colored undetected_chromedriver 15 | user@domain:~# python3 ./main.py 16 | ``` 17 | -------------------------------------------------------------------------------- /hcaptcha/content/hcaptcha.js: -------------------------------------------------------------------------------- 1 | (()=>{let e=0,t=0,r=[],n=[],o=[],c=!1;const a=".button-submit",i=".task-image .border",l=".task-image .image",u=".task-image",s=".prompt-text",f=".no-selection",d=".challenge-example .image .image",h="aria-hidden",m="Please click each image containing a ",y="Please click each image containing an ",g="airplane",b="bicycle",w="boat",p="bus",k="car",v="motorbus",S="motorcycle",A="seaplane",q="surfboard",C="train",L="truck",_=[g,b,w,p,k,v,S,A,q,C,L],I=10;let x=0;if(window.location.href.includes("checkbox")){const e=setInterval(function(){const t=document.querySelector("#checkbox");var r;if(t)return"true"==t.getAttribute("aria-checked")?clearInterval(e):void(null===(r=t).offsetParent||"none"==r.style.display||r.disabled||"false"!=t.getAttribute("aria-checked")||(t.scrollIntoView({behavior:"auto",block:"center",inline:"center"}),t.click()))},500)}else z();function P(e){return new Promise(function(t,r){chrome.runtime.sendMessage({data:e},function(e){if(!e)return t([]);t(e)})})}async function D(e,r,n){const o=await P(e);for(let t=0;tsetTimeout(t,e))}function M(e){setTimeout(z,100*e)}function j(e){const t=Array.from(document.querySelectorAll("div")).find(e=>e.textContent===$target_text);if(t){E(t,"mousedown"),E(t,"mouseup");const e=document.querySelector(a);e&&e.click()}return M(.5+.5*Math.random())}function F(e){const t=e.match(/(?<=\(\").+?(?=\"\))/g);return t?t[0]:0}async function J(){if(function(){const e=r;n=[];const t=document.querySelectorAll(d);if(t.length>0)for(let e=0;e{o.push(e)}),t==e.length-1&&(c=!0)})}(r);!c;)await T(1e3);c=!1}return async function(e){const t=new Map;for(let r=0;r{r=30)return clearInterval(t);if(9==document.querySelectorAll(l).length)return clearInterval(t),z();{const e=["3 or more items of furniture","Equipped space or room","Photo is clean, no watermarks, logos or text overlays","An interior photo of room","Unsure","Photo is sharp"];for(let r=0;rt.textContent===e[r]))return clearInterval(t),j(e[r])}},500)}();e=Date.now()/1e3,t=0;let r=-1;try{if(-1==(r=await async function(){let e=-1;try{(e=document.querySelector(s).innerText)&&(e.includes(m)||e.includes(y))&&(e=(e=e.replace(m,"")).replace(y,"")),e.equals_one_in(_)||(e=await J())}catch(e){}return e}())&&x>=I)return;if(-1==r&&x0)for(let r=0;r<9;r++){const n=F(t[r].style.background);if(0==n)return e;e[r]=n}return e}()).length)return M(1.5)}catch(e){return M(1.5)}if(-1!=r)for(let e=0;e<9;e++)D(n[e],r,e);!function(){const r=Date.now()/1e3,n=setInterval(function(){if(Date.now()/1e3-r>=30)return clearInterval(n),z();if(!(Date.now()/1e3-e<=4)&&9==t){clearInterval(n);const e=document.querySelector(a);return e&&e.click(),M(1.5)}},500)}()}String.prototype.includes_one_in=function(e){if(!Array.isArray(e))return this.toLowerCase().includes(e.toLowerCase());for(let t=0;t0&&m[m.length-1])||6!==t[0]&&2!==t[0])){d=0;continue}if(3===t[0]&&(!m||t[1]>m[0]&&t[1]d&&(d=e[t*i+o],s=o);n[t]=d,m[t]=s}return[n,m]},e.prototype.detect=function(e,a,i){return void 0===a&&(a=20),void 0===i&&(i=.5),n(this,void 0,void 0,function(){return m(this,function(n){return[2,this.infer(e,a,i)]})})},e.prototype.dispose=function(){null!=this.model&&this.model.dispose()},e}();e.ObjectDetection=d,e.load=function(e){return void 0===e&&(e={}),n(this,void 0,void 0,function(){var a,n,t;return m(this,function(m){switch(m.label){case 0:if(null==i)throw new Error("Cannot find TensorFlow.js. If you are using a