Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrFuscator
XML fuscating issue, bug report

Ken
Guest
Quote
2009-04-06 04:39:09

When parsing the following code:

var xml:XML = <root><data param="value"/></root>;

that always corrupts the xml string due to the parser does not realize that is a xml data instead of a normal string.

another issue is that syntax:

var xml:XML = new XML(...);
trace(xml.@value)

The value will be obfuscated unexpectedly. the "value" is actually

xml.attributes["value"]

please kindly correct aboves.

thanks.


niko
Moderator
Quote
2009-04-06 17:03:23

Ah, that's not nice. You could add 'value' as symbol to ignore, and turn of string encryption as workaround for now.
Thanks for posting.


manifreaky
Registered User
Quote
2009-05-20 17:57:17

i have the same problem, and adding every value as symbol to ignore is not very pleasant, because we have a very big project. when will you release a fix for this bug?

just bought 2 licences for our company

greetings manifreaky


x = configXML.@xPos;
y = configXML.@yPos;
scaleX = configXML.@scale;
scaleY = configXML.@scale;
alpha = configXML.@alpha;

turns to:

x = _ss325.@_sp1047;
y = _ss325.@_je162;
scaleX = _ss325.@scale;
scaleY = _ss325.@scale;
alpha = _ss325.@alpha;



niko
Moderator
Quote
2009-05-21 06:33:35

irrfuscator 1.3.2 supports E4X attributes, try it out, hope it helps: http://www.ambiera.com/irrfuscat...


manifreaky
Registered User
Quote
2009-05-21 10:28:50

Hi, thanks for your fast update, the parameters are okay now. but there ist another problem with e4x:

the "label" in the e4x expression should not be obfuscated into _wj564, looks like he searches and replaces without checking if it is an e4x identifier


protected var configXML:XML;

for each ( var element:XML in configXML.label)
{
trace(element.@param);
}

var label:String



turns to:


protected var _ss325:XML;

for each ( var _ma760:XML in _ss325._wj564)
{
trace(ma760.@param);
}

var _wj564:String



niko
Moderator
Quote
2009-05-21 19:53:28

Yes, this is a problem you'd have to solve with the ignore list, unfortunately. The reason is the following: irrfuscator is not a compiler but more a 'guesser'. (it actually cannot compile your code because it needs to be able to obfuscate your code even if it is not compilable, like for example before running a preprocessor).

So it doesn't know that XML is a dynamic class and that 'label' is a dynamic symbol. You simply need to put that into the ignore list to make this work, I'm sorry. Some few more details are written down in the FAQ.

An alternative would be to use the xmlnode["foobar"] syntax. Or you could try to use the binary .swf obfuscator, alternatively.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact