Process terminates when calling readdirSync function from protected nodejs runtime
Posted: 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?
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?