Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-obfuscator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-obfuscator - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

25

jsObfuscate.js

@@ -20,3 +20,3 @@ var Q = require('q');

port: 80,
path: '/',
path: '/Javascript-Obfuscator.aspx',
method: method || 'GET',

@@ -80,3 +80,3 @@ headers: headers

onopentag: function(name, attribs) {
if (name === 'textarea' && attribs.name === 'TextBox2') {
if (name === 'textarea' && attribs.name === 'ctl00$breadcrumbs$TextBox2') {
getText = true;

@@ -135,13 +135,14 @@ }

then(function(bundle) {
if (options.keepLinefeeds) bundle.formData['cbLineBR'] = 'on';
if (options.keepIndentations) bundle.formData['cbIndent'] = 'on';
if (options.encodeStrings) bundle.formData['cbEncodeStr'] = 'on';
if (options.encodeNumbers) bundle.formData['cbEncodeNumber'] = 'on';
if (options.moveStrings) bundle.formData['cbMoveStr'] = 'on';
if (options.replaceNames) bundle.formData['cbReplaceNames'] = 'on';
if (options.keepLinefeeds) bundle.formData['ctl00$MainContent$cbLineBR'] = 'on';
if (options.keepIndentations) bundle.formData['ctl00$MainContent$cbIndent'] = 'on';
if (options.encodeStrings) bundle.formData['ctl00$MainContent$cbEncodeStr'] = 'on';
if (options.encodeNumbers) bundle.formData['ctl00$MainContent$cbEncodeNumber'] = 'on';
if (options.moveStrings) bundle.formData['ctl00$MainContent$cbMoveStr'] = 'on';
if (options.replaceNames) bundle.formData['ctl00$MainContent$cbReplaceNames'] = 'on';
bundle.formData['UploadLib_Uploader_js'] = '1';
bundle.formData['TextBox1'] = strInput;
bundle.formData['TextBox2'] = '';
bundle.formData['TextBox3'] = options.variableExclusions.join('\n');
bundle.formData['__EVENTTARGET'] = 'ctl00$breadcrumbs$Button1';
bundle.formData['ctl00$breadcrumbs$TextBox1'] = strInput;
bundle.formData['ctl00$breadcrumbs$TextBox2'] = '';
bundle.formData['ctl00$MainContent$TextBox3'] = options.variableExclusions.join('\n');

@@ -169,2 +170,2 @@ return bundle;

module.exports = obfuscate;
module.exports.defaultOptions = sanitizeOptions();
module.exports.defaultOptions = sanitizeOptions();
{
"name": "js-obfuscator",
"version": "0.0.3",
"version": "0.1.0",
"description": "Obfuscate JavaScript files via javascriptobfuscator.com. This is also a Grunt plugin.",

@@ -5,0 +5,0 @@ "main": "jsObfuscate.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc