Process terminates when calling readdirSync function from protected nodejs runtime

Post here messages if you have any problems with working of Enigma Protector
Post Reply
marcin
Posts: 3
Joined: Mon Nov 18, 2019 1:05 pm

Process terminates when calling readdirSync function from protected nodejs runtime

Post by marcin » Mon Nov 18, 2019 1:25 pm

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?
Attachments
Test.zip
(1.51 KiB) Downloaded 16 times

Enigma
Site Admin
Posts: 2526
Joined: Wed Aug 20, 2008 2:24 pm

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

Post by Enigma » Mon Nov 18, 2019 1:46 pm

Hi, can you please also include all other required files (exe/dll or so)?

marcin
Posts: 3
Joined: Mon Nov 18, 2019 1:05 pm

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

Post by marcin » Tue Nov 19, 2019 7:19 am

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.

Enigma
Site Admin
Posts: 2526
Joined: Wed Aug 20, 2008 2:24 pm

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

Post by Enigma » Tue Nov 19, 2019 2:00 pm

Please use this version, the problem is fixed there:
https://enigmaprotector.com/assets/file ... 191119.exe

marcin
Posts: 3
Joined: Mon Nov 18, 2019 1:05 pm

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

Post by marcin » Tue Nov 19, 2019 2:55 pm

Yes this version works!
Thank you very much for such a fast response.
When can we expect it to be in official build?

Enigma
Site Admin
Posts: 2526
Joined: Wed Aug 20, 2008 2:24 pm

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

Post by Enigma » Tue Nov 19, 2019 2:59 pm

Great! This one can be used as official, we just wait few more changes to release it as official.

Post Reply