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

Command injection using execcommand #448

Open
ankita-78709 opened this issue Nov 3, 2022 · 0 comments
Open

Command injection using execcommand #448

ankita-78709 opened this issue Nov 3, 2022 · 0 comments

Comments

@ankita-78709
Copy link

Hi
Can anyone help me
I need to connect to a remote unix server using my node js app, and execute a shell script file present in the unix server. I am using ssh.execCommand to perform this operation.
However i was wondering is it similar to using spawn /Execfile which much safer than the exec() command.
Can someone suggest me how to use this in order to prevent command injection.

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

1 participant