Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError [Error]: navigator is not defined #76

Closed
drummbelbummel opened this issue Mar 11, 2022 · 1 comment
Closed

ReferenceError [Error]: navigator is not defined #76

drummbelbummel opened this issue Mar 11, 2022 · 1 comment

Comments

@drummbelbummel
Copy link

just installed on kali linux with
sudo npm install box-js --global
than tried to run a script.
got this as result:
Using a 10 seconds timeout, pass --timeout to specify another timeout in seconds

/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:287
throw bridge.from(e);
^
ReferenceError [Error]: navigator is not defined
at eval (eval at apply (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/setup-sandbox.js:371:10), :2:21)
at eval ()
at Object.apply (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/setup-sandbox.js:371:10)
at vm.js:139:1
at Script.runInContext (vm.js:130:18)
at VM.runScript (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:285:18)
at /usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:507:16
at timeout_bridge.js:1:1
at Script.runInContext (vm.js:130:18)
at doWithTimeout (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:132:29)

C:\home\kali> sudo box-js index.html.1.js
[sudo] Passwort für kali:
Using a 10 seconds timeout, pass --timeout to specify another timeout in seconds

/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:287
throw bridge.from(e);
^
ReferenceError [Error]: navigator is not defined
at eval (eval at apply (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/setup-sandbox.js:371:10), :2:21)
at eval ()
at Object.apply (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/setup-sandbox.js:371:10)
at vm.js:139:1
at Script.runInContext (vm.js:130:18)
at VM.runScript (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:285:18)
at /usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:507:16
at timeout_bridge.js:1:1
at Script.runInContext (vm.js:130:18)
at doWithTimeout (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/vm.js:132:29)

i will attach the file i wanted to check. PLEASE be aware: THIS IS MALICIOUS CODE LEADING TO A PHISHINJG SITE !!!
index.html.1.js.txt

Any help available?

@CapacitorSet
Copy link
Owner

This is a known issue, please refer to #59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants