efrederickson / XFuscator

Most advanced Lua obfuscator 3V4R
158 stars 58 forks source link

No new line is displayed in output #3

Open ghost opened 8 years ago

ghost commented 8 years ago

It seems that there is an issue when "\n" is included in print command.

For example, when we have a lua file that contains the following: print("<?xml version='1.0' encoding='UTF-8'?>\n\n")

Then, we observe that after obfuscation in lua console, "\n" is displayed in the output and no new line is inserted.

In a normal execution (without obfuscation), a new line break should exist every time "\n" is present.

Moreover, the same issue seems to exist also when we want to export text at a new file through file:write command.

file:write("<?xml version='1.0' encoding='UTF-8'?>\n\n")

The above one will be printed only in one line. Also, "\n" is still appeared in the new output. Maybe one function for escaping such characters should be used.

painfull30 commented 3 years ago

I was able to replace all \n with [[ ]]

But it is not good solution, for example how to write \r\n ?

painfull30 commented 3 years ago

Update - \r\n you can use if you will make file with \r\n Then read it and use this variable ))