Page 1 of 1

Process terminates when calling readdirSync function from protected nodejs runtime

Posted: Mon Nov 18, 2019 1:25 pm
by marcin
I am using Enigma Virtual Box to protect JavaScript scripts executed on NodeJS run-time. When executing the same script using unprotected exe and projected exe the runtime is unexpectedly terminated calling function readdirSync from module FileSystem in NodeJs. I am attaching sample project. To test:
1) Unpack Test.zip into C:\Test folder
2) Enter C:\Test folder
3) Execute from command line "node script.js" (nodejs has to be installed on the test system)
4) Process to pack test project
5) Execute from command line "node_boxed.exe script.js"

From the log you can see that function readdirSync is not called and process is terminated. Notice that folder I am trying to list is present inside packed application so it should be found by NodeJs runtime.

Is there anything I can do to fix this?

Re: Process terminates when calling readdirSync function from protected nodejs runtime

Posted: Mon Nov 18, 2019 1:46 pm
by Enigma
Hi, can you please also include all other required files (exe/dll or so)?

Re: Process terminates when calling readdirSync function from protected nodejs runtime

Posted: Tue Nov 19, 2019 7:19 am
by marcin
Only other included file is node.exe witch is located in C:\Program Files\nodejs after installing. It is too big to be attached :(. 26MB (10MB zipped). I have installed NodeJS version 10.16.3.0.

Re: Process terminates when calling readdirSync function from protected nodejs runtime

Posted: Tue Nov 19, 2019 2:00 pm
by Enigma
Please use this version, the problem is fixed there:
https://enigmaprotector.com/assets/file ... 191119.exe

Re: Process terminates when calling readdirSync function from protected nodejs runtime

Posted: Tue Nov 19, 2019 2:55 pm
by marcin
Yes this version works!
Thank you very much for such a fast response.
When can we expect it to be in official build?

Re: Process terminates when calling readdirSync function from protected nodejs runtime

Posted: Tue Nov 19, 2019 2:59 pm
by Enigma
Great! This one can be used as official, we just wait few more changes to release it as official.