Skip to content

A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.

License

Notifications You must be signed in to change notification settings

felixge/node-active-x-obfuscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status

active-x-obfuscator

A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.

Why?

Some corporate firewalls /proxies such as Blue Coat block JavaScript files to be downloaded if they contain the word 'ActiveX'. That of course is very annoying for libraries such as socket.io that need to use ActiveXObject for supporting IE8 and older.

Install

npm install active-x-obfuscator

Usage

var activeXObfuscator = require('active-x-obfuscator');
var code = 'foo(new ActiveXObject());';

var obfuscated = activeXObfuscator(code);
// -> foo(new window[(['Active'].concat('Object').join('X'))])

License

Licensed under the MIT license.

About

A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published