What it is

Jscrambler is a service that provides JavaScript client-side security by obfuscating code and preventing real-time debugging and tampering. It aims to protect web applications from reverse engineering and malicious modifications.

How it works

Jscrambler employs various techniques to obfuscate JavaScript code, making it difficult to understand and reverse engineer. These techniques include string concealing, where string literals are encoded and decoded at runtime, and code transformations that significantly increase the lines of code in the protected application compared to the original. The obfuscated code is often wrapped in Immediately Invoked Function Expressions (IIFEs) and relies on numerous decode/encode algorithms.

To deobfuscate the code, one can isolate the decode functions and their associated global variables. By extracting these functions and executing them, it’s possible to reveal the original strings and function names. For more advanced deobfuscation, Abstract Syntax Trees (ASTs) can be utilized to parse and manipulate the code structure programmatically.

TWSC experience

Not yet tested by TWSC.

The source document mentions the use of Abstract Syntax Trees (ASTs) for code manipulation and parsing, and specifically names Esprima as a tool for this purpose. While Esprima is not in the provided list, the concept of ASTs is relevant to understanding how Jscrambler’s obfuscation can be reversed. The document also discusses techniques for deobfuscating JavaScript, which relates to the broader topic of client-side-bot-detection.

Sources


The Web Scraping Wiki is compiled from the tests and research published on The Web Scraping Club, the newsletter for web scraping professionals. Subscribe to get the next article in your inbox.