Skip to content

mixintu/cloudflare-deobfuscator

Repository files navigation

Cloudflare Deobfusactor

A dynamic deobfuscator for cloudflare's antibot javascript challenge

Features

  1. Unconceals String Conceals
c('0x19e')

// output

"length"
  1. Unflattens Control Flow Flattening Protection
_[_[1]] = _[1]


for (; _[0];) switch (_[_[1]]) {
        case _[2]:
            console.log("2")
            return


        case _[1]:
            console.log("1")
            _[_[1]] = _[2]
            break
        

}
// output
console.log("1")
console.log("2")
  1. Simplifies Proxy Binary Functions
WEGiQ = function (I, J) {
      return I + J;
    }
WEGiQ(d._cf_chl_opt.cRay, "_")

// Simplifies to 
d._cf_chl_opt.cRay + "_"

Usage

Paste the challenge script into input/main_challenge.js

Run

npm install
npm start

About

dynamic cloudflare deobfuscator for main challenge script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published