Skip to content

[error] Sandbox execution failed: Error: WScriptShell.CurrentDirectory not implemented! #103

Description

@InfiniteBSOD

box-js: 1.9.27
OS: WIndows 10 22H2 (19045.3803)
npm: 10.9.2
node: v23.10.0
Powershell:
Major Minor Build Revision


5 1 19041 3803

Hello,

I am NOT well-versed in neither "npm" nor "node.js" but trying to analyze a file from a CTF using "box.js".
Downloaded "choco" and in turn installed "nvm" and through "nvm" installed "npm" and through "npm" installed "box-js".

Command:
box-js .\some_malware.pdf.js --download --no-kill --timeout=60
Returns:

[info] IOC: Using standard fake sample file name C:Users\Sysop12\AppData\Roaming\Microsoft\Templates\CURRENT_SCRIPT_IN_FAKED_DIR.js when analyzing.
[error] Sandbox execution failed:
Error: WScriptShell.CurrentDirectory not implemented!
    at kill (C:\Users\infinitebsod\AppData\Local\nvm\v23.10.0\node_modules\box-js\lib.js:29:8)
    at Object.get (C:\Users\infinitebsod\AppData\Local\nvm\v23.10.0\node_modules\box-js\lib.js:216:3)
    at get (<anonymous>)
    at VM2 Wrapper.get (C:\Users\infinitebsod\AppData\Local\nvm\v23.10.0\node_modules\box-js\node_modules\vm2\lib/bridge.js:447:11)
    at vm.js:308:121
    at Script.runInContext (node:vm:149:12)
    at VM.runScript (C:\Users\infinitebsod\AppData\Local\nvm\v23.10.0\node_modules\box-js\node_modules\vm2\lib\vm.js:288:18)
    at C:\Users\infinitebsod\AppData\Local\nvm\v23.10.0\node_modules\box-js\node_modules\vm2\lib\vm.js:512:16
    at timeout_bridge.js:1:1
    at Script.runInContext (node:vm:149:12)
[error] WScriptShell.CurrentDirectory not implemented!

 * If the error is about a weird "Unknown ActiveXObject", try --no-kill.
 * Otherwise, report a bug at https://github.com/CapacitorSet/box-js/issues/ . 

Any idea what I'm missing?

/InfiniteBSOD

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions