Giter VIP home page Giter VIP logo

Comments (14)

dreamdeveloper avatar dreamdeveloper commented on July 16, 2024 1

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.

NikitaKurdin avatar NikitaKurdin commented on July 16, 2024

The same error.

from cloudflare-bypass.

momala454 avatar momala454 commented on July 16, 2024

are you able to use v2 ?

from cloudflare-bypass.

dreamdeveloper avatar dreamdeveloper commented on July 16, 2024

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.

Paul1427 avatar Paul1427 commented on July 16, 2024

@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.

dreamdeveloper avatar dreamdeveloper commented on July 16, 2024

@Paul1427 here is a screenshot of the function solveJavaScriptChallenge
PHP Version 5.6.34 | PHP Version 5.5.9
fix_bugs

from cloudflare-bypass.

Paul1427 avatar Paul1427 commented on July 16, 2024

@dreamdeveloper thank you! I can confirm that code work also on php 7.2

from cloudflare-bypass.

dreamdeveloper avatar dreamdeveloper commented on July 16, 2024

@Paul1427 ok, that's great!

from cloudflare-bypass.

Paul1427 avatar Paul1427 commented on July 16, 2024

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.

snnyk avatar snnyk commented on July 16, 2024

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.

NikitaKurdin avatar NikitaKurdin commented on July 16, 2024

Anyone have same error?

Yes, I have...

from cloudflare-bypass.

railken avatar railken commented on July 16, 2024

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.

ReModWrite avatar ReModWrite commented on July 16, 2024

You can see for fix #53 to last update cloudflareClass.php in V1

from cloudflare-bypass.

KyranRana avatar KyranRana commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.