Comments (14)
I solved the problem, you need to add this line to the function solveJavaScriptChallenge "cloudflareClass.php"
$script = str_replace('.toFixed(10)', '', $script);
it works for me
from cloudflare-bypass.
The same error.
from cloudflare-bypass.
are you able to use v2 ?
from cloudflare-bypass.
if this is not enough, then here's another line of code that should help:
$script = preg_replace("/(answer)=.(\w+).(\w+)/i", '$1=$$2_$3', $script);
since it works on one server, but on another server for some reason, without this line of code it's not working
@momala454 No, I didn't use the second version.
from cloudflare-bypass.
@dreamdeveloper Which version of php do you use? With both line on php 7.2 I have same error. Can you tell me what version do you use? Also, on what line do you add
$script = preg_replace("/(answer)=.(\w+).(\w+)/i", '$1=$$2_$3', $script);
I pun on function solveJavaScriptChallenge on top of eval($script);
- line 264
from cloudflare-bypass.
@Paul1427 here is a screenshot of the function solveJavaScriptChallenge
PHP Version 5.6.34 | PHP Version 5.5.9
from cloudflare-bypass.
@dreamdeveloper thank you! I can confirm that code work also on php 7.2
from cloudflare-bypass.
@Paul1427 ok, that's great!
from cloudflare-bypass.
Hm, yestarday it's working, now i get only "Could not fetch CloudFlare clearance cookie (most likely due to excessive requests)" . Anyone have same error?
from cloudflare-bypass.
i added that codes but not worked
$script = str_replace('.toFixed(10)', '', $script);
$script = preg_replace("/(answer)=.(\w+).(\w+)/i", '$1=$$2_$3', $script);
from cloudflare-bypass.
Anyone have same error?
Yes, I have...
from cloudflare-bypass.
This is an example of the new challenge
(function(){
var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
b(function(){
var a = document.getElementById('cf-content');a.style.display = 'block';
setTimeout(function(){
var s,t,o,p,b,r,e,a,k,i,n,g,f, dtfEMYE={"MolCsFCEtHvr":+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+[])+(+[])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]))/+((!+[]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]))};
t = document.createElement('div');
t.innerHTML="<a href='/'>x</a>";
t = t.firstChild.href;r = t.match(/https?:\/\//)[0];
t = t.substr(r.length); t = t.substr(0,t.length-1);
a = document.getElementById('jschl-answer');
f = document.getElementById('challenge-form');
;dtfEMYE.MolCsFCEtHvr-=+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![])+(+!![])+(+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(+!![]))/+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![])+(!+[]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(+!![])+(!+[]+!![])+(+!![]));dtfEMYE.MolCsFCEtHvr-=+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+[])+(+[])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]))/+((!+[]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+!![])+(!+[]+!![]+!![]+!![]+!![]));a.value = +dtfEMYE.MolCsFCEtHvr.toFixed(10) + t.length; '; 121'
f.action += location.hash;
f.submit();
}, 4000);
}, false);
})();
A little cleaning...
var dtfEMYE={"MolCsFCEtHvr":+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+[])+(+[])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]))/+((!+[]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]))};
dtfEMYE.MolCsFCEtHvr-=+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![])+(+!![])+(+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(+!![]))/+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![])+(!+[]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(+!![])+(!+[]+!![])+(+!![]));
dtfEMYE.MolCsFCEtHvr-=+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+[])+(+[])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]))/+((!+[]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+!![])+(!+[]+!![]+!![]+!![]+!![]));
a.value = +dtfEMYE.MolCsFCEtHvr.toFixed(10) + t.length;
As you can see here a.value = +dtfEMYE.MolCsFCEtHvr.toFixed(10) + t.length
, simply removing toFixed(10) won't work, the value should be rounded to 10 decimal units
from cloudflare-bypass.
You can see for fix #53 to last update cloudflareClass.php in V1
from cloudflare-bypass.
V1 is now deprecated and will no longer be maintained.
Please use V2, you can look in v2/examples for example code snippets. Replace "vendor/autoload.php" with "src/autoload.php" until I get this package on packagist.
@dreamdeveloper @Paul1427 @snnyk @momala454 @NikitaKurdin
from cloudflare-bypass.
Related Issues (20)
- dont work with 7.3.3 - solution
- Now broken HOT 11
- Class 'SimpleJavaScriptCompilation\Model\Context' not found in ../libraries/CloudflareBypass/Model/UAM/UAMPageFormParams.php:57 HOT 1
- blank page
- broken again HOT 1
- '[ERROR] Captcha (retry: 1) -> not supported! Unknown error -> Captcha page is not supported!' or ' [ERROR] UAM (retry: 0) -> clearance cookie missing!' HOT 9
- Unknown error -> --> [Captcha] ERROR. captcha page found. No implementation exists for this yet! HOT 8
- [pity no help on this] How to correctly install the project HOT 1
- Fatal Error
- Unknown error
- Doesnt seem to be working?
- Not working HOT 11
- Call to a member function getDataType() on null HOT 18
- Why do you public this repo? HOT 5
- UAMPageFormParams Error
- Argument 2 passed to CloudflareBypass\Model\UAM\UAMPageFormParams::__construct() must be of the type string, null given, called
- The requested package kyranrana/cloudflare-bypass master is satisfiable by kyranrana/cloudflare-bypass[dev-master] but these conflict with your requirements or minimum-stability.
- Not working HOT 9
- Fix2020-05-24 HOT 57
- infinite loop of retries HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudflare-bypass.