This commit is contained in:
sanex3339
2016-06-01 01:11:30 +03:00
parent af30d82001
commit e62091b474
4 changed files with 4 additions and 4 deletions
@@ -49,7 +49,7 @@ class UnicodeArrayDecodeNode extends Node_1.Node {
var ${tempArrayName} = [];
for (var ${indexVariableName} in ${this.unicodeArrayName}) {
${tempArrayName}[${Utils_1.Utils.stringToUnicode('push')}](atob(${this.unicodeArrayName}[${indexVariableName}]));
${tempArrayName}[${Utils_1.Utils.stringToUnicode('push')}](decodeURI(atob(${this.unicodeArrayName}[${indexVariableName}])));
}
${this.unicodeArrayName} = ${tempArrayName};
+1 -1
View File
@@ -32,7 +32,7 @@ class NodeObfuscator {
replaceLiteralStringByUnicodeArrayCall(nodeValue) {
let value = nodeValue;
if (this.options['encodeUnicodeArray']) {
value = new Buffer(value).toString('base64');
value = new Buffer(encodeURI(value)).toString('base64');
}
value = Utils_1.Utils.stringToUnicode(value);
let unicodeArray = this.nodes.get('unicodeArrayNode').getNodeData(), sameIndex = unicodeArray.indexOf(value), index, hexadecimalIndex;
@@ -95,7 +95,7 @@ export class UnicodeArrayDecodeNode extends Node {
var ${tempArrayName} = [];
for (var ${indexVariableName} in ${this.unicodeArrayName}) {
${tempArrayName}[${Utils.stringToUnicode('push')}](atob(${this.unicodeArrayName}[${indexVariableName}]));
${tempArrayName}[${Utils.stringToUnicode('push')}](decodeURI(atob(${this.unicodeArrayName}[${indexVariableName}])));
}
${this.unicodeArrayName} = ${tempArrayName};
+1 -1
View File
@@ -89,7 +89,7 @@ export abstract class NodeObfuscator implements INodeObfuscator {
let value: string = nodeValue;
if (this.options['encodeUnicodeArray']) {
value = new Buffer(value).toString('base64');
value = new Buffer(encodeURI(value)).toString('base64');
}
value = Utils.stringToUnicode(value);